![]() |
CS 111- Introduction to Computer Science
Homework #13 |
0. Learn Ataxx:
1. Implement AtaxxState: Implement a class AtaxxState.java according to this specification. To distribute your work, try to complete AtaxxState.java by Friday 4/15.
2. Test AtaxxState: Test your class using the provided GUI. Usage: "java Ataxx". Single-click onto an adjacent grid cell to grow into it. Click and drag a piece to indicate a jump move. Note that this will generate text input that will be useful for testing your text-based AtaxxGame.java.
3. Implement AtaxxGame: Implement a class AtaxxGame.java according to this specification. Test inputs with output transcripts (including input) are provided. Note that this text-based game implementation will largely rely on the methods you have implemented in AtaxxState.java. Each time you print the board, remember to print an extra blank line thereafter. No printing should occur in AtaxxState.java. There should be a strict separation of game model (the state) and the interface (text or GUI).