![]() |
Platforms, Frameworks & Libraries »
Game Development »
Games
Intermediate
A simple Visual Basic Version of Tic Tac Toe in 2 and 3 DimensionsBy Jeff ArringtonA Tic Tac Toe game in 2D and 3D. The kids will enjoy. |
VB.NET 1.1, Win2K, WinXP, Win2003VS.NET2003, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||

This is just a simple Tic Tac Toe game. I've included a Rules Word Doc for anyone who doesn't know the rules, but let me just go ahead and save you the time:
Note that, with 3D, it will show all possible winning combinations if applicable. See picture above.
Pretty confusing stuff huh....ha ha.
This was a class assignment, well at least, just the 2 dimensional part of the program. I went a little over board and did 3D also. It really wasn't that difficult, it was just a lot more extra checking. Basically, you just add each move into an array and check for appropriate winning combinations after every turn. I've added comments in the source code, so it is relatively easy to follow. Hope you enjoy the game.
It's a fun kid's game. You can change the code very simply to personalize it for two people so that it will show the name of the winner. Kids like to see their name on the PC.
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 19 Apr 2004 Editor: Smitha Vijayan |
Copyright 2004 by Jeff Arrington Everything else Copyright © CodeProject, 1999-2009 Web16 | Advertise on the Code Project |