Euchre web-app for the socially distant family
git clone git://
Log | Files | Refs | README | LICENSE

commit 2612fc848f5139ea1ba4dac784bba5780fa24914 (patch)
parent 27022b0c8be221370e5fc4c66782720e7a38f7c9
Author: Alex Karle <>
Date:   Mon, 20 Apr 2020 00:01:21 -0400

Euchre::Dealer: Fix hand-sorting post dealer_swap

As an immediate followup to my previous test-adding commit, I realized
what was wrong -- the hands only sorted on deal and on trump picking!

On dealer_swap we need to resort the hands again (as the dealer's hand
has changed).

Mlib/Euchre/ | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/Euchre/ b/lib/Euchre/ @@ -451,6 +451,7 @@ sub dealer_swap { # Exchange the cards take_card($p, $msg->{card}) or return; push @{$p->{hand}}, $game->{trump_nominee}; + sort_hands($game); # Start the game $game->{phase} = 'play';