Sha256: 16662677c5ecddf60e9931d7cf97d18e9c165e3db8987a1392fc9dafd2ee9479
Contents?: true
Size: 686 Bytes
Versions: 211
Compression:
Stored size: 686 Bytes
Contents
defmodule Bowling do @doc """ Creates a new game of bowling that can be used to store the results of the game """ @spec start() :: any def start do end @doc """ Records the number of pins knocked down on a single roll. Returns `any` unless there is something wrong with the given number of pins, in which case it returns a helpful message. """ @spec roll(any, integer) :: any | String.t def roll(game, roll) do end @doc """ Returns the score of a given game of bowling if the game is complete. If the game isn't complete, it returns a helpful message. """ @spec score(any) :: integer | String.t def score(game) do end end
Version data entries
211 entries across 211 versions & 1 rubygems