Merge branch 'malte-ai' into 'master'

Malte ai

See merge request !25
This commit is contained in:
Malte Tammena 2017-10-27 09:46:51 +02:00
commit 4cb2eecac4

View file

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