o

Connect4

Connect4Controller

object Connect4Controller extends Controller

Linear Supertypes
Controller, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Connect4Controller
  2. Controller
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkEndGame(gameBoard: Array[Array[Piece]], turn: Int): 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.

    Definition Classes
    Connect4ControllerController
  6. def checkTie(board: Array[Array[Piece]], turn: Int): Boolean

    Returns ture if the game has ended as tie.

    Returns ture if the game has ended as tie.

    turn

    identifies who will play.

    returns

    ture if the game has ended as tie.

    Definition Classes
    Connect4ControllerController
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. 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.

    Definition Classes
    Controller
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. 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.

    Definition Classes
    Connect4ControllerController
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. 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.

    Definition Classes
    Controller
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Controller

Inherited from AnyRef

Inherited from Any

Ungrouped