Skip to content

TP. Test Pattern

Michael Kechinov edited this page Aug 6, 2018 · 3 revisions

Available scenarios:

  1. TP-1. A user sees modal dialog
  2. TP-2. A user selects saved battle to test.
  3. TP-3. A user scrolls timeline of the chosen battle.
  4. TP-4. A user selects a snek to test.
  5. TP-5. A user sees how a pattern works in the current situation.
  6. TP-6. A user closes modal dialog.

TP-1. A user sees modal dialog

  1. User sees the modal dialog:
  • Close button
  • Saved battle selector
  • Battle rounds timeline
  • Battle arena with the current situation on a field.
  • Selected pattern
  • Log field of pattern matching process

Variants:

  • If the user doesn't have saved battles, the modal dialog shows a message about it.

TP-2. A user selects saved battle to test.

  1. User clicks on saved battles list dropdown
  2. User sees a list of battles - type and ID.
  3. User clicks on any battle.
  4. Dropdown closes.
  5. Selected battle arena appears in arena area.
  6. Rounds timeline length sets to the battle length and on 0 round.
  7. Sneks lists renders with current selected arena and round sneks.
  8. Log area clears.

TP-3. A user scrolls timeline of the chosen battle.

  1. User drags timeline marker left or right.
  2. Current round appears near the timeline.
  3. Arena renders to the situation of the selected round.

TP-4. A user selects a snek to test.

  1. By default the first snek is selected.
  2. User clicks on snek on the arena.
  3. Selected sneks becomes highlighted.
  4. Other sneks become lowlighted.

TP-5. A user sees how a pattern works in the current situation.

  1. User sees a lof of events with the pattern: rotations, flips, random move.
  2. User sees arrow from the head of the snek which shows move direction.

TP-6. A user closes modal dialog.

  1. User clicks on "X" button.
  2. Dialog closes.
  3. User sees RE. Rules Editor