# Tic Tac Toe Game \[Problem Help\]

**URL:** <https://forum.freecodecamp.org/t/tic-tac-toe-game-problem-help/125731>\
**Category:** General\
**Created:** [June 10, 2017, 12:01pm UTC](https://forum.freecodecamp.org/t/tic-tac-toe-game-problem-help/125731 "2017-06-10T12:01:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanwanjern](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tanwanjern](https://forum.freecodecamp.org/u/tanwanjern)\
**Post date:** [June 10, 2017, 12:01pm UTC](https://forum.freecodecamp.org/t/tic-tac-toe-game-problem-help/125731/1 "2017-06-10T12:01:03Z")

</div>

Hi Campers,

This is my Tic Tac Toe Project links: [https://codepen.io/tanwanjern/pen/MoKQOm](https://codepen.io/tanwanjern/pen/MoKQOm)

Question 1: Why there is no win alert show when the computer win?

Question 2: Why computer can’t move to the last button (id=“9”)?

---

<div class="post-metadata">

**Author:** ![keith1111](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/keith1111/32/32159_2.png) [@keith1111](https://forum.freecodecamp.org/u/keith1111)\
**Post date:** [June 10, 2017, 3:48pm UTC](https://forum.freecodecamp.org/t/tic-tac-toe-game-problem-help/125731/2 "2017-06-10T15:48:40Z")

</div>

line 245 - you missed 1 symbol: winCondit **i** on  
Q2 - did not figure out, maybe of _turns_ array size - in JS indexes start from 0, so you need actually 10 elements in array, last of them will be number “turns[9]”

---

<div class="post-metadata">

**Author:** ![tanwanjern](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tanwanjern](https://forum.freecodecamp.org/u/tanwanjern)\
**Post date:** [June 11, 2017, 7:04am UTC](https://forum.freecodecamp.org/t/tic-tac-toe-game-problem-help/125731/3 "2017-06-11T07:04:56Z")

</div>

Owh…fixed it ! Thank you so much!

---

<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:** [January 17, 2021, 8:56pm UTC](https://forum.freecodecamp.org/t/tic-tac-toe-game-problem-help/125731/4 "2021-01-17T20:56:08Z")

</div>

Closed on January 17, 2021, 8:56pm UTC


