I have been working on getting the computer to play. The simplest approach is to have it pick random pieces to move, and keep trying till it finds a legal move. This isn't a good approach, it loses every time, I just want to get the flow of the game going.
The game I am writing involves two players taking turns to roll two dice and move one or two of their pieces. Unfortunately, the computer move is instantaneous so it makes it difficult to see what is happening. I need to add some delays. I might leave this until I put the code into
XNA.
1 comment:
I suggest alpha-beta tree pruning ...
Post a Comment