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.159 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.158 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.157 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.156 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.155 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.154 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.153 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.152 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.151 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.150 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.149 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.148 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.147 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.146 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.145 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.144 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.143 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.142 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.141 tracks/elixir/exercises/tournament/tournament.exs
trackler-2.2.1.140 tracks/elixir/exercises/tournament/tournament.exs