Jun 25th 2015, 13:24:26
Jun 25th 2015, 13:24:26
Jun 25th 2015, 13:43:40
Jun 25th 2015, 14:09:58
Jun 25th 2015, 14:14:49
Jun 25th 2015, 14:25:52
Jun 25th 2015, 15:21:42
Jun 25th 2015, 15:28:14
Jun 25th 2015, 19:43:31
Jun 25th 2015, 20:21:59
Jun 25th 2015, 20:30:08
Jun 25th 2015, 20:37:00
Jun 25th 2015, 20:56:05
Jun 25th 2015, 21:02:50
Jun 25th 2015, 21:07:24
Jun 25th 2015, 21:10:33
Jun 25th 2015, 21:22:34
Jun 25th 2015, 21:27:02
Jun 25th 2015, 21:37:34
Jun 25th 2015, 21:42:58
Jun 25th 2015, 21:47:56
Jun 25th 2015, 23:00:38
Jun 25th 2015, 23:17:30
Jun 25th 2015, 23:18:32
package celphi;
public class block_explore {
public int land = 1920;
public int tland;
private int increment = 45;
int counter = 0;
public int getincrement(){
for (int i=0; i < 1; i++){
if (land <= 1920)
increment = 45;
else if (land > 1920 && land < 1983)
increment = 44;
else if (land > 1984 && land < 2048)
increment = 43;
else if (land > 2049 && land < 2117)
increment = 42;
else if (land > 2118 && land < 2189)
increment = 41;
else if (land > 2190 && land < 2265)
increment = 40;
else if (land > 2266 && land < 2345)
increment = 39;
else if (land > 2346 && land < 2429)
increment = 38;
else if (land > 2430 && land < 2518)
increment = 37;
else if (land > 2519 && land < 2612)
increment = 36;
else if (land > 2613 && land < 2711)
increment = 35;
else if (land > 2712 && land < 2816)
increment = 34;
else if (land > 2817 && land < 2928)
increment = 33;
else if (land > 2929 && land < 3047)
increment = 32;
else if (land > 3048 && land < 3173)
increment = 31;
else if (land > 3174 && land < 3308)
increment = 30;
else if (land > 3309 && land < 3453)
increment = 29;
else if (land > 3454 && land < 3608)
increment = 28;
else if (land > 3609 && land < 3774)
increment = 27;
else if (land > 3775 && land < 3954)
increment = 26;
}
return increment;
}
public void setland(){
tland = land + (2 * increment);
}
public int gettland(){
return tland;
}
public int getland(){
return land;
}
public void output(){
System.out.printf("Acres: (%s) Increment: (%s) + (%s) Total land: (%s)\n", getland(), getincrement(), getincrement(), gettland());
land = tland;
counter += 2;
System.out.println("Turn #: " + counter);
}
}
Jun 25th 2015, 23:30:54
Jun 25th 2015, 23:40:54
Jun 25th 2015, 23:43:09