|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectGomokuGame
public class GomokuGame
GomokuGame - a text-based basic Gomoku game using
GomokuState. See http://en.wikipedia.org/wiki/Gomoku for game rules.
| Constructor Summary | |
|---|---|
GomokuGame()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
main - A text-based Gomoku game
implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GomokuGame()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
main - A text-based Gomoku game
implementation. Initially, the user is asked to enter a the
board grid size. Input then consists of pairs of integers
indicating 0-based row and column positions. Black places the
first piece and then players alternate. Before each move, the
board and current player is printed. After a winning move, the
final board and winning player is printed, and the game
terminates. Illegal plays yield an error message and are
ignored.
args - a String[] value
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||