Go Fish: Difference between revisions

Content added Content deleted
 
Line 245: Line 245:


=={{header|FutureBasic}}==
=={{header|FutureBasic}}==
Translated from FreeBasic
Translated from FreeBasic May 5, 2024
May 5, 2024 Rich Love
Fixed intermittent hang
Also, now using && and || to be compatible with later versions of FutureBasic.
( replaces AND and OR )
<syntaxhighlight lang="futurebasic">


May 22 Minor update replaces || with or in the instructions.

<syntaxhighlight lang="futurebasic">
/*
/*


Line 523: Line 521:
print " On your turn, you ask the CPU For a card."
print " On your turn, you ask the CPU For a card."
print " You must already have at least one card of a given rank to ask For more."
print " You must already have at least one card of a given rank to ask For more."
print " (A rank is one || more of any card.)"
print " (A rank is one or more of any card.)"
print " If the CPU has any cards of the named rank, it must hand over all such cards,"
print " If the CPU has any cards of the named rank, it must hand over all such cards,"
print " and you can then ask again."
print " and you can then ask again."
Line 532: Line 530:
print " If at any time, your hand is empty, a new card will be drawn from the pile."
print " If at any time, your hand is empty, a new card will be drawn from the pile."
print " The game ends when every book is complete,"
print " The game ends when every book is complete,"
print " || there are no more cards left in the pile."
print " or there are no more cards left in the pile."
print " The player with the most books wins."
print " The player with the most books wins."
Line 811: Line 809:


handleevents
handleevents

</syntaxhighlight>
</syntaxhighlight>