today we want to introduce you our new family members in our use-case-family, the .feature-File. It's much more readable than an Activity Diagram. First, we created them for our two existing use cases, set game rules and calculate score.
Game rules:
Feature: Game rules
In
order to set the game rules
As a triangle
I want to define the events for the
different types of fields in the overworld
Scenario: Normal Field
Given I want to move in any direction
When I would move on a normal field
Then I move forward
Scenario: Poison Field
Given I want to move in any direction
When I would move on a poison field
Then I move forward
And my energy consumption becomes higher
Scenario: Energy Field
Given I want to move in any direction
When I would move on an energy field
Then I move forward
And my energy becomes higher
Scenario: Wall Field
Given I want to move in any direction
When I would move on a poison field
Then I don't move forward
Scenario: Death Field
Given I want to move in any direction
When I would move on a death field
Then I don't move forward
And I die
Calculate Score:
Feature: Calculate Score
In
order to rate a playthrough of the AI
As a Player
I want to calculate a number named
highscore to see immediately if it was good or bad
Scenario: Display the score
When I finished the game
Then summarize the distance for every
single triangle
And the score is displayed
Scenario: Add score in highscore list
Given the score is calculated
When the score is higher then the
last entry of the highscore list
Then add score
to correct position in highscore list
Soon you will find them also in our updated versions of the UseCase Specification.
Have a nice day,
TheLearningTriangle-Team
