From da2663e9069aea0b8604f7995a8a342d57abf2f8 Mon Sep 17 00:00:00 2001 From: mokoe Date: Fri, 8 Jan 2021 12:50:05 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderung=20des=20kleinen=20Zufallselements?= =?UTF-8?q?=20bei=20Farbwahl=20des=20Computers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/de/jaujau/spiellogik/Computer_gegner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/jaujau/spiellogik/Computer_gegner.java b/src/de/jaujau/spiellogik/Computer_gegner.java index 9c713f8..fdf62d3 100644 --- a/src/de/jaujau/spiellogik/Computer_gegner.java +++ b/src/de/jaujau/spiellogik/Computer_gegner.java @@ -185,7 +185,7 @@ public class Computer_gegner { hoechsteAnzahl = anzahl; wahl = farben[i]; } - if (hand.size() > 2) { + if (hand.size() < 6 && hand.size() > 2) { if(zufall(10) > 7) { wahl = farben[zufall(4)]; }