- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
def checkio(res):
#bruteforce LOL
if res[0][0] == res[1][0] == res[2][0] == "X":
return "X"
if res[0][1] == res[1][1] == res[2][1] == "X":
return "X"
if res[0][2] == res[1][2] == res[2][2] == "X":
return "X"
if res[0][0] == res[0][1] == res[0][2] == "X":
return "X"
if res[1][0] == res[1][1] == res[1][2] == "X":
return "X"
if res[2][0] == res[2][1] == res[2][2] == "X":
return "X"
if res[0][0] == res[1][1] == res[2][2] == "X":
return "X"
if res[0][2] == res[1][1] == res[2][0] == "X":
return "X"
if res[0][0] == res[1][0] == res[2][0] == "O":
return "O"
if res[0][1] == res[1][1] == res[2][1] == "O":
return "O"
if res[0][2] == res[1][2] == res[2][2] == "O":
return "O"
if res[0][0] == res[0][1] == res[0][2] == "O":
return "O"
if res[1][0] == res[1][1] == res[1][2] == "O":
return "O"
if res[2][0] == res[2][1] == res[2][2] == "O":
return "O"
if res[0][0] == res[1][1] == res[2][2] == "O":
return "O"
if res[0][2] == res[1][1] == res[2][0] == "O":
return "O"
return "D"
plusinho 19.02.2018 00:11 # 0
g0_1494089131830 19.02.2018 23:39 # 0