Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public void placeArmies(Player player)
  2. {
  3. System.out.println("You have 3 armies to place.");
  4. for (int armies = 3 ; armies>0 ; --armies)
  5. {
  6. status();
  7. choice();
  8. Territory territoryOutput = territoryInput();
  9. Player owner = territoryOutput.ownerCheck();
  10. if ( owner == player || owner == null )
  11. {
  12. player.placeArmies(1, territoryOutput);
  13. }
  14. else
  15. {
  16. ++armies;
  17. }
  18. }
  19. status();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement