Chess Engine written in Anchor Framework
anchor build
anchor deployanchor test
// OR
cargo run ./client/This fork uses the commit 68d5034abf0e0365f98726a63bf0bcace454b403 from the sol-chess repository, which was used in the Solana-Unity-Chess example.
- You can find the sol-chess program and the IDL deployed in Devnet at ChessfTT9XpWA9WxrSSLMnCseRqykb9LaMXKMhyWEiR4.
- If you want to intereact with the React UI by vicyyn use instead CCdU3zmYqPZaR2twy5hqcJmFV36tRpFC81seKUE8HVwX as program ID.
- You can autogenerate the Unity client from the IDL with:
dotnet tool install -g Solana.Unity.Anchor.Tool
dotnet anchorgen -i idl.json -o src/SolChessProgram.cs| Feature | Implemented |
|---|---|
| Check Legal Moves | ✅ |
| Checkmate | ✅ |
| Enpassant | ✅ |
| Castling | ✅ |
| Promotion | ✅ |
| Elo | ✅ |
| Time Control | ❌ |
