package org.puc.rio.inf1636.hglm.war;

import org.puc.rio.inf1636.hglm.war.model.Player;


public class WarLogic {
	
	public final static int MAX_PLAYERS = 6;
	public final static int MIN_PLAYERS = 3;
	public final static int MAX_DICE = 3;
	
	public static int calculateArmiesToGain(Player p) {
		int  x = p.getNumberOfTerritories() / 2;
		if(x<3) // that`s the minimum specified in the manual
			x=3;
		return x;
		
	}
}

@@ -83,17 +83,16 @@
 layer;%0A%0A
-%0A
 public c
@@ -107,18 +107,17 @@
 Logic %7B%0A
-%09
 %0A
+
 %09public 
@@ -231,18 +231,17 @@
 CE = 3;%0A
-%09
 %0A
+
 %09public 
@@ -291,17 +291,16 @@
 %7B%0A%09%09int 
- 
 x = p.ge
@@ -333,24 +333,16 @@
 ;%0A%09%09
-if(x%3C3) /
 /
+*
  that
-%60
+'
 s th
@@ -378,16 +378,40 @@
 nual
-%0A%09%09%09x=3;
+ */%0A%09%09if (x %3C 3) %7B%0A%09%09%09x = 3;%0A%09%09%7D
 %0A%09%09r
@@ -423,11 +423,8 @@
  x;%0A
-%09%09%0A
 %09%7D%0A%7D

Format code