Sha256: 80808b60c1ed857356a7a4eb33117e5b8314932afaa970621732fa023c5bdf28

Contents?: true

Size: 414 Bytes

Versions: 68

Compression:

Stored size: 414 Bytes

Contents

open Base

(** 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, string) Result.t

(** This is called at the end of a game to retrieve the final score. *)
val score : t -> (int, string) Result.t

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.118 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.117 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.116 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.115 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.114 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.113 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.111 tracks/ocaml/exercises/bowling/bowling.mli