diff --git a/.gitignore b/.gitignore index c776bdf..7656970 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -*.deb \ No newline at end of file +*.deb +__pycache__ \ No newline at end of file diff --git a/ronrunner_1.0~beta1-1/usr/bin/game.py b/ronrunner_1.0~beta1-1/usr/bin/game.py new file mode 100644 index 0000000..1eaa0e6 --- /dev/null +++ b/ronrunner_1.0~beta1-1/usr/bin/game.py @@ -0,0 +1,10 @@ +from player import Player + +class Game: + def __init__(self, p1: Player, p2: Player, p3: Player, p4: Player): + self.players = [ + p1, + p2, + p3, + p4 + ] \ No newline at end of file diff --git a/ronrunner_1.0~beta1-1/usr/bin/player.py b/ronrunner_1.0~beta1-1/usr/bin/player.py new file mode 100644 index 0000000..10f3441 --- /dev/null +++ b/ronrunner_1.0~beta1-1/usr/bin/player.py @@ -0,0 +1,6 @@ +from random import randint + +class Player: + def __init__(self, name: str): + self.name = name + self.id = randint(0, 10**100) \ No newline at end of file diff --git a/ronrunner_1.0~beta1-1/usr/bin/ronrunner b/ronrunner_1.0~beta1-1/usr/bin/ronrunner index 317bb83..e82d0dc 100755 --- a/ronrunner_1.0~beta1-1/usr/bin/ronrunner +++ b/ronrunner_1.0~beta1-1/usr/bin/ronrunner @@ -2,11 +2,11 @@ from tkinter import * from tkinter import ttk +from player import Player +from game import Game root = Tk() frm = ttk.Frame(root, padding=10) frm.grid() -ttk.Label(frm, text="Hello World").grid(column=0, row=0) -ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0) root.mainloop()