ntietz/ai-class — Issue #5: Make move choices semi-random
Author: ntietz
Created: 2011-12-04 19:00:19+00:00
State: open

Right now, if two moves X and Y have the same scores, Sx and Sy, then X will always be chosen first. The order of the game is determined, so if we happen to have a bad move earlier in the list then we will consistently lose. We can make it so if there are multiple best moves, we choose randomly between them so that we will get a variety of different games.