How to improve the a.i., part two
The next step is to implement a lookahead strategy. Instead of the A.I. looking at the result depending on what it does and picking the move that it thinks best, it considers all of the possible responses (including weighing the die roll - a result that needs a 2 or better is more likely than a result that requires rolling a 6) then picking the best move assuming that theb opponent pick his best move. The real powe5 comes into play when you go one step further and consider all of your possible responses. a 1, 2, or 3 move lookahead can usually be done in seconds.
|