Skip to content

Make Chess Moves between Client and Host. Import your own FEN or start new! Save & Load your games as wished. Enjoy!

Notifications You must be signed in to change notification settings

SagarbirBand/ChessNet

Repository files navigation

ChessNet

Make Chess Moves between Client and Host

Authored by Sagarbir Bandesha

04/16/24

COMMANDS:

"/move " ---------------- ex. "/move e2e4": Moves a piece to its destination if it is a valid rule of chess.

"/chessboard" ------------------------------------------ : Displays the current state of the chessboard for the requested player.

"/save -------------------------------------- ex. "/save Maria": Saves the current state of the game under the username. Server & client can call.

"/load -------------------------------- ex. "/load Maria 1": Loads a saved game under the username provided and index saved from user

"/import ----------------------------------------- ex. "/import 8/8/8/8/8/8/8/8 w": Imports a gamestate given a chess FEN string.

"/forfeit" --------------------------------------------- : Forfeits the game and cuts connection between host & client. FEN is stored in "fen.txt"

NOTES:

  1. Invalid moves will require a reprompt.
  2. Capture limit is 16 before game terminates.
  3. Checks, Checkmates, & King captures should be addressed by the player for the game. These rules are not enforced by ChessNet.
  4. Run .\Server.exe & .\Client.exe on windows bash terminals. Best practice to run both commands on same device so ports can be accessed easily.
  5. Have fun! Make sure to enjoy & post your games online :)

About

Make Chess Moves between Client and Host. Import your own FEN or start new! Save & Load your games as wished. Enjoy!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages