CSPP 51090 Software Construction Assignment 6

Due: 5:00pm May 13, 2003

Design and implement the following strategies as additional players:

  • BuyBestCard: if there is more than one card that the player can buy, it buys the best card. [2pts]
    Rationale: when you can buy two cards, you might as well buy the one that creates more value.

  • AlwaysTrade: the player trades up if it can gain two or more pebbles from a trade. [2pts]
    Rationale: the more pebbles you acquire, the sooner you can buy one.

  • BestAlways: this player combines the two modifications. [2pts]
    Rationale: combine the two rationales.

  • Run a tournament to find out how these strategies perform. [1pts]



    CSPP 51090 Software Construction