I coded a few more functions to find:
1. Pocket of current player
2. Opposite hole
3. The side a hole belongs to
I also fixed a little problem -(for those of you who don't program, one tiny wrong word can bring BIG problems)- in my code to find the next hole.
After a short break, I will be attempting to get a simple ai up and running to play against. 'Artificial intelligence' might not be the right name though - this one will only be making random moves ;). A more complex ai with decision making capabilities is planned for the future.
No comments:
Post a Comment