Go Fish/Mathematica: Difference between revisions

m
Fixed syntax highlighting.
(Fixed Mathematica + Description)
m (Fixed syntax highlighting.)
 
Line 1:
{{collection|Go Fish}}
The AI simply picks the rank that it has the most of.
<langsyntaxhighlight Mathematicalang="mathematica">ranks = {"Ace", "Two", "Three", "Four", "Five", "Six", "Seven",
"Eight", "Nine", "Ten", "Jack", "Queen", "King"};
suits = {"Clubs", "Diamonds", "Hearts", "Spades"};
Line 58:
playerBooks > oppBooks,
"You win with " <> IntegerString[playerBooks] <> " books!", True,
"Tie!"]];</langsyntaxhighlight>
9,476

edits