Plansza pod DFS
This commit is contained in:
parent
bf74cff257
commit
c3247c1ef7
@ -2,7 +2,6 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="152ea650-8e02-4ed6-aa8c-04d44b275be4" name="Default Changelist" comment="">
|
<list default="true" id="152ea650-8e02-4ed6-aa8c-04d44b275be4" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/game.py" beforeDir="false" afterPath="$PROJECT_DIR$/game.py" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/waiter.py" beforeDir="false" afterPath="$PROJECT_DIR$/waiter.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/waiter.py" beforeDir="false" afterPath="$PROJECT_DIR$/waiter.py" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
@ -87,8 +86,8 @@
|
|||||||
<file pinned="false" current-in-tab="true">
|
<file pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/waiter.py">
|
<entry file="file://$PROJECT_DIR$/waiter.py">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="210">
|
<state relative-caret-position="434">
|
||||||
<caret line="67" column="74" selection-start-line="67" selection-start-column="74" selection-end-line="67" selection-end-column="74" />
|
<caret line="99" column="8" selection-start-line="99" selection-start-column="8" selection-end-line="99" selection-end-column="8" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#0#13#0" expanded="true" />
|
<element signature="e#0#13#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
@ -441,8 +440,8 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/waiter.py">
|
<entry file="file://$PROJECT_DIR$/waiter.py">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="210">
|
<state relative-caret-position="434">
|
||||||
<caret line="67" column="74" selection-start-line="67" selection-start-column="74" selection-end-line="67" selection-end-column="74" />
|
<caret line="99" column="8" selection-start-line="99" selection-start-column="8" selection-end-line="99" selection-end-column="8" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#0#13#0" expanded="true" />
|
<element signature="e#0#13#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
Binary file not shown.
@ -28,7 +28,7 @@ class Waiter(object):
|
|||||||
game.grid[self.positionY][self.positionX], \
|
game.grid[self.positionY][self.positionX], \
|
||||||
game.grid[self.positionY][self.positionX - 1]
|
game.grid[self.positionY][self.positionX - 1]
|
||||||
self.positionX -= 1
|
self.positionX -= 1
|
||||||
print(self.positionX)
|
#print(self.positionX)
|
||||||
self.lastStep.append("Left")
|
self.lastStep.append("Left")
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
@ -43,7 +43,7 @@ class Waiter(object):
|
|||||||
game.grid[self.positionY][self.positionX], \
|
game.grid[self.positionY][self.positionX], \
|
||||||
game.grid[self.positionY][self.positionX + 1]
|
game.grid[self.positionY][self.positionX + 1]
|
||||||
self.positionX += 1
|
self.positionX += 1
|
||||||
print(self.positionX)
|
#print(self.positionX)
|
||||||
self.lastStep.append("Right")
|
self.lastStep.append("Right")
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
@ -97,5 +97,5 @@ class Waiter(object):
|
|||||||
def draw(self):
|
def draw(self):
|
||||||
self.rect1 = pygame.Rect(self.x, self.y, 50, 50)
|
self.rect1 = pygame.Rect(self.x, self.y, 50, 50)
|
||||||
pygame.draw.rect(self.game.screen, (0, 150, 255), self.rect1)
|
pygame.draw.rect(self.game.screen, (0, 150, 255), self.rect1)
|
||||||
#print(self.lastStep)
|
print(self.lastStep)
|
||||||
self.game.screen.blit(self.image, (self.x, self.y))
|
self.game.screen.blit(self.image, (self.x, self.y))
|
||||||
|
Loading…
Reference in New Issue
Block a user