InvalidPlay

class InvalidPlay(message: String, type: ErrorType) : ReversiException

Thrown when an attempted play is invalid according to Reversi rules. Reasons include: position already occupied, play does not capture any opponent pieces, or the coordinate is out of bounds.

Constructors

Link copied to clipboard
constructor(message: String, type: ErrorType)