-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
37 lines (32 loc) · 889 Bytes
/
constants.py
File metadata and controls
37 lines (32 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
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
35
36
37
from enum import Enum
import colorama
from colorama import Fore, Back, Style
colorama.init()
colorama.init(autoreset=True)
class Color(Enum):
RED = 1
BLACK = 2
class Suit(Enum):
HEARTS = ("♥", Color.RED)
DIAMONDS = ("♦", Color.RED)
CLUBS = ("♣", Color.BLACK)
SPADES = ("♠", Color.BLACK)
def __init__(self, symbol, color):
self.symbol = symbol
self.color = color
LEGEND = {
'commands': {
'1-7': "Przenieś kartę z kolumny",
'd': "Dobierz ze stosu",
'f': "Przenieś na stos końcowy",
'w': "Przenieś kartę z odrzutni do kolumny",
'u': " Cofnij poprzedni ruch",
'l': "Przełącz poziom trudności",
'q': "Wyjdź z gry",
'wq': "Wyjdź z gry, bez potwierdzenia"
}
}
DIFFICULTY_LEVELS = {
1: "Łatwy",
3: "Trudny"
}