Mole Rats
A Java version of the card game by
Drhoz.
Game description
Mole Rats represents a battle over territory and food between
two competing tribes of Kenyan Naked Mole Rats. The game is a
race to see who can establish a tunnel network which is safe
from invasion from the other tribe and which contains a food
source (a Kenyan Giant Turnip) and a ruler (a Queen Mole Rat;
their society is the mammalian equivalent of an insect hive).
The game is played by taking it in turns to pick up a
double-sided tile from the stack and placing it either way up
next to another tile on the game area.
There are three types of tile: tunnel tiles, turnip tiles and
queen rat tiles. The object of the game is to create a
perimeter tunnel around an area containing a turnip tile which
was placed down by anyone and a queen rat tile which you have
placed.
Requirements
- The game shall be accessible on the WWW (applet)
- The "playing equipment" shall be sixty double-sided tiles, with 6 faces being a turnip and 4 being a queen rat
- The rest of the faces shall have two doorways on each edge. -- each doorway may be connected between 0 and three other doorways (except queen and turnip tiles, all of whose doorways connect) in pre-determined ways by a tunnel
- There shall be two players who take it in turns to draw a tile, choose a side and place one of its four edges next to a tile on the board (so that the doorways connect)
- The first tile is not placed to another (it is placed in the centre of the board)
- The board (playing surface) shall be 119x119 squares in size
- The game is won by the first person who forms a closed tunnel network
- A closed network consists of at least nine tiles, each adjacent to at least one other tile in the network -- each tile is connected to each other tile by connected doorways
- No tile has a doorway which is connected to empty space outside the network's boundaries or to a tile not in the network if that doorway is connected to all the other tiles as stated
- There must be turnip and queen rat tiles inside the network when it becomes complete for the game to be over
- A tile may not be laid if it would connect two queen rate tiles laid by opposing players (this would be all-out war)
Classes
- GUI (subclass of Applet)
- Board (subclass of ScrollPane) [in a GUI object]
- Stack
- Tile
- Face (abstract) [two per Tile object]
subclasses:
- Room [between one and eight per Face]
doorways: array of four integers -- contains connected door numbers
- Controls
- Player
Alastair Irvine
Last modified: Mon Jan 3 00:46:41 WST 2005