We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7862f7e commit b9d4efaCopy full SHA for b9d4efa
src/main/java/Plant.java
@@ -2,15 +2,15 @@ public abstract class Plant implements BoardMovement{
2
3
int roundToReproduce;
4
int rounds;
5
- float reproduceChance;
+ double reproduceChance;
6
7
public Plant(int toReproduce, int reproduceChance){
8
this.roundToReproduce = toReproduce;
9
this.rounds = 0;
10
- this.reproduceChance = (float) reproduceChance / 100;
+ this.reproduceChance = (double) reproduceChance / 100;
11
}
12
13
- public Plant(int toReproduce, float reproduceChance){
+ public Plant(int toReproduce, double reproduceChance){
14
15
16
this.reproduceChance = reproduceChance;
0 commit comments