Skip to content

Instantly share code, notes, and snippets.

@kana
Created September 13, 2013 09:00
Show Gist options
  • Save kana/6548291 to your computer and use it in GitHub Desktop.
Save kana/6548291 to your computer and use it in GitHub Desktop.
othello-random-ai.js
othello.registerAI({
findTheBestMove: function (gameTree) {
return gameTree.moves[Math.floor(Math.random() * gameTree.moves.length)];
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment