package viinaharava
Package Members
Type Members
- class GameBoard extends o1.Grid[Glass]
Each instance of the class
GameBoard
represents a board for a game of Viinaharava.Each instance of the class
GameBoard
represents a board for a game of Viinaharava. A game board is aGrid
whose elements areGlass
objects.A
GameBoard
is first initialized with water glasses (by initialElements). However, a number of the glasses are then immediately poured full of booze while the rest keep their default content of water.Once created, a
GameBoard
does not replace any of itsGlass
objects with another. However, the state of each individualGlass
may change. - class Glass extends AnyRef
The class
Glass
represents glasses in a game of Viinaharava.The class
Glass
represents glasses in a game of Viinaharava. A glass object is mutable: it is initially full of water but can be modified to contain booze instead and can be emptied.