Sha256: e6459a14ed334ed4ffe2a083e39e0784f7462a4debec21c00649ab9b6332d37c

Contents?: true

Size: 638 Bytes

Versions: 327

Compression:

Stored size: 638 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

327 entries across 327 versions & 1 rubygems

Version Path
trackler-2.2.1.49 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.48 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.47 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.46 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.45 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.44 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.43 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.42 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.41 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.40 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.39 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.38 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.37 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.36 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.35 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.34 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.33 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.32 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.31 tracks/elixir/exercises/queen-attack/queen_attack.exs
trackler-2.2.1.30 tracks/elixir/exercises/queen-attack/queen_attack.exs