Move

com.phasmidsoftware.gambit.game.Move
case class Move[P, S](f: S => P, desc: String) extends Transition[P, S]

A case class that implements Transition[S].

Type parameters

P

a proto-state, from which a state S can be constructed.

S

the type of the input parameter and of the result.

Value parameters

desc

the human-legible description of f.

f

a function S => P.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Transition[P, S]
trait S => (P, S)
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def apply(s: S): (P, S)

Attributes

Definition Classes
Function1
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any

Inherited methods

def andThen[A](g: (P, S) => A): S => A

Attributes

Inherited from:
Function1
def compose[A](g: A => S): A => (P, S)

Attributes

Inherited from:
Function1
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product