From b04e2a8fc664e1654b5f71dab0a289b96b2637d6 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Wed, 18 Oct 2017 13:02:26 +0200 Subject: [PATCH] Fixed naming issue, build passing --- src/game/Game.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Game.java b/src/game/Game.java index 55a3666..c171796 100644 --- a/src/game/Game.java +++ b/src/game/Game.java @@ -3,7 +3,7 @@ package game; import java.util.Random; import player.Player; -import player.Player2; +import player.MaurizioAI; /** * Represents a game of Connect Four. @@ -168,14 +168,14 @@ public class Game { * @return the state of the game, -1 = still undecided , 0 = draw, 1 = Player 1 wins, ... */ private int checkState(boolean output) { - if(Player2.checkWin(this.board, p1.getID())){ + if(MaurizioAI.checkWin(this.board, p1.getID())){ this.gameOn = false; if(output){ System.out.println(p1.getP().getName() + " wins!"); } return p1.getID(); // player 1 wins } - if(Player2.checkWin(this.board, p2.getID())){ + if(MaurizioAI.checkWin(this.board, p2.getID())){ this.gameOn = false; if(output){ System.out.println(p2.getP().getName() + " wins!");