Astrologic

Astrologic (previously known as Locksmith) has been developed exclusively with the Whirled SDK, and its source is available - hopefully making SDK adoption by budding game developers that much easier.

Rules
Astrologic is played by 2 players, playing either Red or Blue. The game board is made up of 4 rotating rings with randomly generated holes, 6 marble launchers (3 of each color), a center with 2 score baskets (one of each color), and marbles of red and blue that fall through the rings whenever a path presents itself.

Points are accrued by getting your color of marble into your score basket at the center. Marbles of the opposite color that land in your basket are simply taken off the board, with no effect on the score (other than costing your opponent a potential point).

The first player to reach 10 points (or more) is the winner! A tie only occurs if both players clear 10 points at exactly the same moment - a rare feat.

At the start of each round, one launcher of each color is loaded with a marble, and the player who is up chooses a ring to rotate either clockwise or counter-clockwise. There is no pass move - you must move a ring on your turn. As the ring rotates, the marbles in it and in the rings "above" it will attempt to move into the center, taking every path that opens to it.

When the rotation is complete, the launchers will attempt to release the marble they have loaded. If there is no hole in front of them, or there is a hole but it is already occupied by another marble, the marble that was in that launcher is destroyed, and will never be released onto the board.

The launchers load themselves in the same progression all the time - starting in the middle position, then going to the bottom, then wrapping back to the top.

Controls
The controls for the game are very simple. The up and down arrow keys on the keyboard control which ring is selected (the selected ring will show up in a yellower shade of its natural color), and when you have the ring selected that you wish to move, hit right to turn it clockwise, or left to turn it counter-clockwise (think in terms of a steering wheel).

Please Note!
If it seems like the game is not responding, and it is your turn, please click in the game area a couple of times to make sure that it has keyboard focus.

Source Code
As mentioned at the top of this page, the source code for this project is available. It is released under the terms of the GNU General Public License, and is therefore available for use by other Whirled developers.

http://code.threerings.net/viewvc/whirled/trunk/projects/games/locksmith/