Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/wtk/challenge.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
###############################################################################
Wizards, Thiefs and Knights
Wizards, Thieves and Knights
###############################################################################

"Wizards, Thiefs and Knights" (WTK) game is a "Paper, Rock and Scissors" clone,
"Wizards, Thieves and Knights" (WTK) game is a "Paper, Rock and Scissors" clone
but in a fantasy setting. It comes with a simple command line interface where
the use must type in his or her choice. The enemy is controlled by the script.
The player's goal is to gain as many score points, as it possible.
Expand Down Expand Up @@ -33,14 +33,14 @@ Fight rules

It's simple...

- **Knight** beats **Thief**
- **Thief** beats **Wizard**
- **Wizard** beats **Knight**
- **Thief** beats **Wizard**
- **Knight** beats **Thief**

Attack stage
============

Player selects the choice to attack from **knight**, **thief** or **wizard**,
Player selects the choice to attack from **wizard**, **thief** or **knight**,
enemy selects the choice for defence from the same options by random. If the
attack is successful:

Expand All @@ -56,7 +56,7 @@ In case enemy is defeated:
Defence stage
=============

Player selects the choice to defend from **knight**, **thief** or **wizard**,
Player selects the choice to defend from **wizard**, **thief** or **knight**,
enemy selects the choice to attack from the same options by random. If the
attack is successful:

Expand Down
4 changes: 2 additions & 2 deletions src/wtk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ def fight(attack: FightChoice, defence: FightChoice) -> FightResult:

The method calculates the fight result based on the game rules:

- **knight** beats **thief**
- **thief** beats **wizard**
- **wizard** beats **knight**
- **thief** beats **wizard**
- **knight** beats **thief**

"""

Expand Down