Sha256: 9ef14d3777e1a98108340915f3590a4f30c2001535858600d4919167e2016b5a
Contents?: true
Size: 689 Bytes
Versions: 69
Compression:
Stored size: 689 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
69 entries across 69 versions & 1 rubygems