Package __deprecated

Source Code of __deprecated.StaticMain

package __deprecated;

import game.gamesheet.GameSheet;
import general.statics.function.GUIFunctions;

import java.util.ArrayList;



public class StaticMain {

  public static void main(String[] args){
   
    GUIFunctions.setLookAndFeel("Windows");
     
//    PlayerList players = new PlayerList();
//    Player player2 = new Player("Kadri");
//    players.addNewPlayer(player1);
//    players.addNewPlayer(player2);
//   
//    while(player1.getTurnRolls() < 3){
//      System.out.println(gameDice.rollDice(player1.getSavedDice()));
//      System.out.println("Millised t�ringud soovite s�ilitada?");
//      String bufferString = ErasableIOModule.getConsoleInput();
//      player1.setSavedDice(ErasableIOModule.stripToIntegers(bufferString));
//    }
//   
//    TupleScoreSlot slot = new TupleScoreSlot(2); 
//    slot.addScoreToSlot(gameDice.getDiceValues());
//    System.out.println(slot.toString());
//   
//    System.out.println("Kolm veeretamist t�is! Veeretuse l�pptulemus: " + gameDice.getDiceValues());
   
    ArrayList<Integer> testDice = new ArrayList<Integer>();
    testDice.add(3);
    testDice.add(2);
    testDice.add(1);
    testDice.add(4);
    testDice.add(5);
     
//    TupleScoreSlot onesTest = new TupleScoreSlot(1);
//    TupleScoreSlot twosTest = new TupleScoreSlot(2);
//    TupleScoreSlot threesTest = new TupleScoreSlot(3);
//    TupleScoreSlot foursTest = new TupleScoreSlot(4);
//    TupleScoreSlot fivesTest = new TupleScoreSlot(5);
//    TupleScoreSlot sixesTest = new TupleScoreSlot(6);
//    ChanceScoreSlot chanceTest = new ChanceScoreSlot();
//    YahtzeeScoreSlot yahtzeeTest = new YahtzeeScoreSlot();
//    XOAKScoreSlot threeOfAKind = new XOAKScoreSlot(3);
//    XOAKScoreSlot fourOfAKind = new XOAKScoreSlot(4);
//    PairScoreSlot onePair = new PairScoreSlot();
//    HouseScoreSlot house = new HouseScoreSlot();
//    TwoPairScoreSlot twoPair = new TwoPairScoreSlot();
//    SmallStraightScoreSlot small = new SmallStraightScoreSlot();
//    LargeStraightScoreSlot large = new LargeStraightScoreSlot();
//   
//    onesTest.addScoreToSlot(testDice);
//    System.out.println("OnesSlotTest: " + onesTest.toString());
//    twosTest.addScoreToSlot(testDice);
//    System.out.println("TwosSlotTest: " + twosTest.toString());
//    threesTest.addScoreToSlot(testDice);
//    System.out.println("ThreesSlotTest: " + threesTest.toString());
//    foursTest.addScoreToSlot(testDice);
//    System.out.println("FoursSlotTest: " + foursTest.toString());
//    fivesTest.addScoreToSlot(testDice);
//    System.out.println("FivesSlotTest: " + fivesTest.toString());
//    sixesTest.addScoreToSlot(testDice);
//    System.out.println("SixesSlotTest: " + sixesTest.toString());
//   
//    chanceTest.addScoreToSlot(testDice);
//    System.out.println("ChanceSlotTest: " + chanceTest.toString());
//    yahtzeeTest.addScoreToSlot(testDice);
//    System.out.println("YahzteeSlotTest: " + yahtzeeTest.toString());
//    threeOfAKind.addScoreToSlot(testDice);
//    System.out.println("ThreeOfAKindTest: " + threeOfAKind.toString());
//    fourOfAKind.addScoreToSlot(testDice);
//    System.out.println("FourOfAKindTest: " + fourOfAKind.toString());
//    onePair.addScoreToSlot(testDice);
//    System.out.println("PairScoreSlotTest: " + onePair.toString());
//    twoPair.addScoreToSlot(testDice);
//    System.out.println("TwoPairScoreSlotTest: " + twoPair.toString());
//    house.addScoreToSlot(testD;
//    System.out.println("Houseice)ScoreSlotTest: " + house.toString());
//    small.addScoreToSlot(testDice);
//    System.out.println("SmallStraightScoreSlotTest: " + small.toString());
//    large.addScoreToSlot(testDice);
//    System.out.println("LargeStraightScoreSlotTest: " + large.toString());
//   
   
    GameSheet newSheet = new GameSheet(4);
    newSheet.printGameSheetContents();

//    YahtzeeFrame main = new YahtzeeFrame(gameDice, newSheet);
    //StartupFrame frame = new StartupFrame(gameDice, newSheet);
  }
}
TOP

Related Classes of __deprecated.StaticMain

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.