Skip to content

Instantly share code, notes, and snippets.

@yosriady
Created November 1, 2014 04:19
Show Gist options
  • Select an option

  • Save yosriady/0f2467a34c14241c4fb7 to your computer and use it in GitHub Desktop.

Select an option

Save yosriady/0f2467a34c14241c4fb7 to your computer and use it in GitHub Desktop.
#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