Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.34 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.34 KB

tests

Battleships

About

This is a multiplayer 2D game for two players developed in Python using the pygame library. The game represents the classic tabletop game Battleships with default rules. More information can be found on the wiki.

This game is my university semester project for the BI-PYT subject in the academic year 2023/2024.

Example

How run this game

  • Install all library's and packages

[NOTE] Server and players machines must have already installed python 3.11 or higher.

pip install -r requirements.txt
  • Go to app folder.
cd app
  • Run server in the terminal.

[NOTE] Before run the server change ip address in utils/settings.py. Use ipconfig for Windows or ifconfig for Linux to find LAN ip of machine on which server runs and set it in NETWORK settings in utils/settings.py. Both players must set the same ip in their settings file. This version of game has been tested only in LAN using two pc!

python server.py
  • Run clients on other terminal or other pc.
python main.py