Level Score: 12
Time Bonus: 10
Clear Bonus: 4
Total Score: 10 + 26 = 36
Last active
August 29, 2015 14:02
-
-
Save a1ip/7d35f3276ade95577a12 to your computer and use it in GitHub Desktop.
Ruby warrior solution beginner level 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Player | |
| def play_turn(warrior) | |
| if warrior.feel.empty? | |
| warrior.walk! | |
| else | |
| warrior.attack! | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment