I cannot determine why this is not working. I throw it in irb and it works fine.. Please let me know if you see the issue
My Code:
class Player
def play_turn(warrior)
@warrior = warrior
@turn ||= 0
puts @warrior.look
if @warrior.look.include?("Wizard")
@warrior.shoot!
Output of puts which is an Array:
nothing
Captive
Wizard
For some reason it will not do the shoot, this if statement returns false.. Thanks!