From a665c0142e597373997a25e3c673fba2b9f24b56 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 1 Jun 2009 23:23:20 -0500 Subject: increment the turn properly --- lib/Bot/Games/Game/Chess.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- cgit v1.2.3-54-g00ecf