2015-09-21から1日間の記事一覧

Ruby Warrior

>|ruby| class Player def play_turn(warrior) @walk_flag = warrior.feel.empty? @health = warrior.health @captive_flag =warrior.feel.captive? @Bcaptive_flag = warrior.feel(:backward).captive? @back_flag = warrior.feel(:backward).empty? @wall_…