Skip to content

Commit 4446076

Browse files
authored
Merge pull request #17 from electricalgorithm/refactor-new-structure
Refactor new structure
2 parents c1e95d5 + 2eea532 commit 4446076

File tree

13 files changed

+20
-141
lines changed

13 files changed

+20
-141
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ __pycache__
33
snake_env
44
.idea/workspace.xml
55
.idea/tasks.xml
6-
6+
bin
7+
include
8+
lib
9+
pyvenv.cfg
10+
*.txt
11+
.idea

.idea/Snake Pygame 27_05_2019.iml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import pygame, os, sys
22
from pygame.locals import *
3-
from walls import Walls
4-
from snake import Snake
5-
from apple import *
63
from tkinter import *
7-
from constants import *
4+
5+
from src.walls import Walls
6+
from src.snake import Snake
7+
from src.apple import *
8+
from src.constants import *
89

910
os.environ['SDL_VIDEO_CENTERED'] = '1' # center the window
1011

requirements.txt

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1 @@
1-
appdirs==1.4.3
2-
asn1crypto==0.24.0
3-
autopep8==1.4.3
4-
backcall==0.1.0
5-
beautifulsoup4==4.6.3
6-
bs4==0.0.1
7-
certifi==2018.11.29
8-
cffi==1.12.3
9-
chardet==3.0.4
10-
Click==7.0
11-
colorama==0.4.1
12-
cryptography==2.6.1
13-
cssselect==1.0.3
14-
cycler==0.10.0
15-
decorator==4.3.2
16-
fake-useragent==0.1.11
17-
Flask==1.0.2
18-
future==0.17.1
19-
idna==2.7
20-
ipython==7.2.0
21-
ipython-genutils==0.2.0
22-
itsdangerous==1.1.0
23-
jedi==0.13.2
24-
Jinja2>=2.10.1
25-
kiwisolver==1.0.1
26-
lxml==4.2.5
27-
MarkupSafe==1.1.1
28-
matplotlib==3.0.2
29-
mysql-connector==2.1.6
30-
numpy==1.16.1
31-
pandas==0.24.1
32-
parse==1.9.0
33-
parso==0.3.2
34-
pickleshare==0.7.5
35-
Pillow==5.4.1
36-
prompt-toolkit==2.0.8
37-
py-backwards==0.7
38-
py-backwards-astunparse==1.5.0.post3
39-
pycodestyle==2.4.0
40-
pycparser==2.19
41-
pyee==5.0.0
42-
pygame==1.9.4
43-
Pygments==2.3.1
44-
PyOpenGL==3.1.0
45-
pyparsing==2.3.1
46-
pyppeteer==0.0.25
47-
pyquery==1.4.0
48-
python-dateutil==2.8.0
49-
python-telegram-bot==11.1.0
50-
pytz==2018.9
51-
requests==2.20.1
52-
requests-html==0.6.6
53-
six==1.11.0
54-
tqdm==4.28.1
55-
traitlets==4.3.2
56-
typed-ast==1.1.0
57-
urllib3==1.24.2
58-
virtualenv==16.4.3
59-
w3lib==1.19.0
60-
wcwidth==0.1.7
61-
websockets==7.0
62-
Werkzeug==0.15.2
63-
win-unicode-console==0.5
1+
pygame==2.1.2

results.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

apple.py renamed to src/apple.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from constants import *
2-
from random import randrange
31
import pygame
2+
from random import randrange
3+
4+
from .constants import *
45

56

67
class Apple:

0 commit comments

Comments
 (0)