Game

com.phasmidsoftware.gryphon.games.Game
trait Game[Position, Board <: Positions[Position], Player]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Sudoku
class TicTacToe

Members list

Value members

Abstract methods

def board: Board
def goal(board: Board): Option[Option[Player]]

If the result of invoking goal exists, then the game is over. If there is a winner, then the optional value is Some(winner). Otherwise, the game is a draw (stalemate) and the result is Some(None).

If the result of invoking goal exists, then the game is over. If there is a winner, then the optional value is Some(winner). Otherwise, the game is a draw (stalemate) and the result is Some(None).

Value parameters

board

the game board.

Attributes

Returns

an Option of Option[Player]

def players: Seq[Player]