# First Console Game

**URL:** <https://forum.kirupa.com/t/first-console-game/123595>\
**Category:** Uncategorized\
**Created:** [September 25, 2004, 1:40am UTC](https://forum.kirupa.com/t/first-console-game/123595 "2004-09-25T01:40:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeldarb](https://avatars.discourse-cdn.com/v4/letter/y/51bf81/32.png) [@Yeldarb](https://forum.kirupa.com/u/Yeldarb)\
**Post date:** [September 25, 2004, 1:40am UTC](https://forum.kirupa.com/t/first-console-game/123595/1 "2004-09-25T01:40:06Z")

</div>

I have been taking a C++ class for the past month or so, and this is my first real program. I wrote it in the spare time during my class (there was a lot of it because I go through the book faster than my classmates :))

It is a tic tac toe game that I built up from scratch. At first, it just picked random spaces to go to, then it blocked spaces or won if it had two in a row and an option open, and now I have programmed in all of the logic to it to make it actually be smart.

The .cpp source code is included.

LINK:  
[http://www.barbdwyer.com/cpp/SmartTicTac.zip](http://www.barbdwyer.com/cpp/SmartTicTac.zip)

Edit: By console game I don’t mean Mario type, I mean it runs in a console window 😉
