val insert_random_square : square -> board -> board option
(** [insert_random_square square board] is [board] with [square] inserted
in a randomly-chosen empty spot or [None] if there was no such spot. *)
I've left insert_square in, in case it's useful to have something more deterministic for testing.
Let's leave the implementation of insert_random_square as a gameplay-enhancing extension exercise in the tutorial.
Rather inelegant implementation of
I've left
insert_square
in, in case it's useful to have something more deterministic for testing.Let's leave the implementation of
insert_random_square
as a gameplay-enhancing extension exercise in the tutorial.