Skip to content

Commit

Permalink
fish: simplify draw() (#544)
Browse files Browse the repository at this point in the history
The new card taken from DECK is pushed into the player's hand unconditionally
  • Loading branch information
mknos committed Apr 11, 2024
1 parent 4f3daca commit b2d07d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/fish
Expand Up @@ -81,13 +81,12 @@ sub draw {
if ($foo eq $guess) {
print "$asker drew the guess\n";
print "$asker get to go again\n";
push(@$drawarr, $foo);
} else {
print "$asker drew a $foo\n" if ($asker eq 'You');
# Professional mode...is watching you
@MY_PAST_GUESSES=();
push(@$drawarr, $foo);
}
push @$drawarr, $foo;
return($foo);
}

Expand Down

0 comments on commit b2d07d5

Please sign in to comment.