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.180 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.179 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.178 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.177 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.176 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.175 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.174 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.173 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.172 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.171 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.170 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.169 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.167 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.166 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.165 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.164 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.163 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.162 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.161 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.160 tracks/ocaml/exercises/bowling/bowling.mli