As I promised, there is a first approach to "Human" interface that works like this:
- The player puts a coordinate.
- The translator converts it to a position.
- If there is a 0 in that position it returns the position.
- If not, the player shpuld write another position.
This should work, and only have to add a human object in the main loop and get the move and put it on the board.
Next post will be about making the main loop a real loop XD.
No comments:
Post a Comment