(self, client_id)
| 139 | return game |
| 140 | |
| 141 | def player_id2index(self, client_id): |
| 142 | for i in range(len(self.players)): |
| 143 | if self.players[i]['id'] ==client_id: |
| 144 | return i |
| 145 | raise Exception("Invalid id") |
| 146 | |
| 147 | def get_player(self, client_id): |
| 148 | return self.players[self.player_id2index(client_id)] |
no outgoing calls
no test coverage detected