skrepkaq / Battleships

Battleships on python and JS

Home Page:https://skrepkaq.ru/games/battleships/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

Battleships on python and JS

https://skrepkaq.ru/games/battleships/

License:MIT License


Languages

Language:Python 53.5%Language:JavaScript 39.4%Language:CSS 3.6%Language:HTML 3.5%