learn.e1

package learn.e1

Type members

Classlikes

case
object CycleColour extends TurnCmd
case
class Game(curr: GameState, start: GameState, cmds: List[GameState])
Companion
object
object Game
Companion
class
case
class GameState(turnNum: Int, posn: Pt2, rainbowCycle: RainbowCycle)

GameState. The game world state between turns. This is an ultra simple single player turn game, with only two actions, move and change colour. It is not intended as interesting game, but merely to illustrate the common features of a functionally implemented game.

GameState. The game world state between turns. This is an ultra simple single player turn game, with only two actions, move and change colour. It is not intended as interesting game, but merely to illustrate the common features of a functionally implemented game.

Companion
object
object GameState
Companion
class
case
class Move(toPosn: Pt2) extends TurnCmd
case
object NoMove extends TurnCmd
sealed
trait TurnCmd

A turned Command is a sealed trait

A turned Command is a sealed trait