Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lancarjodoh
IF3230-Tugas-Besar-Sister-2015
Commits
b152f643
Commit
b152f643
authored
Apr 26, 2015
by
Tegar Aji Pangestu
Browse files
Merge branch 'master' of
http://gitlab.informatika.org/lancarjodoh/IF3230-Tugas-Besar-Sister-2015
parents
6b262d4e
b08281b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/server/mainserver_nonthread.py
View file @
b152f643
...
...
@@ -400,8 +400,11 @@ def playserver(portLaptop):
else
:
response
=
"{'status' : 'fail', 'description' : 'offer is not available'}"
elif
(
method
==
'map'
):
response
=
'{"status" : "ok", "name" : "Bandar Behari", "width" : 5, "height" : 5}'
response
=
'{"status" : "ok", "name" : "Bandar Behari", "width" : 10, "height" : 10}'
elif
(
method
==
'move'
):
response
=
'{"status" : "ok", "time" : 123456}'
elif
(
method
==
'field'
):
response
=
'{"status" : "ok", "item" : 2}'
else
:
response
=
"{'status' : 'error'}"
...
...
Write
Preview
Supports
Markdown
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