summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2026-03-11 14:13:05 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2026-03-11 14:13:05 +0100
commitf603daea63a6e15b3ea7303b3ed2e60079b6059f (patch)
tree0798c1dff67ed07097c0813526273576fee7ed07
parent9a87cf512f52b7994253104425161892be7d67d0 (diff)
downloadcolonial-twilight-f603daea63a6e15b3ea7303b3ed2e60079b6059f.zip
colonial-twilight-f603daea63a6e15b3ea7303b3ed2e60079b6059f.tar.gz
clean Player
-rw-r--r--lib/colonial_twilight/player.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/colonial_twilight/player.rb b/lib/colonial_twilight/player.rb
index ace1e47..943c845 100644
--- a/lib/colonial_twilight/player.rb
+++ b/lib/colonial_twilight/player.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-require 'colonial_twilight/turn'
+require_relative 'turn'
module ColonialTwilight
class Player
@@ -40,7 +40,7 @@ module ColonialTwilight
end
def will_be_next_first_eligible?
- Game.swap_actions.include? @prev_action
+ Game.swap_actions.include?(@prev_action)
end
def may_play_event?