Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Player
- {
- playTurn(warrior)
- {
- // Cool code goes here.
- if (warrior.feel().isEmpty() == false)
- {
- warrior.attack();
- }
- else if (warrior.feel().isEmpty() == true)
- {
- if (warrior.health()<8)
- {
- warrior.rest();
- }
- else
- {
- warrior.walk();
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment