package viinaharava
Type Members
- class GameBoard extends o1.Grid[Glass]
Each instance of the class
GameBoardrepresents a board for a game of Viinaharava.Each instance of the class
GameBoardrepresents a board for a game of Viinaharava. A game board is aGridwhose elements areGlassobjects.A
GameBoardis 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
GameBoarddoes not replace any of itsGlassobjects with another. However, the state of each individualGlassmay change. - class Glass extends AnyRef
The class
Glassrepresents glasses in a game of Viinaharava.The class
Glassrepresents 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.