Advertisement
Guest User

Untitled

a guest
May 6th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. int zone1;
  2. int zone2;
  3. int zone3;
  4.  
  5.  
  6. public void countVotes()
  7. {
  8. if ((zone1 == 0) && (zone2 == 0) && (zone3 == 0))
  9. {
  10. return;
  11. }
  12. if ((zone1 == zone2) && (zone2 == zone3))
  13. {
  14. newzone = Rnd.get(1, 3);
  15. return;
  16. }
  17. if ((zone2 < zone1) && (zone1 > zone3))
  18. {
  19. newzone = 1;
  20. }
  21. if ((zone1 < zone2) && (zone2 > zone3))
  22. {
  23. newzone = 2;
  24. }
  25. if ((zone1 < zone3) && (zone3 > zone2))
  26. {
  27. newzone = 3;
  28. }
  29. changeZone(newzone);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement