euchre-live

Euchre web-app for the socially distant family
git clone git://git.alexkarle.com/euchre-live.git
Log | Files | Refs | README | LICENSE

commit b84e209f5728839e4cfd7c029a61d6f1164e8c3e (patch)
parent cefbde1de89e694abed78d2346c0fc9a2a5ebc78
Author: Alex Karle <alex@karle.co>
Date:   Tue, 14 Apr 2020 22:47:49 -0400

Euchre::Dealer: Fix modulus error on rotating dealer

Gotta love those pesky parenthesis placement bugs!

Diffstat:
Mlib/Euchre/Dealer.pm | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Euchre/Dealer.pm b/lib/Euchre/Dealer.pm @@ -263,7 +263,7 @@ sub start_new_round { my ($game) = @_; # Shift dealer and deal - $game->{dealer} = ($game->{dealer} + 1 % 4); + $game->{dealer} = ($game->{dealer} + 1) % 4; $game->{table} = [undef, undef, undef, undef]; $game->{tricks} = [0,0,0,0]; $game->{out_player} = -1;