Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

rkdud007/chess-dojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dojo Chess

Thanks for all Dojo versions contributors

  • v1 : @rkdud007 @Eikix
  • v2 : @manikey123
  • v3 : @gianalarcon @Akinbola247

This repo is turning archieve. For further dojo version (0.4.0 ~) check out 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

About

Just a Chess game with some Cairo on top

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages