Components
GameData
dataclass
Class representing the game data. It's main use would be for strategizing or simulating plies.
| Attributes: |
|
|---|
Source code in /home/docs/checkouts/readthedocs.org/user_builds/decryptogame/envs/latest/lib/python3.10/site-packages/decryptogame/components.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
copy()
Create a deep copy of the GameData object.
| Returns: |
|
|---|
/home/docs/checkouts/readthedocs.org/user_builds/decryptogame/envs/latest/lib/python3.10/site-packages/decryptogame/components.py
49 50 51 52 53 54 55 | |
Note
dataclass
Class representing a note with information about the code, clues, attempted decipher and interception of a team in a given round.
| Attributes: |
|
|---|
Source code in /home/docs/checkouts/readthedocs.org/user_builds/decryptogame/envs/latest/lib/python3.10/site-packages/decryptogame/components.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
TeamName
Bases: IntEnum
Enumeration representing the team names.
| Attributes: |
|
|---|
Source code in /home/docs/checkouts/readthedocs.org/user_builds/decryptogame/envs/latest/lib/python3.10/site-packages/decryptogame/components.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | |
__repr__()
Custom representation for TeamName enumeration values.
| Returns: |
|
|---|
/home/docs/checkouts/readthedocs.org/user_builds/decryptogame/envs/latest/lib/python3.10/site-packages/decryptogame/components.py
20 21 22 23 24 25 26 | |
__str__()
Custom string method for TeamName enumeration values.
| Returns: |
|
|---|
/home/docs/checkouts/readthedocs.org/user_builds/decryptogame/envs/latest/lib/python3.10/site-packages/decryptogame/components.py
28 29 30 31 32 33 34 | |