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 bc51375adfe2b7c2f7e16be202fd82c70fd4929d (patch)
parent 8e1b0d6338c7f767abfaf92abd0acd5204a94c44
Author: Alex Karle <alex@karle.co>
Date:   Wed,  6 May 2020 21:37:42 -0400

Euchre::Dealer: Fix restart_game sub

Poorly written attribute setter. Also need to return success.

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

diff --git a/lib/Euchre/Dealer.pm b/lib/Euchre/Dealer.pm @@ -150,7 +150,8 @@ sub start_game { sub restart_game { my ($self) = @_; - $self->game = Euchre::Game->new(); + $self->game(Euchre::Game->new()); + return SUCCESS; } sub num_players {