Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

TIC-TAC-TOE Enhanced Version – C++

TIC-TAC-TOE Enhanced Version – C++

This is an enhanced version of Tic-Tac-Toe (TTT) game by adding one more row and column. Actually I have played this newer version of Tic-Tac-Toe (TTT) game on a video game. So, when I learnt C/C++ programming, it was my wish to program this game myself using C/C++.

As in basic Tic-Tac-Toe game game you win when you complete a line either in vertical, horizontal or diagonal orientation. Same in this game you will win when you have same sign in all four boxes, either horizontally, vertically or diagonally.

Also, this makes the game more interesting when you have also some sequence in your sign in different boxes, eg. if you have same sign say ‘x’ in the same column of 4 different boxes, or you have ‘x’ in first box of first column, second box in second column, third box in third column, fourth box in fourth column. There are 13 ways you can win. You can try the game and try to understand the winning sequence. Its very interesting game.

C++ For Dummies 7th Edition
Unlock the world of programming with C++ for Dummies – the perfect beginner’s guide to mastering C++ with ease and confidence!
View on Amazon

Enhanced Tic Tac Toe Game - Player Selection
Enhanced Tic Tac Toe Game – Player Selection

I developed it to play it with another player. But, when you will try to play this game with computer, the computer will give you very easy response, so that you can win easily. I am still working on computer’s play by using artificial intelligence. Still, you can play it with another player giving a tough and interesting competition.

If you want further information you can contact me at dheerajvaid[at]hotmail.com or on my mobile +91-93161-61666 & also thanks to Administrator to place my code in his site.

About The Author

M. Saqib

Saqib is Master-level Senior Software Engineer with over 14 years of experience in designing and developing large-scale software and web applications. He has more than eight years experience of leading software development teams. Saqib provides consultancy to develop software systems and web services for Fortune 500 companies. He has hands-on experience in C/C++ Java, JavaScript, PHP and .NET Technologies. Saqib owns and write contents on mycplus.com since 2004.