Presentation is loading. Please wait.

Presentation is loading. Please wait.

MMTS Interface Design Description. Interface for command line usage java.\Monopoly -h Usage: Monopoly [options] options: -gNUMPlay NUM games with the.

Similar presentations


Presentation on theme: "MMTS Interface Design Description. Interface for command line usage java.\Monopoly -h Usage: Monopoly [options] options: -gNUMPlay NUM games with the."— Presentation transcript:

1 MMTS Interface Design Description

2 Interface for command line usage java.\Monopoly -h Usage: Monopoly [options] options: -gNUMPlay NUM games with the same set of rules. By default, NUM is 1. -pNUMPlay each game with NUM players, where NUM is an integer from 2 to 6 inclusive. By default, NUM is 2. -rNUMPlay at most NUM rounds. A negative number indicates that the game will continue until only 1 player is left. By default, NUM is -1. -bNUMgame ends when NUM players go bankrupt. By default, NUM is 1. -jCauses players to not receive rent while in jail. -hDisplay this help and exit.

3 Restriction on Input Parameters For integers g, p, r, b: g ∈ [1, INT_MAX] Error message: g must be a positive integer p ∈ [2, 6] Error message: p must be an integer between 2 and 6 inclusive r ∈ [INT_MIN, INT_MAX] Error message: r must be an integer b ∈ [p-1, 5] Error message: b must be between 1 and p-1 ({p-1}) inclusive

4 Interface for command line usage java.\Monopoly –g 3 –p 3 –b 3 -j b must be between 1 and p-1 (2) inclusive java.\Monopoly –g 3 –p 3 –b 2 -j Ends when 2 players declare bankruptcy Jail rules activated Game 1 started Game 1 completed Game 2 started Game 2 completed Game 3 started Game 3 completed Collecting statistics and producing report

5 Report Formatting

6 Report Format The following slide shall be the report format for each game played. All games played shall be put into one single report output. All report output will be directed to stdout.

7 ###################################### Game report ###################################### Per Player Statistics -------------------------------------------------- Player#| 1 | 2 | 3 | -------------------------------------------------- Rounds in game| 41 | 1 | 12 Max Money| $41 | $2 | $11 Net Income| $41 | $3 | $10 Total Expenses| $41 | $4 | $9 Highest Net Worth| $41 | $5 | $8 Highest Gross Income| $41 | $6 | $7 # of Property Groups Owned| 41 | 7 | 6 Times In Jail| 41 | 8 | 5 Total Cards Drawn| 41 | 9 | 4 Houses Purchased| 41 | 10 | 3 Hotels Purchased| 41 | 11 | 2 Doubles Rolled| 41 | 12 | 1 Game statistics ------------------------------------- Average money in player hand: Number of times properties were mortgaged: Number of times properties were unmortgaged :

8 Game space(board order) Total # times landed on ----------------------------------------------------------------------- Game space(descending order) Total # times landed on ------------------------------------------------------------------------------ Property that collected the most rent: ------------------------------------------------------ Property Group that collected the most rent: ------------------------------------------------------------- Listing of properties owned by player ------------------------------------- Player: -------------------------------------


Download ppt "MMTS Interface Design Description. Interface for command line usage java.\Monopoly -h Usage: Monopoly [options] options: -gNUMPlay NUM games with the."

Similar presentations


Ads by Google