commit
4cb2eecac4
|
@ -64,6 +64,7 @@ public class MalteAI implements Player{
|
||||||
for (double d: weights) {
|
for (double d: weights) {
|
||||||
max = max > d ? max: d;
|
max = max > d ? max: d;
|
||||||
}
|
}
|
||||||
|
System.out.println(Arrays.toString(weights));
|
||||||
for (int i = 0; i < weights.length; i++) {
|
for (int i = 0; i < weights.length; i++) {
|
||||||
if (Math.abs(max - weights[i]) < 0.000001) {
|
if (Math.abs(max - weights[i]) < 0.000001) {
|
||||||
return i;
|
return i;
|
||||||
|
|
Loading…
Reference in a new issue