Advertisement

Would really enjoy doing this

Started by December 16, 2002 01:37 PM
3 comments, last by Lee Harvey Oswald 21 years, 11 months ago
Im a fast learner and i know that you all hear this all the time, but i was wondering if there was some way that i could learn to program Tic Tac Toe, I''m pretty sure that i will have to use Arrays, Oh yeah, The compiler that i am using doesnt have anything were i can present the user with a nice User interface, cause i cant design it and then code it, much like you can with VB, i was wondering also if any of you knew a good C++ compiler that would allow the coder this lil bit of pleasure before he was shoved into the great codings of C++...
Life is like a sex, sometimes you feel like you wanna your gonna explode and at other times you just wanna roll over go to sleep
Borland C++ Builder has a GUI designer for the windows API. You make windows in much the same way as VB. I got version 4 pro free off a PC Plus (UK) magazine.. issue 165 DVD version.. have a look for it...

-J
Advertisement
yes arrays are the way to go, and i''m sure that you can learn how to make a tic tac toe game.. if you know how to get input, write stuff to screen, arrays, if''s, then youre ready to go. it would probably be good to try it on your own first, but if you got problems just ask...

.. as for the gui and compiler.. given the fact that your a fast learner, i would suggest you to take a look at SDL ( www.libsdl.org ) if your planing to make more games, it even has a couple of gui libs, but i havent checked them out, for some good tutorials on sdl try cone3d.gamedev.net, currently i''m using dev-c++ it''s free and easy to set up, and on the download page you can find some gui packages,..

well, good luck then..
Thanks for the posts, as for the compiler, i am using Dev C++ as well, i dun think that i will need a gui pakage, but then again you never know eh, is there any good place to go for some nice, well written tutorials, i have been through the one here, and it doesn treally help me any, cause i think that those were written for another compiler and not the one that i use, well i have to go before i write you all a book to read, thanks for the posts once again, and thanks for the responces that were made,




Life is like a sex, sometimes you feel like you wanna your gonna explode and at other times you just wanna roll over go to sleep
Life is like a sex, sometimes you feel like you wanna your gonna explode and at other times you just wanna roll over go to sleep
Arrays would be a good way of representing your game board, yes.

You get something like:

enum EGameSquare { GS_EMPTY, GS_CIRCLE, GS_CROSS };
EGameSquare board[3][3];



Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.

Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse

This topic is closed to new replies.

Advertisement