Sha256: 5611ee313434a248456775675cfcc36b284ab8e0ffc4b2715538df48ea67cf72

Contents?: true

Size: 624 Bytes

Versions: 69

Compression:

Stored size: 624 Bytes

Contents

defmodule Tournament do
  @doc """
  Given `input` lines representing two teams and whether the first of them won,
  lost, or reached a draw, separated by semicolons, calculate the statistics
  for each team's number of games played, won, drawn, lost, and total points
  for the season, and return a nicely-formatted string table.

  A win earns a team 3 points, a draw earns 1 point, and a loss earns nothing.

  Order the outcome by most total points for the season, and settle ties by
  listing the teams in alphabetical order.
  """
  @spec tally(input :: list(String.t())) :: String.t()
  def tally(input) do
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.179 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.178 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.177 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.176 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.175 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.174 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.173 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.172 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.171 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.170 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.169 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.167 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.166 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.165 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.164 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.163 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.162 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.161 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.160 tracks/elixir/exercises/tournament/tournament.exs