Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player #2

Open
scerbos opened this issue Sep 11, 2013 · 0 comments
Open

Player #2

scerbos opened this issue Sep 11, 2013 · 0 comments
Labels
Milestone

Comments

@scerbos
Copy link
Contributor

scerbos commented Sep 11, 2013

Fields:
name :: the name or IP location of the Acquire Agent representing this player during the session
cash :: the amount of cash assets this Player possesses
stocks[ ] :: a list of the stocks owned by this Player, and quantities thereof
tilesInHand[ ] :: a list of the tiles currently in this Player's hand
Statistics for winning/losing/other metrics

Methods:
getName( ) :: returns the name or IP location of this Player's representative Acquire Agent
get/setCash( ) :: returns or sets the amount of cash this Player currently possesses
get/setNumStocks (string chain) :: returns or sets the quantity of stocks owned by this Player in hotel chain "chain"
addStocks (string chain, int quantity) :: adds "quantity" of stocks in hotel chain "chain" to this Player's stocks
removeStocks (string chain, int quantity) :: removes "quantity" of stocks in hotel chain "chain" from this Player's stocks
getTileFromHand (string tile) :: removes "tile" from this Player's hand
addTileToHand (string tile) :: adds "tile" to this Player's hand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant