From 574cb1df34ace2a309d1a567d38e8b35cff3baae Mon Sep 17 00:00:00 2001 From: MaurizioBruetsch <32775189+MaurizioBruetsch@users.noreply.github.com> Date: Sun, 15 Oct 2017 20:56:12 +0200 Subject: [PATCH] Enhancement + added #8 multipleRounds to the Main --- src/player/Player2.java | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/src/player/Player2.java b/src/player/Player2.java index d7f1759..73afb50 100644 --- a/src/player/Player2.java +++ b/src/player/Player2.java @@ -20,6 +20,51 @@ public class Player2 implements Player{ return choice; } + public static boolean checkWin(int[][] board, int player){ + int winLength = 4; + boolean win = false; + // check columns for win + for(int i=0;i