next up previous
Next: Project 4: Moving the Up: W4444 Programming and Problem Previous: Project 2: Shortest Paths

Project 3: Jackhammer

Jackhammer is a game played on a triangular mesh, similar to that used in Chinese checkers. There are three players, who each start in one corner of the mesh. The size of the mesh is 17 units on a side, meaning that there are $17*18/2=153$ positions on the board.

On a turn, a player may move to an adjacent cell in any of the (up to) 6 valid directions for movement. Alternatively, a player may stay put and use a jackhammer to ``knock out'' an adjacent cell. Once a cell is hammered in this way, it is no longer available for movement by any of the players. A player may also choose to stay put without hammering a cell.

All players specify their moves simultaneously, and moves are resolved simultaneously. Multiple players can occupy the same cell.

Minor rules:

A game finishes after 1000 turns. (In class we can discuss whether this is a reasonable number. We can always change it if a larger number turns out to be more interesting.)

The idea of the game is to claim territory. At the end of the game, a player's score will be the number of unhammered cells reachable (in zero or more legal moves) from the player's final position. However, if some other player is also reachable from the player's final position, then the score for both players is zero. It is possible for all three players to score zero!

Your job is to write a computer player to score well in this game. Your program will be run against the programs of other groups, and the winner will be the player with the highest average score over all rounds played.

Your player will not know the identity of the opposing players. (Nevertheless, a smart program might be able to guess identities based on player behavior: we'll discuss whether this is considered ethical in class.) The complete board state and history is available to all players.

Some things to think about:


next up previous
Next: Project 4: Moving the Up: W4444 Programming and Problem Previous: Project 2: Shortest Paths
Ken Ross 2007-10-29