Module #2
open-source chess implementation
The focus of this course is not on how to build the chess logic, but if you are interested this is a video tutorial made by @Vicyyn that goes into it. We will be referencing his open-source chess implementation in our client.
Features
Logic overview
- board.rs - handles the logic for interacting with the board
- color.rs - provides basing functionalities to manage the two armies
- pieces.rs - basic pieces functionalities
- castling_rights - castling logic
- draw_state.rs - drawing logic
- square.rs - ranks and files
- game_state.rs - turn and state logic
State overview
Instruction overview
- initialize_users.rs - initialize users
- inizialize_game.rs - initialize the game
- join_game.rs - join game
- leave_game.rs - leave game
- resign.rs - resign
Was this page helpful?