diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-06-01 23:23:20 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-06-01 23:23:20 -0500 |
commit | a665c0142e597373997a25e3c673fba2b9f24b56 (patch) | |
tree | af4903585c7cb41f47a95dd9fdaf72ec3fa207a7 | |
parent | 3c44b32db2e71b56e1403d72f0b6dc113ba56972 (diff) | |
download | bot-games-a665c0142e597373997a25e3c673fba2b9f24b56.tar.gz bot-games-a665c0142e597373997a25e3c673fba2b9f24b56.zip |
increment the turn properly
-rw-r--r-- | lib/Bot/Games/Game/Chess.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bot/Games/Game/Chess.pm b/lib/Bot/Games/Game/Chess.pm index 28a7183..752b381 100644 --- a/lib/Bot/Games/Game/Chess.pm +++ b/lib/Bot/Games/Game/Chess.pm @@ -34,7 +34,7 @@ augment turn => sub { my $status = eval { $self->game->go_move($move) }; return $@ if $@; my $desc = $self->format_turn($status); - $self->game->inc_counter if $self->game->to_move; + $self->inc_turn if $self->game->to_move; $self->is_active(0) if $self->game->status->{mate} || $self->game->status->{stalemate}; |