This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
#include <thread> // to have a second thread for input | |
using namespace std; | |
#ifdef _WIN32 | |
#include <conio.h> | |
int getCharInput() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <windows.h> | |
using namespace std; | |
char table[3][3]={'1','2','3','4','5','6','7','8','9'}; | |
char player='X'; | |
void draw() | |
{ |