blob: d6b48dd97479d440287520614090fbf8f89a8c53 (
plain)
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
|
""" board/static.py - määrittelyjä pelilaudan muuttumattomille asoille """
from enum import Enum, IntEnum
class Level(Enum):
""" vaikeustasot """
BEGINNER = 0
INTERMEDIATE = 1
EXPERT = 2
class Tile(IntEnum):
""" alueiden selitteet """
BLANK = 0
ONE = 1
TWO = 2
THREE = 3
FOUR = 4
FIVE = 5
SIX = 6
SEVEN = 7
EIGHT = 8
BOMB = 9
FLAG_BOMB = 10
FLAG_FREE = 11
UNOPENED = 12
FLAG_UNKNOWN = 13
LevelSpecs = {
Level.BEGINNER: ( 9, 9, 10 ),
Level.INTERMEDIATE: ( 16, 16, 40 ),
Level.EXPERT: ( 30, 16, 99 )
}
|