Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Hacksaar
Haxotel
Commits
3c0b6901
Commit
3c0b6901
authored
Aug 01, 2014
by
Ralf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.hacksaar.de/hacksaar/haxotel
parents
8120c09f
b0501296
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
player.py
player.py
+2
-2
No files found.
player.py
View file @
3c0b6901
...
...
@@ -120,9 +120,9 @@ class Player(Thing):
dy
,
dx
=
directionOffsets
.
get
(
direction
[
0
])
target
=
self
.
field
.
neighbor
(
dy
=
dy
,
dx
=
dx
)
if
target
is
None
or
not
target
.
isWalkable
():
self
.
send
(
obstinacyTable
[
self
.
obstinacy
])
self
.
obstinacy
+=
1
if
self
.
obstinacy
<
len
(
obstinacyTable
):
self
.
send
(
obstinacyTable
[
self
.
obstinacy
])
self
.
obstinacy
+=
1
return
else
:
# final message, do it
while
target
is
not
None
and
not
target
.
isWalkable
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment