From 0b2da3de28bfacd5c9ac9f81a3d8ec232343ddbd Mon Sep 17 00:00:00 2001 From: Khalid Benjelloun Date: Sat, 17 Dec 2022 00:20:48 +0100 Subject: [PATCH] fixed: taget -> target --- starterAIs/Starter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/starterAIs/Starter.rb b/starterAIs/Starter.rb index e15a125..6bbdb79 100644 --- a/starterAIs/Starter.rb +++ b/starterAIs/Starter.rb @@ -73,7 +73,7 @@ my_units.each { |tile| target = nil # TODO: pick a destination tile - if taget + if target amount = 0 # TODO: pick amount of units to move actions<<"MOVE #{amount} #{tile.x} #{tile.y} #{target.x} #{target.y}" end @@ -81,4 +81,4 @@ # To debug: STDERR.puts "Debug messages..." puts actions.size > 0 ? actions*";" : "WAIT" -} \ No newline at end of file +}