SIM001

SIM001 › For developers › Making the executor better

Test report

Judging a Towers captain › One game, a fair test, a judgement passed

As a developer of a commander for Towers, I want the league to judge my captain, so that I know if it is better than the champion.

The test behind the tutorial Judging a Towers captain: every step it takes, what it checks and what it saw.

Start

From the setup of Making the executor better, and:

Given the champion captain is the timid captain
  And the challenger captain is the default captain
Everything it starts with
Given the champion captain is the timid captain
  And the challenger captain is the default captain
Screenshot
  • Every arranged state read back as arranged (2)

1 When the arena plays a game of Towers between two default captains

When the arena plays a game of Towers between two default captains
Then the drones that flew in the captain game are 10

Expected behaviour: A captain game in the fast arena is a game of Towers.

Screenshot

2 When the default captain plays itself from both sides

When the default captain plays itself from both sides
Then the score of the captain against itself is 0

Expected behaviour: A captain playing itself from both sides scores nothing.

Screenshot

3 When the league judges the captain challenger

When the league judges the captain challenger
Then the verdict is promoted

Expected behaviour: A captain that is better from both sides becomes the champion.

Screenshot