Skip to content

Commit

Permalink
Adding demo bot game for Oxo
Browse files Browse the repository at this point in the history
  • Loading branch information
gulley committed Mar 20, 2015
1 parent 422708f commit 70786b7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions demos/Oxo_BotVsBot.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
%% OXO Demo
% Initialize

game = Oxo;
game.showBoard
% Two robots play until the game is over
nGamesSide1 = 100;
nGamesSide2 = 100;

while ~game.isGameOver
botMoves(game,nGamesSide1);

if ~game.isGameOver
botMoves(game,nGamesSide2);
end

end

0 comments on commit 70786b7

Please sign in to comment.