You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[print("Noughts and Crosses\n\nuse the numpad to make your move as shown below (type exit to quit)\n\n789 ---\n456 maps to ---\n123 ---")]+(lambda board, iterlist, count: [bool(iterlist.append(None)) + bool(board.__setitem__((lambda intpos: intpos if ((board[intpos] == "-") + bool(count.__setitem__(0, count[0]-(board[intpos] == "-")))) else 9)((lambda s: int(s)-1+6*(1-(int(s)-1)//3) if (s.isdigit() and 0 < int(s) < 10) else (s if s == "exit" else 9))(input("%s's go: " % (("0","X")[count[0] % 2])))), ("X","0")[count[0] % 2])) + bool(print(*board[:3],"\n",*board[3:6],"\n",*board[6:9], sep="")) if count[0] > 0 else None for i in iterlist]) (["-"]*10, [0], [9])