forked from s444420/AL-2020
zmiany
This commit is contained in:
parent
4853b973b6
commit
abf5829c34
Binary file not shown.
Binary file not shown.
3
field.py
3
field.py
@ -33,7 +33,6 @@ class Field:
|
|||||||
|
|
||||||
self.rect.center = (center_x, center_y)
|
self.rect.center = (center_x, center_y)
|
||||||
|
|
||||||
|
|
||||||
# Metoda do wyświetlania pola na ekranie
|
# Metoda do wyświetlania pola na ekranie
|
||||||
def blitme(self):
|
def blitme(self):
|
||||||
self.screen.blit(self.image, self.rect)
|
self.screen.blit(self.image, self.rect)
|
||||||
@ -49,5 +48,5 @@ class Field:
|
|||||||
self.neighbors.append(board[self.y + 1][self.x])
|
self.neighbors.append(board[self.y + 1][self.x])
|
||||||
|
|
||||||
def addShelf(self):
|
def addShelf(self):
|
||||||
shelf = Shelf(len(self.shelves)+1)
|
shelf = Shelf(len(self.shelves) + 1)
|
||||||
self.shelves.append(shelf)
|
self.shelves.append(shelf)
|
1
main.py
1
main.py
@ -46,7 +46,6 @@ def run():
|
|||||||
elif event.key == pygame.K_SPACE:
|
elif event.key == pygame.K_SPACE:
|
||||||
board[9][0].item = choice(data.learning_data)
|
board[9][0].item = choice(data.learning_data)
|
||||||
print("Wybrano: " + board[9][0].item[-1])
|
print("Wybrano: " + board[9][0].item[-1])
|
||||||
board[9][0].item[-1] = 'Something'
|
|
||||||
field = board[9][0]
|
field = board[9][0]
|
||||||
if not field.is_shelf:
|
if not field.is_shelf:
|
||||||
path = functions.a_star(board[agent.y][agent.x], field, board)
|
path = functions.a_star(board[agent.y][agent.x], field, board)
|
||||||
|
Loading…
Reference in New Issue
Block a user