diff options
Diffstat (limited to 'src/miinaharava/board/static.py')
-rw-r--r-- | src/miinaharava/board/static.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/miinaharava/board/static.py b/src/miinaharava/board/static.py new file mode 100644 index 0000000..4804ded --- /dev/null +++ b/src/miinaharava/board/static.py @@ -0,0 +1,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 + MINE = 9 + FLAG_MINE = 10 + FLAG_FREE = 11 + UNOPENED = 12 + FLAG_UNKNOWN = 13 + + +LevelSpecs = { + Level.BEGINNER: ( 9, 9, 10, "Aloittelija"), + Level.INTERMEDIATE: ( 16, 16, 40, "Keskivaikea"), + Level.EXPERT: ( 30, 16, 99, "Edistynyt") +} |