Skip to content

Commit

Permalink
document MATCH_END message
Browse files Browse the repository at this point in the history
  • Loading branch information
gareththegeek committed Aug 20, 2018
1 parent 3b15b83 commit 2423a5d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/developer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,24 @@ Published at the end of the round to indicate the outcome
}
```

### MATCH_END

Published at the end of a multi-round match to indicate the outcome

```
{
rounds: number; // The number of rounds in the match
warriors: [
source: IParseResult; // The parsed output of the warrior
won: number; // The number of rounds won by the warrior
drawn: number; // The number of rounds drawn by the warrior
lost: number; // The number of rounds lost by the warrior
given: number; // The number of points awarded to the warrior given by win percentage multiplied by three plus draw percentage
taken: number; // The number of points awarded to the warrior's opponent given by loss percentage multiplied by three plus draw percentage
];
}
```

### TASK_COUNT

Published whenever a warrior creates or loses a task.
Expand Down

0 comments on commit 2423a5d

Please sign in to comment.