Skip to content

skrepkaq/Battleships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleships

Online battleships game

Using websockets to connect to the client.

SQLite database for storing account data and game logs (for players top)

And JS for the client-side

Play now

You can play in game here!

Installation

  1. Use the pip to install libs from requirements.txt.
pip install -r requirements.txt
  1. Fill server/config.py file (if needed)
  2. Change IP and PORT in client/script.js file (if needed)

Usage

Server

Launch server:

python server/main.py

Client

  1. Open index.html from the client folder
  2. Create an account and play (you will need a friend)

Debug

You can find all errors in log/errors.log file

Contributing

Pull requests and an issues are welcome!