Skip to content

Commit

Permalink
Project structure to run main as python file
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralt98 committed Jun 2, 2019
1 parent ee3be40 commit 7dc2744
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
Empty file removed TexasHoldem/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from game import Game
from resources.game import Game
from tkinter import *
from collections import namedtuple

Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(self, master=None):
self.quit_button.grid(row=1, column=0)

self.canvas = Canvas(bg='grey', height=(4 * 76.75), width=(13 * 49.231))
self.picture = PhotoImage(file='TexasHoldem/card_deck.png')
self.picture = PhotoImage(file='resources/card_deck.png')
img_rects = []
for y in range(4):
for x in range(13):
Expand Down
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion TexasHoldem/game.py → resources/game.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from possibility import Possibility
from resources.possibility import Possibility


class Game(Possibility):
Expand Down
2 changes: 1 addition & 1 deletion TexasHoldem/possibility.py → resources/possibility.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from rankings import Rankings
from resources.rankings import Rankings
import itertools


Expand Down
2 changes: 1 addition & 1 deletion TexasHoldem/rankings.py → resources/rankings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from deck import Deck
from resources.deck import Deck
from collections import Counter


Expand Down

0 comments on commit 7dc2744

Please sign in to comment.