module HandCard:sig
..end
type
suit =
| |
Spades |
| |
Hearts |
| |
Diamonds |
| |
Clubs |
type
rank =
| |
One |
| |
Two |
| |
Three |
| |
Four |
| |
Five |
| |
Six |
| |
Seven |
| |
Eight |
| |
Nine |
| |
Ten |
| |
Jack |
| |
Queen |
| |
King |
| |
Ace |
type
card = {
|
suit : |
|
rank : |
val string_of_suit : suit -> string
val suit_of_string : string -> suit option
val string_of_rank : rank -> string
val rank_of_string : string -> rank option
val string_of_card : card -> string
val card_of_string : string -> card option
val main : unit -> unit Async.Std.Deferred.t