Package breitband

Class Main


  • public class Main
    extends java.lang.Object
    The main class of the game.
    Author:
    Luna Otte
    See Also:
    main(java.lang.String[])
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Starts the game.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Starts the game. In order, this method:
        1. Parses the command line arguments
        2. Reads the game configuration
        3. (Optionally) creates the GUI
        4. Selects a random subset of the game's contracts
        5. Creates the game's players
        6. Initializes the GUI (if present)
        7. Goes through the main game loop
        8. Announces the last round
        9. Detects whether a player cheated
        10. Crowns a winner
        Parameters:
        args - The command line arguments