trait Controller extends AnyRef
- Alphabetic
- By Inheritance
- Controller
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def checkEndGame(gameBoard: Array[Array[Piece]], turn: Int = -1): Boolean
Returns ture if the game has ended.
Returns ture if the game has ended.
- gameBoard
the game board which has been played so far.
- turn
identifies who will play.
- returns
ture if the game has ended.
- abstract def checkTie(gameBoard: Array[Array[Piece]], turn: Int = -1): Boolean
Returns ture if the game has ended as tie.
Returns ture if the game has ended as tie.
- gameBoard
the game board which has been played so far.
- turn
identifies who will play.
- returns
ture if the game has ended as tie.
- abstract def movementValidation(gameBoard: Array[Array[Piece]], state: State): MoveValidation
Returns an object that holds two values the whole state and true if the move is valid.
Returns an object that holds two values the whole state and true if the move is valid.
- gameBoard
the game board which has been played so far.
- state
object that holds the current state (if exists) and the new state.
- returns
an object that holds a state and true if the move is valid.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def createState(gameBoard: Array[Array[Piece]], modifiedPiece: Piece, newX: Int, newY: Int): Piece
Returns a piece object if a piece is removed.
Returns a piece object if a piece is removed.
- gameBoard
the game board which has been played so far.
- modifiedPiece
the piece which will move.
- newX
the new x coordinate for the piece.
- newY
the new y coordinate for the piece.
- returns
a piece object if a piece is removed, null otherwise.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def restoreState(gameBoard: Array[Array[Piece]], modifiedPiece: Piece, removedPiece: Piece, state: State): Unit
Restores the board to its previous state.
Restores the board to its previous state.
- gameBoard
the game board which has been played so far.
- modifiedPiece
the piece that will return to its previous state.
- removedPiece
a removed piece that will return to its previous state (if exists).
- state
object that holds the current state (if exists) and the new state.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated