Board

com.phasmidsoftware.gambit.examples.tictactoe.Board
case class Board(sequence: Int, value: Int)

This class represents 9 x 2 bits, at the high end of the 32-bit word.

NOTE: this used to extend AnyVal before we added the sequence parameter.

Value parameters

value

the bit value of this board. NOTE: that the low 14 bits of this value should always be zero.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def &(b: Board): Board
def ^(b: Board): Board
def center: Boolean
def corner: Boolean
def isEmpty: Boolean
def play(sequence: Int, xOrO: Boolean, row: Row, col: Row): Board
def render: String
def rotate: Board
def row(i: Int): Row
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
Any
def |(b: Board): Board

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product