# First Console Game

**URL:** <https://forum.kirupa.com/t/first-console-game/65328>\
**Category:** design\
**Created:** [September 25, 2004, 1:40am UTC](https://forum.kirupa.com/t/first-console-game/65328 "2004-09-25T01:40:06Z")\
**Posts on this page:** 3\
**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/65328/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 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 25, 2004, 1:44am UTC](https://forum.kirupa.com/t/first-console-game/65328/2 "2004-09-25T01:44:48Z")

</div>

hmmm, it’s no fun tying all the time 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 25, 2004, 1:56am UTC](https://forum.kirupa.com/t/first-console-game/65328/3 "2004-09-25T01:56:57Z")

</div>

It was no fun when it lost every time either lol, I couldn’t really find a happy medium, so I decided to make it smart 😛
