Sha256: 8a80c74a879795681a63c4647efc9685bb0685836102a7215845ef934dabfe08
Contents?: true
Size: 686 Bytes
Versions: 116
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 `:ok` 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
116 entries across 116 versions & 1 rubygems