{{indexmenu_n>30}} ====== Sequence of Tasks ====== There are two main modes of determining the winner in the engine: by time and by points. In each mode, the sequence of passage can be made custom (linear/storm/mixed) using [[#editing_lines|lines]]. The mode determines the **default** sequence of passage. More details on each winner determination mode are described below. ===== By Time (Linear) ===== The winner is determined by the time spent completing the game, taking into account "time multiplier x" coefficients (if set). By default, the passage sequence is linear (i.e., only one current level is available at a time). ===== By Points (Storm) ===== The winner is determined by points earned. If the number of points is the same, whoever earned the last point first wins. In point-based games, you cannot take a penalty hint if the penalty cost is greater than the points the team currently has. By default, the passage sequence is storm-based (i.e., all levels are available simultaneously). You can view already completed tasks during the game. ====== Custom Passage Modes ====== ===== Storm (Time) ===== The winner is determined by the time spent completing the game. In storm games, bonuses play an important role. - Set the game setting **Winner determined by: Time**. - Add a game line and specify all level numbers separated by `+`. * For example, if there are 5 tasks in the game, you must specify: `1+2+3+4+5` - **Assign this line as the default line.** ===== Linear (Points) ===== The winner is determined by the total points scored during the game. Used if tasks need to be completed not quickly, but without hints and by earning the maximum number of bonuses. - Set the game setting **Winner determined by: Points**. - Add a game line and specify the level sequence "first dash last". * For example, if there are 5 tasks in the game, you must specify: `1-5` - **Assign this line as the default line.** ===== Mixed Order (Time) ===== The winner is determined by the time spent completing the game. - Set the game setting **Winner determined by: Time**. - In "by time" mode, for a block of simultaneously available tasks, only the maximum completion time of one of the tasks in this block is counted. * For example, if three tasks A, B, C are available in a block, and the team completed task A in an hour, and tasks B and C faster, then only the completion time of task A will be counted in the final statistics. - The completion time counted is also affected by the task setting "Time multiplier x". For example, in a block of simultaneous tasks containing A and B, the team completed A in an hour and B faster. If task A has "Time multiplier x" set to 0 (dummy task), then only the completion time of task B will be counted in the statistics. To specify a mixed order of tasks, see [[#editing_lines|Editing Lines]]. ===== Mixed Order (Points) ===== The winner is determined by points earned. If the number of points is the same, whoever earned the last point first wins. - Set the game setting **Winner determined by: Points**. - You can view already completed tasks during the game. To specify a mixed order of tasks, see [[#editing_lines|Editing Lines]]. ====== Editing Lines ====== Lines represent a specified order of tasks for some or all teams. A game can consist of blocks, each consisting of tasks or other blocks. There are three ways in which tasks in a block can be issued: ==== 1. Sequentially ==== Items are specified separated by commas or task numbers separated by a hyphen. * **''1, 2, 3, 4, 5''** is the same as **''1 - 5''** * **''5, 4, 3, 2, 1''** is the same as **''5 - 1''** * You can use the keyword **''max''** — which is replaced by the maximum task number in the game. * **''1 - max''** — all tasks in order * **''max - 1''** — all tasks in reverse order ==== 2. In Random Order ==== Items are specified separated by commas or task numbers separated by a hyphen. A space and a question mark `? ` is placed at the beginning of the block: * **''? 1, 2, 3, 4, 5''** is the same as **''? 1 - 5''** * **''? [1, 2], [3, 4]''** — task blocks are chosen in random order; tasks will be issued as 1,2,3,4 or 3,4,1,2 * **''[?1, 2, 3], [?4, 5, 6]''** — first 1, 2, 3 in random order, then 4, 5, 6 in random order. ==== 3. Available Simultaneously ==== Tasks available simultaneously are specified separated by `+`. * Example: **''1 + 2 + 3''** (levels 1, 2, 3 will be available simultaneously). * Many levels in a row, available simultaneously, are written with a double plus `++`: * **''1 ++ 5''** — the same as **''1 + 2 + 3 + 4 + 5''** * **''5 ++ max''** — levels from 5 to the last, available simultaneously. ==== Mixed Lines ==== * **''1, [ [2, 3] + [4, 5] ]''** — first task 1, then simultaneously tasks 2 and 4. When 2 is completed, 3 opens; when 4 is completed, 5 opens. * **''1, [ 2 + [3 - max] ]''** — first task 1, then task 2 will be available throughout the entire game, and the remaining levels (starting from 3) will be available one by one as they are completed. ==== Line Assignment ==== After creating lines, open the **"assign lines"** link to specify for each team that submitted a request for the game (or test) which line the team will follow. In the same line editing section, you can assign a default line that will be applied to all teams that do not have a line assigned individually.