reset password
Author Message
Anonymous
Posts: 166
Posted 21:32 Mar 11, 2014 |

Just to clarify;

 

In the calculateBid method in the AI_Template, there are 5 parameters: first_move, second_move, draw, first_money, and second_money.

first_move is the move made by the first player, and second_move is the move made by the second player.

My question is: do we have to account for invalid bids? Or should we assume first_move and second_move are valid moves?

Eric Liao
Posts: 158
Posted 21:34 Mar 11, 2014 |

You do not need to account these move are invalid.

Usually, this checking valid or invalid is being done by the game engine side. For your AI, you only need to check your own bid is valid before you return to the game engine so that you will not lose because of invalid move.