Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tutorial-game-00.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Here we define a method `runTestMatch` that sets up a match to test the `Choose2
Choose2Win.runTestMatch = function runTestMatch(players) {
players = players || [new ludorum.players.RandomPlayer(), new Choose2WinPlayer()];
var match = new ludorum.Match(new Choose2Win(), players);
match.events.on('move', function (game, moves) {
match.events.on('next', function (game, moves) {
console.log(game +'\tmoves: '+ JSON.stringify(moves));
});
match.events.on('end', function (game, result) {
Expand All @@ -158,4 +158,4 @@ What we've seen is all the code necessary to implement a really simple game and

[Next - A simple deterministic turn-based game: _TicTacToe_](tutorial-game-01.md.html)

_By [Leonardo Val](http://github.com/LeonardoVal)_.
_By [Leonardo Val](http://github.com/LeonardoVal)_.