davefowler/chess — pull request #2 by TripRichert (2013-03-24 16:20:48+00:00)
Title: AI_fix

Fixes AI so that moves are based on material evaluation rather than just selecting first move in array.
I parsed the moves array differently than you did, which resulted in moves being selected from the opposite end of the array in the case of a tie (ie. opens with Nc6 instead of h5).
Fix can be demonstrated through move sequence
e4 Nc6
Ba6 bxa6 (instead of Rb8)