# Unbeatable Tic Tac Toe

**URL:** <https://forum.freecodecamp.org/t/unbeatable-tic-tac-toe/68682>\
**Category:** I Built This\
**Created:** [December 24, 2016, 1:16am UTC](https://forum.freecodecamp.org/t/unbeatable-tic-tac-toe/68682 "2016-12-24T01:16:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![h1220](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/h1220/32/25621_2.png) [@h1220](https://forum.freecodecamp.org/u/h1220)\
**Post date:** [December 24, 2016, 1:16am UTC](https://forum.freecodecamp.org/t/unbeatable-tic-tac-toe/68682/1 "2016-12-24T01:16:32Z")

</div>

I think I’m finished…should be bug free and unbeatable. Feedback is welcome!

[https://hbontz.github.io/ticTacToe/](https://hbontz.github.io/ticTacToe/)

---

<div class="post-metadata">

**Author:** ![NeckersBOX](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/neckersbox/32/24801_2.png) [@NeckersBOX](https://forum.freecodecamp.org/u/NeckersBOX)\
**Post date:** [December 24, 2016, 8:33am UTC](https://forum.freecodecamp.org/t/unbeatable-tic-tac-toe/68682/2 "2016-12-24T08:33:49Z")

</div>

Unbeatable because it cheats!  
This is what happened

 ![](https://global.discourse-cdn.com/freecodecamp/original/3X/9/6/968da52e3fe05c84a327cfaa6da956ed1b4cdb81.png)

I choose X and start the game ( I’m going to use this grid notation  
012  
345  
678  
)

- Me: 6 - Cpu: 4
- Me: 5 - CPU: 0
- Me: 8 - CPU: **7 and 2**

😱

---

<div class="post-metadata">

**Author:** ![h1220](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/h1220/32/25621_2.png) [@h1220](https://forum.freecodecamp.org/u/h1220)\
**Post date:** [December 26, 2016, 1:23am UTC](https://forum.freecodecamp.org/t/unbeatable-tic-tac-toe/68682/3 "2016-12-26T01:23:08Z")

</div>

Ha, so unbeatable…right? Thank you for finding the bug and showing me how it happened. I’ll fix it!

---

<div class="post-metadata">

**Author:** ![AbdallahEbrahim](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/abdallahebrahim/32/70358_2.png) [@AbdallahEbrahim](https://forum.freecodecamp.org/u/AbdallahEbrahim)\
**Post date:** [January 2, 2018, 10:07am UTC](https://forum.freecodecamp.org/t/unbeatable-tic-tac-toe/68682/4 "2018-01-02T10:07:50Z")

</div>

Computers always cheats 😃

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 1:56pm UTC](https://forum.freecodecamp.org/t/unbeatable-tic-tac-toe/68682/5 "2021-06-01T13:56:33Z")

</div>

Closed on June 1, 2021, 1:56pm UTC


