Mauro wrote on 12/07/2007 20:30:08: > > 6) ... I would like my Givens, Events or Outcomes to take parameters in > > their constructors, so that I can maintain a useful hierarchy of classes.
> Story 6 requires a bit more thought - can't see it very clearly ATM. > Can you elaborate please? I would like everything between eg: a Given and the next Given or event to be treated as a parameter which can be passed to the constructor of that Given. Hellbound's got a couple of examples of this. Here's one from the Game of Life: -- Story: cells with less than two neighbours die As a game producer I want cells with less than two neighbours to die So that I can illustrate how the game works to people with money Scenario: say bye bye Given the grid looks like ........ .XX..XX. .XX..... ........ ......X. ........ When the next step occurs Then the grid should look like ........ .XX..... .XX..... ........ ........ ........ -- Those strings get passed straight to the stories. It's number 6 in my priority list, so I'm not disappointed. Thank you very much! :D Cheers, Liz. -- Elizabeth Keogh [EMAIL PROTECTED] http://sirenian.livejournal.com http://jbehave.org
