Tic-Tac-Toe

In this section, Source Code of some Games are available for download. All these Games are made in C++ using Turbo C++ 3.0 Compiler.

Tic-Tac-Toe

Postby MT Shahzad on March 7th, 2008, 4:39 pm

This is a famous game "Tic-Tac-Toe". It has two playing modes:
(a) Player VS Computer
(b) Player_1 VS Player_2

There are five rounds in a game. The player winning more rounds is winner, But you can' beat the computer. This is my challenge, try now. The only main feature of C++ used in this project is Array.
You do not have the required permissions to view the files attached to this post.
MT Shahzad
Web/Software Developer
http://mts.sw3solutions.com
User avatar
MT Shahzad
Site Admin
 
Posts: 306
Joined: February 29th, 2008, 8:11 am
Location: Muridke, Pakistan

Re: Tic-Tac-Toe

Postby snigdha on November 14th, 2008, 7:15 pm

please send me source code of tic tac toe game.
snigdha
 
Posts: 1
Joined: November 14th, 2008, 7:08 pm

Re: Tic-Tac-Toe

Postby Web Guru on November 15th, 2008, 5:33 pm

Source code the game "Tic Tac Toe" is included in the zip file attached above. Please download it and extract it using WinZip, WinRAR or with any other similar software.

The source code is in project mode, open Turbo C++ and then from the project menu open, compile and run.

enjoy!
User avatar
Web Guru
 
Posts: 89
Joined: March 24th, 2008, 7:59 am
Location: Lahore, Pakistan

Re: Tic-Tac-Toe

Postby waqar on December 18th, 2008, 5:09 pm

salam
can u send me the source code without involving grapichs
waqar
 
Posts: 1
Joined: December 18th, 2008, 5:01 pm

Re: Tic-Tac-Toe

Postby Web Guru on December 19th, 2008, 9:54 am

Sorry about your request, i haven't the version without graphics. However the coding is not very difficult, you can extract the non-graphics version of this game from the source code with a little effort.
User avatar
Web Guru
 
Posts: 89
Joined: March 24th, 2008, 7:59 am
Location: Lahore, Pakistan

Re: Tic-Tac-Toe

Postby faizciit on January 4th, 2009, 5:10 am

Dear MT shahzad.I download tic tac toe.But when after compiling all files in projects i executed it gave error"graphic deriver not intialized" or "device driver files is not found".Please help me how to intialized this deriver.faiz
faizciit
 
Posts: 3
Joined: January 4th, 2009, 4:53 am

Re: Tic-Tac-Toe

Postby faizciit on January 4th, 2009, 5:17 am

Most probably i am using laptop core 2 duo with windows vista is the reason because when i open the compiler TURBO C 3.0.System does not allow me full screen mode of compiler.Is this reason for above posted error.I think so
faiz rasool
University of auckland Newzealand
faizciit
 
Posts: 3
Joined: January 4th, 2009, 4:53 am

Re: Tic-Tac-Toe

Postby Shahzad Butt on January 4th, 2009, 8:16 am

There can be different reasons for this reported issue, you can check the following settings:

1- Goto the "Options" menu, then "Linker" option and select "Libraries" .. then make sure that the "Graphics Libraries" option is checked "ON" ... if not turn it ON and click on and "Save..." option in the "Options" menu.

2- Goto the "Options" menu, then "Directories" and check the "Library Directory" path ... if let suppose the you have installed the Turbo C in the C Drive at root with name "TC" .. then it should be like "C:\TC\LIB" ...

Please check these settings and i hope then you will be able to run this and other graphics projects.
Regards
Shahzad Butt
User avatar
Shahzad Butt
 
Posts: 29
Joined: July 9th, 2008, 11:16 am
Location: Pakistan

Re: Tic-Tac-Toe

Postby faizciit on January 7th, 2009, 9:16 am

Salam
I tried your advised suggestion but in vain.Have you ever checked this code on a system(vista) which does not allow full screen mode?
Error appera on screen are
fatal error:Graphic driver not inialized
error Reason:Device deriver file not found"EGAVGA.bgi"
regards
faiz rasool
UOA Newzealand
faizciit
 
Posts: 3
Joined: January 4th, 2009, 4:53 am

Re: Tic-Tac-Toe

Postby zakaullah89 on January 10th, 2009, 3:26 pm

No idea on VISTA os, you can check if the egavga.bgi is present in the tc\lib folder, i will try to test it in the windows vista and then will let you know with the results.
zakaullah89
 
Posts: 22
Joined: March 10th, 2008, 2:35 pm
Location: Muridke, Pakistan

Next

Return to C++ Games

Who is online

Users browsing this forum: No registered users and 0 guests

cron