After a short discussion with the customers, we agree that our first iteration should include the following stories:
Calculate expected winnings
As an operator, I want the system to display expected winnings, so that players will be enticed to buy tickets.
Register player
As an operator, I want players to register and open accounts before purchasing tickets, so that I have their details for marketing purposes and to prevent fraud.
Buy tickets
As a player, I want to buy tickets so that I can participate in lottery draws and win prizes.
Pay out winnings
As an operator, I want the system to locate the winning tickets, calculate winnings and pay money into ticket holders' accounts when I enter draw results.
View tickets
As a player, I want to view my tickets, so that I can find out if I have won and how much.
We implement these stories in the following chapters, writing functional and acceptance tests as we go along.



