learn.e1

package learn.e1

Members list

Type members

Classlikes

case object CycleColour extends TurnCmd

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait TurnCmd
class Object
trait Matchable
class Any
Show all
Self type
case class Game(curr: GameState, start: GameState, cmds: List[GameState])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Game

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Game.type
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.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object GameState

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
GameState.type
case class Move(toPosn: Pt2) extends TurnCmd

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TurnCmd
class Object
trait Matchable
class Any
Show all
case object NoMove extends TurnCmd

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait TurnCmd
class Object
trait Matchable
class Any
Show all
Self type
NoMove.type
sealed trait TurnCmd

A turned Command is a sealed trait

A turned Command is a sealed trait

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CycleColour
class Move
object NoMove