Skip to content

Instantly share code, notes, and snippets.

View RinkuMonani's full-sized avatar
🎯
Focusing

Rinku Monani RinkuMonani

🎯
Focusing
View GitHub Profile
@RinkuMonani
RinkuMonani / TicTacToe.cpp
Created April 25, 2019 16:59
This is a simple c++ program for 2 player game tic tac toe. Both the players in this program are manual.
#include<iostream>
#include<stdlib.h>
using namespace std;
char array[9],turn = 'X'; //turn determines which player has to play
int chance = 1;
void display(){
int i;
cout<<endl;
for(i=1;i<=9;++i){
cout<<"\t"<<array[i]<<" "; //just an indentation thing