-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
36 lines (24 loc) · 876 Bytes
/
config.py
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
# Basesize:
# Basesize defines the basesize of the sudoku Grid
# With a Basesize of 3 the Sudoku will be 9x9 fields. This Sudoku will contain 9 squares with 9 fields
# resolutionField:
# ResolutionField defines the hight and with, which are identical of the main sudoku Grid
# spacebelowinPX:
# spacebelowinPX defines the amount of pixels below the main Sudoku Grid in the pygame Window.
class Solvertype:
backnorm="Backtracking Normal"
backadv="Backtracking optimized"
dancinglinks="Dancinglinks Algorithm X"
solvers= [backnorm,backadv,dancinglinks]
class Config(object):
basesize=3
resolutionField=600
spacebelowinPX=100
displayinHexa=False
sleeptime=0
currsolverindex=0
solver=Solvertype.solvers[currsolverindex]
class Temp(object):
currGrid=None
pygameActive=False
activeConfig = Config()