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
67a1ab54
Commit
67a1ab54
authored
Aug 01, 2014
by
Constantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stoooopid buuuaags
parent
a1b4bea1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
game.py
game.py
+2
-2
treasure.py
treasure.py
+1
-1
No files found.
game.py
View file @
67a1ab54
...
...
@@ -3,7 +3,7 @@ import selectors
import
socket
import
labyrinth
import
random
import
t
reasure
from
treasure
import
T
reasure
class
Game
:
def
__init__
(
self
,
labyrinthFileName
,
adminPW
,
logFileName
=
None
,
port
=
1234
):
...
...
@@ -11,7 +11,7 @@ class Game:
self
.
admins
=
[]
with
open
(
labyrinthFileName
,
'r'
)
as
f
:
self
.
labyrinth
=
labyrinth
.
Labyrinth
(
game
=
self
,
stream
=
f
)
treasure
=
treasure
.
Treasure
()
treasure
=
Treasure
()
ttile
=
random
.
choice
(
self
.
labyrinth
.
getFreeTiles
())
self
.
labyrinth
.
createThing
(
treasure
,
ttile
)
self
.
sock
=
socket
.
socket
()
...
...
treasure.py
View file @
67a1ab54
import
thing
class
Treasure
(
Thing
):
class
Treasure
(
thing
.
Thing
):
def
__str__
(
self
):
return
"the treasure"
...
...
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