Skip to content

Commit 4181e59

Browse files
committed
Add new difficulty: laike9m#12
1 parent 09e2821 commit 4181e59

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/Contribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
1. Fork this project if you haven't done so
44

5-
2. Determine how difficult the challenge is. There are 3 levels: **basic**, **intermediate**, and **advanced**.
5+
2. Determine how difficult the challenge is. There are 4 levels: **basic**, **intermediate**, **advanced**, and **extreme**.
66

7-
3. Create a new directory under [`challenges/`](https://github.com/laike9m/Python-Type-Challenges/tree/main/challenges). The new directory's name should follow the pattern `[basic|intermediate|advanced]-name`.
7+
3. Create a new directory under [`challenges/`](https://github.com/laike9m/Python-Type-Challenges/tree/main/challenges). The new directory's name should follow the pattern `[basic|intermediate|advanced|extreme]-name`.
88

99
For example, say you want to add a new challenge about [Protocols](https://mypy.readthedocs.io/en/stable/protocols.html). Since this is an advanced topic, you may name the directory `advanced-protocol`.
1010

templates/challenge_list.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,26 @@
66
"basic") %}
77
<li><a href="/challenges/{{ challenge.name }}">{{ challenge.name }}</a></li>
88
{% endfor %}
9+
910
<br />
1011
<b>Intermediate</b>
1112
{% for challenge in challenge_names | selectattr("difficulty", "equalto",
1213
"intermediate") %}
1314
<li><a href="/challenges/{{ challenge.name }}">{{ challenge.name }}</a></li>
1415
{% endfor %}
16+
1517
<br />
1618
<b>Advanced</b>
1719
{% for challenge in challenge_names | selectattr("difficulty", "equalto",
1820
"advanced") %}
1921
<li><a href="/challenges/{{ challenge.name }}">{{ challenge.name }}</a></li>
2022
{% endfor %}
23+
24+
<br />
25+
<b>Extreme</b>
26+
{% for challenge in challenge_names | selectattr("difficulty", "equalto",
27+
"extreme") %}
28+
<li><a href="/challenges/{{ challenge.name }}">{{ challenge.name }}</a></li>
29+
{% endfor %}
2130
</ol>
2231
</details>

0 commit comments

Comments
 (0)