Skip to content

Commit f35944e

Browse files
committed
Update server.py
1 parent 01cd865 commit f35944e

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

server.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ class Server(object):
2424
When a client connects, they are greeted with a welcome message. And then they can
2525
move through the connected rooms. For example, on connection:
2626
27-
Welcome to Realms of Venture! This room has brown wall paper! (S)
28-
move north (C)
29-
This room has white wallpaper. (S)
30-
say Hello? Is anyone here? (C)
31-
You say, "Hello? Is anyone here?" (S)
32-
move south (C)
33-
This room has brown wall paper! (S)
34-
move west (C)
35-
This room has a green floor! (S)
36-
quit (C)
37-
Goodbye! (S)
27+
OK! Welcome to Realms of Venture! This room has brown wall paper! (S)
28+
move north (C)
29+
OK! This room has white wallpaper. (S)
30+
say Hello? Is anyone here? (C)
31+
OK! You say, "Hello? Is anyone here?" (S)
32+
move south (C)
33+
OK! This room has brown wall paper! (S)
34+
move west (C)
35+
OK! This room has a green floor! (S)
36+
quit (C)
37+
OK! Goodbye! (S)
3838
3939
Note that we've annotated server and client messages with *(S)* and *(C)*, but
4040
these won't actually appear in server/client communication. Also, you'll be
@@ -190,6 +190,8 @@ def push_output(self):
190190
"""
191191
Sends the contents of the output buffer to the client.
192192
193+
This method should prepend "OK! " to the output before sending it.
194+
193195
:return: None
194196
"""
195197

0 commit comments

Comments
 (0)