Skip to content

Instantly share code, notes, and snippets.

@CGamesPlay
Created April 17, 2019 16:05
Show Gist options
  • Save CGamesPlay/1b3e150c5448c51fd6ea71ea684f5640 to your computer and use it in GitHub Desktop.
Save CGamesPlay/1b3e150c5448c51fd6ea71ea684f5640 to your computer and use it in GitHub Desktop.

Checklist

Game basics

  • Players can pass device to choose armies.
  • Game state is loaded from the URL.
  • URL is kept up-to-date with the state of the game.
  • When the game is over, the winner is displayed and the board is disabled.

Challenges

  • Players can initiate challenges when it is their turn.
  • Players can initiate challenges when it is not their turn (king-turns).
  • Players can challenge any capture in an elephant rampage.
  • Challenge bid / response is not shown once selected.
  • Challenge bid / response can be collected in either order.

Special moves

  • Players can take king-turns.
  • Players can pass on king-turns.
  • Players can perform whirlwind attacks.
  • Players can capture en passant.
  • Players can castle.
  • Players can rampage with Elephant.
  • Players can capture own pieces with Wild Horse.
  • Players can promote pawns.

Viewing modes

  • When in desktop mode, white is always at the bottom and the controls are always facing away from the board.
  • When in tablet mode, white is always at the bottom and black's controls are always facing the board.
  • When in pass to play mode:
    • Black's controls are always facing the board.
    • While a color has a challenge opportunity, that color is at the bottom.
    • While a color is responding to a challenge, that color is at the bottom.
    • While a color is moving, that color is at the bottom.
    • While a color has won the game, that color is at the bottom.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment