If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Tic Tac Toe Game

I'm in the process of making a Tic Tac Toe game, and decided to do a huge loop, or basically to make as simple as possible to make it. But I want to make it simpler, and alot more organized, then the loop mess that I made. So I thought, I would make the whole build into a class, and use the main to run the whole thing. Problem is, I think that the code would look alot more complicated then it should be. Then again, how would I incorporate a class into such a simple game.
Here's the code I have right now, it works by the way

// tictactoeMain.cpp : Defines the entry point for the console application.
//

Re: Tic Tac Toe Game

Originally Posted by fuzmaster

I'm in the process of making a Tic Tac Toe game, and decided to do a huge loop, or basically to make as simple as possible to make it. But I want to make it simpler, and alot more organized, then the loop mess that I made. So I thought, I would make the whole build into a class,

First, use code tags when posting code. The code you posted is almost unreadable

I'll ask you -- what if there were 1000 squares instead of 9? Would you create 1000 variables and if() statements? How long would you keep your sanity if you really had to write 1,000 variables, if() statements, and assignments in various places?