Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rkdud007/chess-dojo
Just a Chess game with some Cairo on top
https://github.com/rkdud007/chess-dojo
Last synced: 3 days ago
JSON representation
Just a Chess game with some Cairo on top
- Host: GitHub
- URL: https://github.com/rkdud007/chess-dojo
- Owner: rkdud007
- License: mit
- Archived: true
- Created: 2023-07-15T13:41:05.000Z (over 1 year ago)
- Default Branch: tutorialv3
- Last Pushed: 2023-10-18T06:14:21.000Z (about 1 year ago)
- Last Synced: 2024-11-09T08:37:50.898Z (8 days ago)
- Language: Cairo
- Size: 2.18 MB
- Stars: 16
- Watchers: 3
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dojo Chess
## Thanks for all Dojo versions contributors
- [v1](https://github.com/rkdud007/chess-dojo/tree/tutoral) : @rkdud007 @Eikix
- [v2](https://github.com/rkdud007/chess-dojo/tree/tutorialv2) : @manikey123
- [v3](https://github.com/rkdud007/chess-dojo/tree/tutorialv3) : @gianalarcon @Akinbola247---
_This repo is turning archieve. For further dojo version (0.4.0 ~) check out [Dojo Examples](https://github.com/dojoengine/dojo-examples) repo._
## Design v0
### Components, Entity
We have each piece as a seperate entity
- White pawn 1 ( Entity )
- Piece ( Component )
- Position ( Component )We have Game entity with auth
- Game 1 ( Entity )
- Game ( Component )
- GameTurn ( Component )
- PlayersId ( Component )### System
- Initiate ( System )
- Initiate Game
- Generate Game Enitity
- Initiate Pieces- Execute Move ( System )
- Generate Board Cache
- Generate Possible moves
- If there is piece need to occupy, kill piece
- Check if next position is eligible to moves
- Check Piece is owned by caller
- Check is caller's turn
- Update the position of the piece- Give up ( System )
- Check caller's color and set winner of opponent---