Created
November 1, 2014 04:19
-
-
Save yosriady/0f2467a34c14241c4fb7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define MAX_DESIRABILITY 10; | |
| #define NUM_BIDDERS 10; | |
| #define NUM_ITEMS 20; | |
| #define BIDDER_BALANCE 100; | |
| #define YOUR_BALANCE 100; | |
| Seller() = generateBidOrders -> showItem(); | |
| showItem() = getAllBidPrices -> announceWinner -> announceWinnerPrice -> showItem(); | |
| NormalBidder() = checkDesirability -> checkBalance -> calculatePrice -> bid -> getResults -> updateBalance -> NormalBidder(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment