final
This commit is contained in:
parent
ecf83b179c
commit
a5259eacae
21
game.py
21
game.py
@ -3,7 +3,6 @@ import modele
|
||||
import numpy as np
|
||||
import random
|
||||
import os
|
||||
import shutil
|
||||
import astar
|
||||
import uczenie_kacper as kacper
|
||||
import uczenie_adamO as adamO
|
||||
@ -11,18 +10,18 @@ import uczenie_adamB as adamB
|
||||
|
||||
|
||||
smieci_path = ''
|
||||
smieci_w_kontenerach = "resources/smieci w kontenerach"
|
||||
smieci_w_kontenerach = "resources\\smieci w kontenerach"
|
||||
|
||||
# PODAJ OSOBE PRZED URUCHOMIENIEM (kacper/adamB/adamO)
|
||||
osoba = 'adamB'
|
||||
osoba = 'kacper'
|
||||
rfc = None
|
||||
|
||||
if osoba == 'kacper':
|
||||
smieci_path = 'resources/smieci'
|
||||
smieci_path = 'resources\\smieci'
|
||||
elif osoba == 'adamB':
|
||||
smieci_path = 'resources/smieci'
|
||||
smieci_path = 'resources\\smieci'
|
||||
else:
|
||||
smieci_path = 'resources/smieci_stare'
|
||||
smieci_path = 'resources\\smieci_stare'
|
||||
rfc = adamO.rozpocznijUczenie()
|
||||
|
||||
pygame.init()
|
||||
@ -208,12 +207,12 @@ def utworzObiekty():
|
||||
if not os.path.exists(smieci_w_kontenerach):
|
||||
os.makedirs(smieci_w_kontenerach)
|
||||
else:
|
||||
for dir in os.listdir(os.getcwd() + "/" + smieci_w_kontenerach):
|
||||
files = os.listdir(os.getcwd() + "/" +
|
||||
smieci_w_kontenerach + "/" + dir)
|
||||
for dir in os.listdir(os.getcwd() + "\\" + smieci_w_kontenerach):
|
||||
files = os.listdir(os.getcwd() + "\\" +
|
||||
smieci_w_kontenerach + "\\" + dir)
|
||||
for file in files:
|
||||
os.remove(os.getcwd() + "/" +
|
||||
smieci_w_kontenerach + "/" + dir + "/" + file)
|
||||
os.remove(os.getcwd() + "\\" +
|
||||
smieci_w_kontenerach + "\\" + dir + "\\" + file)
|
||||
|
||||
kontener_szklo = modele.Kontener(4, 4, "glass")
|
||||
kontener_szklo.setImage(pygame.image.load(
|
||||
|
@ -34,7 +34,7 @@ pycodestyle==2.5.0
|
||||
pydotplus==2.0.2
|
||||
pygame==1.9.6
|
||||
pyparsing==2.4.7
|
||||
PyQt5==5.9.2
|
||||
PyQt5==5.14.2
|
||||
python-dateutil==2.8.1
|
||||
PyYAML==5.3.1
|
||||
requests==2.23.0
|
||||
@ -42,7 +42,7 @@ requests-oauthlib==1.3.0
|
||||
rsa==4.0
|
||||
scikit-learn==0.23.0
|
||||
scipy==1.4.1
|
||||
sip==4.19.8
|
||||
sip==5.3.0
|
||||
six==1.14.0
|
||||
tensorboard==2.2.1
|
||||
tensorboard-plugin-wit==1.6.0.post3
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 8.1 KiB |
Loading…
Reference in New Issue
Block a user