Go Fish/Erlang: Difference between revisions

m
Fixed syntax highlighting.
(Created page with "{{collection|Go Fish}} The computers strategy is to ask for the things the human player has asked for previously. Otherwise it asks for the pips that it has not asked for befo...")
 
m (Fixed syntax highlighting.)
 
Line 3:
 
I have not seen any other language include a sample of game play so I will not do that either. A pity, since I spent more time making the printouts usable then on any other thing in the code.
<syntaxhighlight lang="erlang">
<lang Erlang>
-module( go_fish ).
 
Line 99:
Pip = string:to_upper( [C] ) ++ T,
player_pip_to_draw( lists:member(Pip, Pips), Pip, Pips ).
</syntaxhighlight>
</lang>
9,485

edits