-
Notifications
You must be signed in to change notification settings - Fork 0
/
takatekla.py
46 lines (37 loc) · 875 Bytes
/
takatekla.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
37
38
39
40
41
42
43
44
45
46
from tkinter import Game, Tk
from game import Game
def main():
import argparse
parser = argparse.ArgumentParser(
description="Import users from a website to another"
)
parser.add_argument(
"columns",
help="Number of columns to render",
)
parser.add_argument(
"rows",
help="Number of rows to render",
)
parser.add_argument("mode", help="Game mode", choices=["i", "t"])
args = parser.parse_args()
cellW = 252
cellH = 80
# you can modify default main colors here
colors = {
"panel-bg": "#30261c",
"main-bg": "#1F5F61",
"disabled-bg": "#0B8185",
}
master = Tk()
Game(
cellW,
cellH,
int(args.rows),
int(args.columns),
master,
args.mode,
colors=colors,
)
master.mainloop()
main()