Chess is one of the oldest and most popular board games. It is played by two opponents on a checkered board with specially designed pieces of contrasting colours, commonly white and black. The objective of the game is to capture the opponent's king.
With Online_chess game, we can play this chess game online together
Make sure you have the tkmacosx module and the tkinter module or you can download it by:
pip install tkmacosx
pip install tk
Clone repository
git clone git@github.com:OnesNT/online_chess.git
Run server:
cd online_chess
git checkout dev1
python3 server.py
While running server, you need to open new terminal to run game:
cd online_chess
git checkout dev1
python3 main.py
At first, we need to fill in Server address and Server Port, if you leaves the blank, it will be default connect ,so don't need to fill anything otherwise you can fill address 0.0.0.0:4000 to connect to server.
Then fill your username to easily found by your opponent. If you leaves the blank, it will default your name as "Guess N-th" , which N is the ordinal numbers login to the server
After filling anything, you will need to find your opponent, if you enter the correct opponent's name, game will match you to your opponent you are finding. If you leaves the blank then there will be random opponent for you
Untitled.1.mp4
As you see, if A and B play a game online, every move made by A then board B is also updated and vice versa
- Texting to your opponent while playing
- If there is a winner there will be a result board and the game is over
- Support for multiple game sessions at the same time