MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / game2_1

Function game2_1

projects/multiplayer_socket/server.py:151–160  ·  view source on GitHub ↗
(clientAddress)

Source from the content-addressed store, hash-verified

149
150
151def game2_1(clientAddress):
152 while not attributes["break2"]:
153 if attributes["mes"] == "":
154 attributes["player1"].send(
155 "Play".encode()
156 ) # send prompt to player1 to play
157 attributes["mes"] = (
158 attributes["player1"].recv(2048).decode().upper()
159 ) # receive player 1's choice
160 attributes["rps"][0] = attributes["mes"]
161
162
163def game2_2(clientAddress):

Callers 1

pre_game2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected