package mille.bean;

import java.util.ArrayList;

public class MilleBean {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Deck milleDeck = new Deck();
        milleDeck.shuffle();
        
        // TODO: get player name
        String playerName = "";
        String computerPlayer1Name = "";
        String computerPlayer2Name = "";
        String computerPlayer3Name = "";
        
        HumanPlayer humanPlayer = new HumanPlayer(playerName);
        ComputerPlayer computerPlayer1 = new ComputerPlayer(computerPlayer1Name);
        ComputerPlayer computerPlayer2 = new ComputerPlayer(computerPlayer2Name);
        ComputerPlayer computerPlayer3 = new ComputerPlayer(computerPlayer3Name);
        
        ArrayList<Player> players = new ArrayList<>();
        
        players.add(humanPlayer);
        players.add(computerPlayer1);
        players.add(computerPlayer2);
        players.add(computerPlayer3);
        
        while (isGameOver(milleDeck, players))
        {
            for (Player player : players)
            {
                player.makePlay();
                displayBoard();
            }
        }
    }
    
    public static boolean isGameOver(Deck deck, ArrayList<Player> players)
    {
        if (deck.isEmpty())
        {
            return true;
        }
        else if(/*game conditions*/ false)
        {
            return true;
        }
        
        return true;
    }
    
    public static void displayBoard()
    {
        // graphics code goes here
    }
}
@@ -41,16 +41,119 @@
 rayList;
+%0Aimport org.lwjgl.LWJGLException;%0Aimport org.lwjgl.opengl.Display;%0Aimport org.lwjgl.opengl.DisplayMode;
 %0A%0Apublic
@@ -1580,32 +1580,325 @@
 rue;%0A    %7D%0A    %0A
+    public static void createBoard()%0A    %7B%0A        try%0A        %7B%0A            Display.setDisplayMode(new DisplayMode(800, 600));%0A            Display.create();%0A        %7D%0A        catch (LWJGLException e)%0A        %7B%0A            e.printStackTrace();%0A            System.exit(0);%0A        %7D%0A    %7D%0A    %0A
     public stati
@@ -1935,17 +1935,16 @@
       //
- 
 graphics
@@ -1952,18 +1952,8 @@
 code
- goes here
 %0A   

add first LWJGL code