Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 99550bf

Browse files
committed
Renamed "WRW_Game" to "WTK"
Signed-off-by: Serhii Horodilov <sgorodil@gmail.com>
1 parent aca9b8b commit 99550bf

File tree

17 files changed

+66
-67
lines changed

17 files changed

+66
-67
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ packages = [
4545
{ include = "sequences", from = "src" },
4646
{ include = "sorting", from = "src" },
4747
{ include = "primes", from = "src" },
48-
{ include = "wrw_game", from = "src" },
48+
{ include = "wtk", from = "src" },
4949
]
5050

5151
[tool.poetry.dependencies]
@@ -58,7 +58,7 @@ pylint = "^2.15.5"
5858
tox = "^4.0"
5959

6060
[tool.poetry.scripts]
61-
wrw_game = "wrw_game.__main__:run"
61+
wtk = "wtk.__main__:run"
6262

6363
[tool.pytest.ini_options]
6464
addopts = "--cov=src --verbose"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import logging
77

8-
from wrw_game import engine
9-
from wrw_game.loggers import stream_handler
8+
from wtk import engine
9+
from wtk.loggers import stream_handler
1010

1111
logger = logging.getLogger(__name__)
1212
logger.setLevel(logging.INFO)
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
###############################################################################
2-
WARRIORS, ROBBERS AND WIZARDS GAME
2+
WIZARDS, THIEFS AND KNIGHTS GAME
33
###############################################################################
44

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

3434
It's simple...
3535

36-
- **Warrior** beats **Robber**
37-
- **Robber** beats **Wizard**
38-
- **Wizard** beats **Warrior**
36+
- **Knight** beats **Thief**
37+
- **Thief** beats **Wizard**
38+
- **Wizard** beats **Knight**
3939

4040
Attack Stage
4141
============
4242

43-
Player selects the choice to attack from **warrior**, **robber** or **wizard**,
43+
Player selects the choice to attack from **knight**, **thief** or **wizard**,
4444
enemy selects the choice for defence from the same options by random. If the
4545
attack is successful:
4646

@@ -56,7 +56,7 @@ In case enemy is defeated:
5656
Defence Stage
5757
=============
5858

59-
Player selects the choice to defend from **warrior**, **robber** or **wizard**,
59+
Player selects the choice to defend from **knight**, **thief** or **wizard**,
6060
enemy selects the choice to attack from the same options by random. If the
6161
attack is successful:
6262

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
import logging
77

8-
from wrw_game.exceptions import EnemyDown, GameOver
9-
from wrw_game.loggers import stream_handler
10-
from wrw_game.models import Enemy, Player
8+
from wtk.exceptions import EnemyDown, GameOver
9+
from wtk.loggers import stream_handler
10+
from wtk.models import Enemy, Player
1111

1212
logger = logging.getLogger("engine")
1313
logger.setLevel(logging.INFO)
File renamed without changes.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
if TYPE_CHECKING:
1111
# noinspection PyProtectedMember
12-
from wrw_game.models import _AbstractModel
12+
from wtk.models import _AbstractModel # pragma: no cover
13+
14+
__all__ = ["EnemyDown", "GameOver"]
1315

1416

1517
class _GameModelException(Exception):
@@ -32,6 +34,3 @@ class EnemyDown(_GameModelException):
3234

3335
class GameOver(_GameModelException):
3436
"""Raised when a player is defeated"""
35-
36-
37-
__all__ = ["EnemyDown", "GameOver"]
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import random
88
from abc import ABC, abstractmethod
99

10-
from wrw_game import settings
11-
from wrw_game.enums import FightChoice, FightResult, get_fight_result
12-
from wrw_game.exceptions import EnemyDown, GameOver
13-
from wrw_game.loggers import stream_handler
10+
from wtk import settings
11+
from wtk.enums import FightChoice, FightResult, get_fight_result
12+
from wtk.exceptions import EnemyDown, GameOver
13+
from wtk.loggers import stream_handler
1414

1515

1616
class _AbstractModel(ABC):
File renamed without changes.

0 commit comments

Comments
 (0)