![]() |
CS 111- Introduction to Computer Science
Homework #12 |
0. Learn Gomoku: Read about the basic game at http://en.wikipedia.org/wiki/Gomoku
1. Implement GomokuState: Implement a class GomokuState.java according to this specification. Note: The most challenging portion is testing for 5-in-a-row. Consider a simple top down approach: For each position with a piece, for each direction, count how many consecutive pieces go in that direction.
2. Testing GomokuState: Test your class us
ing the provided GUI. Usage: java Gomoku [<grid size>]
3. Implement GomokuGame: Implement a class GomokuGame.java according to this specification. Test input and a transcript with input is provided. Note that this text-based game implementation will largely rely on the methods you have implemented in GomokuState.java.
