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