com.phasmidsoftware.gryphon.games

Members list

Type members

Classlikes

trait Game[Position, Board <: Positions[Position], Player]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Sudoku
class TicTacToe
trait Move[Board, Player] extends (Board, Player) => (Board, Player)

Trait to model a move in a game. Normally, a player transfers/receives some sort of token to/from the board, and/or receives/transfers a token back. The net effect of this might be that the token has moved on the board.

Trait to model a move in a game. Normally, a player transfers/receives some sort of token to/from the board, and/or receives/transfers a token back. The net effect of this might be that the token has moved on the board.

Type parameters

Board

the board type.

Player

the player type.

Attributes

Supertypes
trait (Board, Player) => (Board, Player)
class Object
trait Matchable
class Any
class Positions[Position](ps: Seq[Position])

Positions class which represents the positions of tokens on a board.

Positions class which represents the positions of tokens on a board.

Type parameters

Position

the position type.

Value parameters

ps

a sequence of Position objects.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes