Skip to content

Simple multiplayer Battleship game created in Python with Pygame.

Notifications You must be signed in to change notification settings

jvillegasd/battleship-go

Repository files navigation

Battleship Go

Battleship Go is a multiplayer battleship game made in Python using Pygame. Multiplayer uses sockets for connection under the Client-Server architecture.

battle

Stages

This project was made using a simple state machine logic and it is represented as stages. The stages are:

  • Lobby: Connect to game server and waits untils all players are ready.
  • Ship lock: Move and rotate your ships before battle starts.
  • Battle: Guess where the enemy's ships are and sink them all.
  • Game finished: Shows who is the winner and start a new game.

GUI

This project does not uses any third-party library, every GUI item was hand-crafted.

Sprites

Sprites used in this project are not my authorship. There were found on internet, credits are shown below:

How to run it

This project uses Client-Server architecture for multiplayer. So, Game server and clients have to be started to play the game.

Game server

To run game server, run the following command and then click on button Start

python game_server.py

game server

Client

To run client, run the following command:

python main.py

lobby

Releases

No releases published

Packages

No packages published

Languages