(clientAddress)
| 149 | |
| 150 | |
| 151 | def 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 | |
| 163 | def game2_2(clientAddress): |