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
4505d7ff
Commit
4505d7ff
authored
Aug 01, 2014
by
Ralf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tell adins first
parent
69d4af14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
game.py
game.py
+1
-1
labyrinth.py
labyrinth.py
+3
-3
No files found.
game.py
View file @
4505d7ff
...
...
@@ -24,7 +24,7 @@ class Game:
self
.
labyrinth
.
createThing
(
treasure
,
ttile
)
euclid
=
Euclid
(
self
)
etile
=
random
.
choice
(
self
.
labyrinth
.
getFreeTiles
())
#
self.labyrinth.createThing(euclid,etile)
self
.
labyrinth
.
createThing
(
euclid
,
etile
)
eliza
=
Extern
(
self
,
"Eliza"
,
"Z"
,
os
.
path
.
join
(
scriptDir
,
"eliza"
),
"./simple"
)
ztile
=
random
.
choice
(
self
.
labyrinth
.
getFreeTiles
())
self
.
labyrinth
.
createThing
(
eliza
,
ztile
)
...
...
labyrinth.py
View file @
4505d7ff
...
...
@@ -152,11 +152,11 @@ class Labyrinth:
self
.
tell
(
teller
,
teller
.
neighborThings
(),
verb
,
message
)
def
tell
(
self
,
teller
,
tolds
,
verb
,
message
):
for
thing
in
tolds
:
assert
thing
!=
teller
thing
.
tell
(
teller
,
verb
,
message
)
for
admin
in
self
.
game
.
admins
:
if
hasattr
(
teller
,
'uid'
):
admin
.
send
(
"player {0} {1}s: {2}"
.
format
(
teller
.
uid
,
verb
,
message
))
else
:
admin
.
send
(
"{0} {1}s: {2}"
.
format
(
str
(
teller
),
verb
,
message
))
for
thing
in
tolds
:
assert
thing
!=
teller
thing
.
tell
(
teller
,
verb
,
message
)
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