Belot.java
Home Up BelotConstants.java Card.java Cards.java RunInfo.java Player.java Game.java Belot.java

 

 

// ----------------------------------------
// Belot.java
// CS 334
// John Paxton
// ----------------------------------------
public class Belot
{
	public static void main (String [] args)
	{
		Game belotGame = new Game();    // make a new game  
		belotGame.dealFiveCards();      // deal five cards
		belotGame.printStatus(true);  
		belotGame.callTrump();          // call trump
		belotGame.finishDealing();      // deal rest of cards
		belotGame.printStatus(true);  
		belotGame.scoreBonuses();       // score bonuses
		belotGame.playCards();          // simulate tricks
		belotGame.calculateScores();    // calculate scores
		belotGame.printStatus(false);
	}
}