Search

Wednesday, August 15, 2012

Day 7: Coding the "human"



As I promised, there is a first approach to "Human" interface that works like this:


  1. The player puts a coordinate.
  2. The translator converts it to a position.
  3. If there is a 0 in that position it returns the position.
  4. 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