Sha256: 0b021ea2a2e7806e3eebf4979a504e27063bba158b0d33b7255ec08e4b42be79

Contents?: true

Size: 633 Bytes

Versions: 69

Compression:

Stored size: 633 Bytes

Contents

defmodule Queens do
  @type t :: %Queens{black: {integer, integer}, white: {integer, integer}}
  defstruct black: nil, white: nil

  @doc """
  Creates a new set of Queens
  """
  @spec new() :: Queens.t()
  @spec new({integer, integer}, {integer, integer}) :: Queens.t()
  def new(white, black) do
  end

  @doc """
  Gives a string reprentation of the board with
  white and black queen locations shown
  """
  @spec to_string(Queens.t()) :: String.t()
  def to_string(queens) do
  end

  @doc """
  Checks if the queens can attack each other
  """
  @spec can_attack?(Queens.t()) :: boolean
  def can_attack?(queens) do
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

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