MagicBlock Documentation home page
Search...
⌘K
Ask AI
Github
Search...
Navigation
Module #2
MagicBlock Engine
Tools
Tutorials
Community
Tools
Introduction
BOLT Framework
Framework
Mapping and State listening
Getting Started
SDKs
Solana Unity SDK
Magic Router SDK
On-chain identity
Sessions
Session Keys
Randomness
What is Verifiable Randomness?
Technical Details
Security
Best Practices
FAQ
On this page
Features
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
game.rs
- game state, manage owner/id/bump
user.rs
- manage current game/elo/# of game played.
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?
Yes
No
Suggest edits
Raise issue
Assistant
Responses are generated using AI and may contain mistakes.