thsergitox / tank-turn-game

0 stars 0 forks source link

Move Tank #2

Closed A-PachecoT closed 1 week ago

A-PachecoT commented 1 week ago

As a player
I need to move my tank laterally on the map during my turn
So that I can position myself strategically for attacks

Details and Assumptions

Acceptance Criteria

Given it is my turn
And my tank is at position X
When I choose to move my tank <direction> by <distance>
Then my tank should move to position X + <distance> if moving right, or X - <distance> if moving left
And my tank should stop if it encounters the edge of the map or an obstacle
And my tank should fall if there is no terrain beneath it after moving

Examples:
  | direction | distance |
  | right     | 50       |
  | left      | 30       |