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.159 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.158 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.157 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.156 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.155 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.154 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.153 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.152 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.151 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.150 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.149 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.148 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.147 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.146 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.145 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.144 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.143 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.142 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.141 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.140 tracks/ocaml/exercises/bowling/bowling.mli