(state)
| 29 | return random.randint(MINSTICKS, MAXSTICKS) |
| 30 | |
| 31 | def computerzug(state): |
| 32 | xored = state[0] ^ state[1] ^ state[2] |
| 33 | if xored == 0: |
| 34 | return randommove(state) |
| 35 | for z in range(3): |
| 36 | s = state[z] ^ xored |
| 37 | if s <= state[z]: |
| 38 | move = (z, s) |
| 39 | return move |
| 40 | |
| 41 | def randommove(state): |
| 42 | m = max(state) |
no test coverage detected
searching dependent graphs…