Skip to content

Instantly share code, notes, and snippets.

View Isaac2Ngeno5's full-sized avatar

Isaac Ngeno Isaac2Ngeno5

  • Cognition IT Solutions
  • Kenya
View GitHub Profile
@ajnarayan
ajnarayan / tictac.cpp
Created August 7, 2015 16:55
A Simple tic-tac-toe C++ game
#include <iostream>
using namespace std;
char square[9] = {'0','1','2','3','4','5','6','7','8'};
int checkwin()
{
if (square[0] == square [1] && square[1] == square[2] )
{ if ( square [0] == 'X' )
return 1;
else