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 8e1b0d6338c7f767abfaf92abd0acd5204a94c44 (patch)
parent ade001b54b9e6f9de721eb069e7228952e1629e4
Author: Alex Karle <alex@karle.co>
Date:   Wed,  6 May 2020 20:40:02 -0400

Euchre::Dealer: Add empty hand to spectator game_state

This is relied on by some clients (as they iterate over hand).

Diffstat:
Mlib/Euchre/Dealer.pm | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/Euchre/Dealer.pm b/lib/Euchre/Dealer.pm @@ -212,6 +212,8 @@ sub broadcast_gamestate { if (!$p->is_spectator) { $json->{hand} = $self->game->hands->[$p->seat]; + } else { + $json->{hand} = []; } $p->send($json); }