diff --git a/lib/viral_spiral/game.ex b/lib/viral_spiral/game.ex index 2b3e860..1808377 100644 --- a/lib/viral_spiral/game.ex +++ b/lib/viral_spiral/game.ex @@ -1,30 +1,29 @@ defmodule ViralSpiral.Game do alias ViralSpiral.Game.Room - alias ViralSpiral.Game.State @spec create_room(String.t()) :: Room.t() - def create_room(name) do + def create_room(_name) do end @spec join_room(String.t(), String.t()) :: Room.t() - def join_room(name, password) do + def join_room(_name, _password) do end - def pass_card(state, player, to) do + def pass_card(_state, _player, _to) do end - def keep_card(player) do + def keep_card(_player) do end - def discard_card(player) do + def discard_card(_player) do end - def turn_to_fake(player, card) do + def turn_to_fake(_player, _card) do end - def cancel_player(player, target) do + def cancel_player(_player, _target) do end - def viral_spiral(player, targets) do + def viral_spiral(_player, _targets) do end end diff --git a/lib/viral_spiral/game/room.ex b/lib/viral_spiral/game/room.ex index 44e23b4..02e48b2 100644 --- a/lib/viral_spiral/game/room.ex +++ b/lib/viral_spiral/game/room.ex @@ -1,6 +1,4 @@ defmodule ViralSpiral.Game.Room do - alias ViralSpiral.Game.Room - defstruct id: "", name: "", state: :uninitialized diff --git a/mix.exs b/mix.exs index 0f76bdc..e805646 100644 --- a/mix.exs +++ b/mix.exs @@ -1,11 +1,5 @@ defmodule ViralSpiral.MixProject do use Mix.Project - alias ViralSpiral.Game.Turn - alias ViralSpiral.Game.Round - alias ViralSpiral.Game.Room - alias ViralSpiral.Game.Player - alias ViralSpiral.Game - alias ViralSpiral.Canon def project do [ @@ -20,7 +14,7 @@ defmodule ViralSpiral.MixProject do # Docs name: "Viral Spiral", source_url: "https://github.com/tattle-made/viral-spiral", - homepage_url: "https://viralspiral.net", + homepage_url: "https://viralspiral.netlify.app/", docs: [ main: "ViralSpiral", extras: [ diff --git a/test/viral_spiral/turn_test.exs b/test/viral_spiral/turn_test.exs index 877d653..28c2b86 100644 --- a/test/viral_spiral/turn_test.exs +++ b/test/viral_spiral/turn_test.exs @@ -31,7 +31,7 @@ defmodule ViralSpiral.TurnTest do turn = Turn.new(round) assert length(turn.pass_to) == 3 - current_player = Enum.at(round.order, 0) + _current_player = Enum.at(round.order, 0) to_pass_players = Enum.slice(round.order, 1..2) turn = Turn.next(turn, to_pass_players)