ReactorGame

case class ReactorGame(aRows: Int, aCols: Int, aPlayers: Array[Colour])

A clone of the classic Atoms game

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addBallByIndex(cellIndex: Int): Unit
def completeTurn(): Unit
def doThePop(thisCell: Int): Unit
def isGameOver(): Boolean
def isReadyToPop(thisCell: Int): Boolean
def newTurn(thisPlayer: Colour, thisCell: Int): Unit
def primePopQueue(thisCell: Int): Unit
def processAddBall(): Boolean
def processPopBall(): Boolean
def setGameState(newState: String): Unit
def startGame(aGameState: String, aTurn: Int, aPlayers: Array[Colour], aCurrentPlayer: Colour, aCellCounts: Array[Int], aCellColors: Array[Colour]): Unit

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

var addBallQueue: Array[Int]
var cellColors: Array[Colour]
var cellCounts: Array[Int]
var cellNeighbours: Array[Array[Int]]
var cellSites: Array[Array[String]]
val cols: Int
var gameState: String
var players: Array[Colour]
var popBallQueue: Array[Int]
val rows: Int
var subscribers: Map[String, Array[Int]]
val thePlayers: Array[Colour]
var turn: Int