Skip to content
ashish mahindrakar edited this page Feb 14, 2018 · 2 revisions

Player

Properties

  • Name
  • Id
  • Pieces
  • Live
  • Dead

Methods

  • hasAnyMovingPieceLeft returns whether the player has any moving pieces
  • killPiece removes given piece from live to dead pieces
  • getPlayingPieceId returns playingPieces corresponding to count of their frequency
Clone this wiki locally