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

Version Path
trackler-2.2.1.109 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.108 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.107 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.106 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.105 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.104 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.103 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.102 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.101 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.100 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.99 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.98 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.97 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.96 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.95 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.94 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.93 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.92 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.91 tracks/elixir/exercises/bowling/bowling.exs
trackler-2.2.1.90 tracks/elixir/exercises/bowling/bowling.exs