Skip to content

Commit b9d4efa

Browse files
committed
Plant reproduce chance is now double
1 parent 7862f7e commit b9d4efa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/Plant.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ public abstract class Plant implements BoardMovement{
22

33
int roundToReproduce;
44
int rounds;
5-
float reproduceChance;
5+
double reproduceChance;
66

77
public Plant(int toReproduce, int reproduceChance){
88
this.roundToReproduce = toReproduce;
99
this.rounds = 0;
10-
this.reproduceChance = (float) reproduceChance / 100;
10+
this.reproduceChance = (double) reproduceChance / 100;
1111
}
1212

13-
public Plant(int toReproduce, float reproduceChance){
13+
public Plant(int toReproduce, double reproduceChance){
1414
this.roundToReproduce = toReproduce;
1515
this.rounds = 0;
1616
this.reproduceChance = reproduceChance;

0 commit comments

Comments
 (0)