
/*
Online Java - IDE, Code Editor, Compiler

Online Java is a quick and easy tool that helps you to build, compile, test your programs online.
*/
import java.util.Scanner;

interface playConnectFour
{
    public void insertChip();
    
}

class connectFour implements playConnectFour 
{
    private int [][] board;
    
    Player1 p1 = new Player1(this, board);  // not sure why this object ref needs to be passed down
    //Player2 p2 = new Player2(this,board);
    
    
    public connectFour(int[][] board)
    {
        this.board=board;
        
    }
    
    public void insertChip()
    {
        
    }
    
}


public class Main
{
    public static void main(String[] args) {
    System.out.println("Welcome to Online IDE!! Happy Coding :)");
    
    int [][] board = new int [5][6];
    
    connectFour cf = new connectFour(board);
    
    }
    
}

class Player1
{
    int[][] currentBoard;
    
    Player2 p2;
    
    enum chips
    {
        YELLOW, RED;
    }
    
    
    public Player1(connectFour cf, int[][] currentBoard)
    {
        this.currentBoard=currentBoard;
        chips yellow = chips.YELLOW;
        //chips red = chips.RED;
        insertYellowChip(yellow);
        p2=new Player2(currentBoard);
        
    }
    
   
    public void insertYellowChip(chips yellow)
    {
        System.out.println("Which column would you like to insert the coin");
        Scanner scan = new Scanner(System.in);
        scan.next();
        
        
    }
    
    
}


class Player2
{
    int[][]currentBoard;
    
    enum chips
    {
        YELLOW, RED;
    }
    
    
    public Player2(int[][] currentBoard)
    {
        this.currentBoard=currentBoard;
        //chips yellow = chips.YELLOW;
        chips red = chips.RED;
        insertRedChip(red);
    }
    
    public void insertRedChip(chips red)
    {
        
    }
    
    
}