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.139 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.138 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.137 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.136 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.135 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.134 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.133 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.132 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.131 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.130 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.129 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.128 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.127 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.126 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.125 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.124 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.123 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.122 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.121 tracks/ocaml/exercises/bowling/bowling.mli
trackler-2.2.1.120 tracks/ocaml/exercises/bowling/bowling.mli