Presentation is loading. Please wait.

Presentation is loading. Please wait.

MMTS Interface Requirements Specification. Interface for command line usage java.\Monopoly Usage: Monopoly … options: -g number of games to play with.

Similar presentations


Presentation on theme: "MMTS Interface Requirements Specification. Interface for command line usage java.\Monopoly Usage: Monopoly … options: -g number of games to play with."— Presentation transcript:

1 MMTS Interface Requirements Specification

2 Interface for command line usage java.\Monopoly Usage: Monopoly … options: -g number of games to play with same set of rules. If not set only 1 game will be played -p number of players between 2 and 6. -r max number of rounds to play “-1” will allow for game to end when only 1 player is left. -b game ends when number of players go bankrupt -j player cannot receive rent while in jail when option is active

3 Interface for command line usage java.\Monopoly –g3 –r –p3 –b3 -j Ends when 3 players declares 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

4 Layout of Game Board File

5 Layout of input file shall be a text file defined as follows: File shall open and close with and tag respectively each subsequent parameter being inside of this tag. Each game space shall be defined with a and end with with each subsequent parameter defining this space being inside of this tag. The order in which each space appears in this file will sequentially determine the layout of the board. The name of a space shall be enclosed in and The type of a space shall be enclosed in and A space shall only be one of the following types: GoIncomeTax JailGoToJail LuxuryTaxUtility RailroadProperty FreeParking If a space is a property it will have a color group, and the color group shall be a single integer to designate grouping. The color group shall be enclosed in and tags The price of a space shall be enclosed in and (will only be used on necessary spaces) The house price of a space shall be enclosed in and (will only be used on necessary spaces) The rent of a space shall be enclosed in and (will only used on necessary spaces, the # sign will be replaced with numbers 0-5 designating rent for each added house up to a hotel)

6 Example gameboard file Go Mediterranean Avenue Property 1 60 50 2 10 30 90 160 250 Reading Railroad Railroad 200 Chance

7 Report Formatting

8 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.

9 ###################################### Game report ###################################### Per Player Statistics -------------------------- Rounds Max Net Gross Total Highest Highest # of Property Times Total Houses Hotels Doubles Player# in game Money Income Expenses Net Worth Gross Income Gross Expense Groups Owned In Jail Cards Drawn Purchased Purchased Rolled --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Player Game statistics ------------------------------------- Average money in player hand: Number of times properties were mortgaged: Number of times properties were unmortgaged : Game space(board order) Total # times landed on ----------------------------------------------------------------------- Game space Total # times landed on(descending order) ------------------------------------------------------------------------------ Property that collected the most rent: ------------------------------------------------------ Property Group that collected the most rent: ------------------------------------------------------------- Listing of properties owned by player ------------------------------------- Player: -------------------------------------


Download ppt "MMTS Interface Requirements Specification. Interface for command line usage java.\Monopoly Usage: Monopoly … options: -g number of games to play with."

Similar presentations


Ads by Google