Packages

  • package o1
    Definition Classes
    root
  • package grid

    This package contains tools for working with grid-like two-dimensional structures.

    This package contains tools for working with grid-like two-dimensional structures.

    The contents of this package have aliases in the top-level package o1, so they are accessible to students simply via import o1._.

    Definition Classes
    o1
  • package viinaharava
    Definition Classes
    o1
  • package gui
  • GameBoard
  • Glass
p

o1

viinaharava

package viinaharava

Package Members

Type Members

  1. 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 a Grid whose elements are Glass 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 its Glass objects with another. However, the state of each individual Glass may change.

  2. 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.