Assumptions:
- We are talking about 2 different players, P1 and P2.
- They each played 6 rounds.
- They each won 4 of them and lost two of them (i.e. they're tied).
After all 6 rounds, the opponents for P1 ended up with the following track record:
# Debugging tools. REMOVE THIS LATER. {{{1 | |
set -o errexit # exit on errors | |
set -o nounset # exit on use of uninitialized variable | |
set -o errtrace # inherits trap on ERR in function and subshell | |
trap 'traperror $? $LINENO $BASH_LINENO "$BASH_COMMAND" $(printf "::%s" ${FUNCNAME[@]:-})' ERR | |
trap 'trapexit $? $LINENO' EXIT | |
trapexit() { | |
log "EXIT on line $2 (exit status $1)" "INFO " |
import yaml | |
import os | |
import requests | |
import tempfile | |
import subprocess | |
from github import Github | |
g = Github(os.environ["GITHUB_TOKEN"]) |
Firstly, what is <details>
<summary>
?
The HTML Details Element (
<details>
) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the<summary>
element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.