Skip to content

VatsalJagani/Game-Battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Battleship-Game

This is Battleship Game in Python.

Game Objective

Try to take down all the enemy ships before enemy sinks all of your ships. Hit and Miss will be marked on the enemy's board by guessing coordinate of where to attack.

Rules:

  1. Ships are placed horizontally and vertically only. They cannot be moved once they are placed.
  2. Player has to guess enemy's corordinate to attack, If at that position enemy's ship is found then hit will be marked else miss.
  3. Player wins when all enemy's ships are taken down.

Over here there are 3 ships, their length and name are as below: 1. Length:4 Name:Distroyer 2. Length:3 Name:Equalizer 3. Length:2 Name:Tiger of the Ocean

How to start the Game ?

Start Server

Run Source/server/server_connection.py file with one command line argument port number on which you want to start the server.

Start Client

Run Source/client/gui.py file with two command line arguments 1. IP address of server 2. Port number on which server is running.

More details can be found on doc section.

About

Battleship Game in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages