Virtual Teen Forums
 

Go Back   Virtual Teen Forums >
Register Blogs FAQ Calendar Mark Forums Read Chat Room

Old

Computer tic tac toe

Posted February 2nd, 2012 at 09:07 PM by ssgliberty
Updated September 16th, 2012 at 12:37 AM by ssgliberty

Code:
   // Tic_Tac_Toe 

// Include libraries
#include <iostream>
#include <string>
#include <ctime>

// use standerd namespace
using namespace std;

// Declare global values
char Board[9];

// Declare the funtions
void ShowBoard ();
bool MoveIsValid (int m);
int WhoWon (); //Returns 0 if noone won, 1 if player 1 won, and 2 if player 2 won.
int Total_Moves = 0;
...
ssgliberty's Forum Picture
Member++
Posted in Uncategorized
Views 583 Comments 2 ssgliberty is offline
Old

tic tac toe program

Posted February 2nd, 2012 at 09:05 PM by ssgliberty
Updated September 16th, 2012 at 12:37 AM by ssgliberty

Code:
  // Tic_Tac_Toe

// Include libraries
#include <iostream>
#include <string>

// use standerd namespace
using namespace std;

// Declare global values
char Board[9];

// Declare the funtions
void ShowBoard ();
bool MoveIsValid (int m);
int WhoWon (); //Returns 0 if noone won, 1 if player 1 won, and 2 if player 2 won.
int Total_Moves = 0;

void main () {
...
ssgliberty's Forum Picture
Member++
Posted in Uncategorized
Views 369 Comments 0 ssgliberty is offline

All times are GMT -5. The time now is 03:07 PM.


Powered by vBulletin®
Copyright©2000 - 2017
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright 2004 - 2017, VirtualTeen.org