The Use Case

We have a single, small use case. We have some opinions on what makes a useful use case in our Soapbox on Use Cases. There is a single actor, the “investigator”. The actor's goal is to see the expected results of using a particular strategy for a particular game. The typical scenario is the following.

Procedure 1.1. Basic Use Case

  1. Actor

    Specifies which game and betting strategy to test. The strategy may need additional parameters, like an initial budget, or stake. The game may require additional parameters, like betting limits.

  2. System

    Responds with a statistical summary of the outcomes after a fixed number of cycles (spins, or throws or hands). The number of cycles needs to be small (on the order of 200, to reflect only a few hours of play).

This system use case is embedded in an overall cycle of investigation that forms a kind of business use case. From this overall view, the actor's goal is to find an optimal strategy for a given game. The procedure includes the following steps.

Procedure 1.2. Business Use Case

  1. Actor

    Researches alternative strategies. Uses IDE to build new classes.

  2. IDE

    Creates new classes for the simulator.

  3. Actor

    Uses the Basic Use Case. Runs the simulator with selection of game and strategy.

  4. Simulator

    Responds with statistical results.

  5. Actor

    Evaluates the results. Uses a spreadsheet or other tool for analysis and visualization.

We are addressing parts of this larger business use case. While not describing the detailed “how-to” of using the IDE to build the new classes, we will address the design of those new classes. Additionally, we won't address how to analyze the results.