Search in sources :

Example 1 with Game

use of com.lunivore.gameoflife.domain.Game in project jbehave-core by jbehave.

the class GridSteps method theGameIsRunning.

@Given("a $width by $height game")
@Aliases(values = { "a new game: $width by $height" })
public void theGameIsRunning(int width, int height) {
    game = new Game(width, height);
    renderer = new StringRenderer();
    game.setObserver(renderer);
}
Also used : Game(com.lunivore.gameoflife.domain.Game) StringRenderer(com.lunivore.gameoflife.view.string.StringRenderer) Given(org.jbehave.core.annotations.Given) Aliases(org.jbehave.core.annotations.Aliases)

Aggregations

Game (com.lunivore.gameoflife.domain.Game)1 StringRenderer (com.lunivore.gameoflife.view.string.StringRenderer)1 Aliases (org.jbehave.core.annotations.Aliases)1 Given (org.jbehave.core.annotations.Given)1