Sha256: ad622a34c1a387e2a34648b7ddfcc8db7ffc696684c2cd654b59dae59f60a284
Contents?: true
Size: 365 Bytes
Versions: 167
Compression:
Stored size: 365 Bytes
Contents
(** Abstract type for the bowling game. *) type t (** A new bowling game *) val new_game: t (** This is called each time the player rolls a ball, with input the number of pins knocked down. The return value is the updated state of the game. *) val roll : int -> t -> t (** This is called at the end of a game to retrieve the final score. *) val score : t -> int
Version data entries
167 entries across 167 versions & 1 rubygems