Module Anthill.Mutable_rack

exception Removing_nonexistent
type bag = {
letters : int array;
mutable n_letters : int;
mutable blanks : int;
mutable star : bool;
}
val empty : unit -> bag
val inc : bag -> int -> unit
val dec : bag -> int -> unit
val count : bag -> int -> int
val add : bag -> Types.tile -> unit
val has_letter : bag -> Types.tile -> bool
val remove : bag -> Types.tile -> bool
val play : bag -> int -> Types.tile option
val of_rack : Types.tile list -> bag
val is_empty : bag -> bool
val has_wildcards : bag -> bool