/chess-solana_workshop

Solana Chess Engine written in Anchor Framework

Primary LanguageRustMIT LicenseMIT

Solana Chess

Chess Engine written in Anchor Framework

License

Installation

anchor build
anchor deploy

Testing

anchor test
// OR
cargo run ./client/

Note

This fork uses the commit 68d5034abf0e0365f98726a63bf0bcace454b403 from the sol-chess repository, which was used in the Solana-Unity-Chess example.

Program

Autogenerating the Unity Client

  • 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

Features

Feature Implemented
Check Legal Moves
Checkmate
Enpassant
Castling
Promotion
Elo
Time Control