Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,391 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,135 people online right now. Registration is fast and FREE... Join Now!




tic-tac-toe with c++

 
Reply to this topicStart new topic

tic-tac-toe with c++

panpwintlay
4 Sep, 2006 - 07:23 AM
Post #1

New D.I.C Head
*

Joined: 4 Sep, 2006
Posts: 2


My Contributions
Can anyone tell me about tic-tac-toe game program with C++?smile.gif
I am just a beginner in learning programming language.So I would like to know programming concepts for this tic-tac-toe game program .And If you have tic-tac-toe program with C++ ... I would like to see it also.I wanna run it.rolleyes.gif

This post has been edited by panpwintlay: 4 Sep, 2006 - 07:24 AM
User is offlineProfile CardPM
+Quote Post

BitByte
RE: Tic-tac-toe With C++
4 Sep, 2006 - 08:27 AM
Post #2

D.I.C Head
**

Joined: 9 Aug, 2006
Posts: 194



Thanked: 2 times
My Contributions
QUOTE(panpwintlay @ 4 Sep, 2006 - 08:23 AM) *

Can anyone tell me about tic-tac-toe game program with C++?smile.gif
I am just a beginner in learning programming language.So I would like to know programming concepts for this tic-tac-toe game program .And If you have tic-tac-toe program with C++ ... I would like to see it also.I wanna run it.rolleyes.gif


Hi, don't know what these are like, give them a try: Planet Sourcecode
User is offlineProfile CardPM
+Quote Post

Mrafcho001
RE: Tic-tac-toe With C++
4 Sep, 2006 - 08:52 AM
Post #3

D.I.C Addict
Group Icon

Joined: 1 Nov, 2005
Posts: 753



Thanked: 5 times
Dream Kudos: 120
My Contributions
go to my site i have a verysimple tic tac toe game there.. if you like it i can give you the source. its simple.. nice intro
User is offlineProfile CardPM
+Quote Post

DeeViLiSh
RE: Tic-tac-toe With C++
4 Sep, 2006 - 08:56 AM
Post #4

D.I.C Head
Group Icon

Joined: 25 Jul, 2006
Posts: 175



Thanked: 1 times
Dream Kudos: 575
My Contributions
Well, are you a beginner beginner? What have you made already?

Basic idea : make an array 9x9, all initialised, if one array = 1, then show X, if it's 2, it shows an O

Then find an equation that tells you whether 3 arrays are aligned or not.
User is offlineProfile CardPM
+Quote Post

Mrafcho001
RE: Tic-tac-toe With C++
4 Sep, 2006 - 11:13 AM
Post #5

D.I.C Addict
Group Icon

Joined: 1 Nov, 2005
Posts: 753



Thanked: 5 times
Dream Kudos: 120
My Contributions
9x9?
User is offlineProfile CardPM
+Quote Post

Nova Dragoon
RE: Tic-tac-toe With C++
4 Sep, 2006 - 11:16 AM
Post #6

The Innocent Shall Suffer, Big Time
Group Icon

Joined: 16 Aug, 2001
Posts: 6,132



Thanked: 7 times
Dream Kudos: 515
Expert In: Python, Linux

My Contributions
should be 9 total, 3x3

9x9 is sudoku
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Tic-tac-toe With C++
4 Sep, 2006 - 11:19 AM
Post #7

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 6,985



Thanked: 45 times
Dream Kudos: 500
Expert In: C#, VB.NET, Java

My Contributions
Yes, but for Tic-Tac-Toe it needs to be 3x3, should have 9 elements total. smile.gif

Edit: Well this was a correction to what Nova said, but he edited his post so now I look like I am repeating him.
User is offlineProfile CardPM
+Quote Post

Nova Dragoon
RE: Tic-tac-toe With C++
4 Sep, 2006 - 11:24 AM
Post #8

The Innocent Shall Suffer, Big Time
Group Icon

Joined: 16 Aug, 2001
Posts: 6,132



Thanked: 7 times
Dream Kudos: 515
Expert In: Python, Linux

My Contributions
I realized i was an idiot, a split second after posting
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/5/08 02:31AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month