Jump to content

Go Fish/OCaml: Difference between revisions

no edit summary
(Created page with '{{collection|Go Fish}}Category:OCaml <lang ocaml>type pip = Two | Three | Four | Five | Six | Seven | Eight | Nine | Ten | Jack | Queen | King | Ace let pips = …')
 
No edit summary
Line 199:
*)
opponent <- List.sort (fun _ _ -> Random.int 9 - Random.int 9) opponent;
ifmatch ranks <> []with
then| fst(List.hd[] ranks)-> Jack
else| Jack(x,_)::_ -> x
 
method give_cards (_cards : card list) =
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.