# Feedback on my tic-tac-toe game

**URL:** <https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854>\
**Category:** I Built This\
**Created:** [March 5, 2025, 5:01pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854 "2025-03-05T17:01:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![c0d1ng\_ma5ter](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/c0d1ng_ma5ter/32/362487_2.png) [@c0d1ng\_ma5ter](https://forum.freecodecamp.org/u/c0d1ng_ma5ter)\
**Post date:** [March 5, 2025, 5:01pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/1 "2025-03-05T17:01:25Z")

</div>

Hello!

Recently I finished my tic-tac-toe game and FINALLY got a hold of the juicy legacy frontend cert.

I’d definetly appreciate some feedback on how to make it better!

Link is down below:

> **[Tic-tac-toe](https://codepen.io/JP-CSStudent/full/XJrOWgW)**
>
> ...

---

<div class="post-metadata">

**Author:** ![devbidden](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@devbidden](https://forum.freecodecamp.org/u/devbidden)\
**Post date:** [March 11, 2025, 2:59pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/2 "2025-03-11T14:59:36Z")

</div>

I chose to play against computer but then nothing happens after I play

---

<div class="post-metadata">

**Author:** ![brendenhowlett96](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/brendenhowlett96/32/134575_2.png) [@brendenhowlett96](https://forum.freecodecamp.org/u/brendenhowlett96)\
**Post date:** [March 11, 2025, 7:03pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/3 "2025-03-11T19:03:10Z")

</div>

When playing against the computer, I did give it a chance to win by intentionally not blocking a win, but it didn’t take it.

---

<div class="post-metadata">

**Author:** ![c0d1ng\_ma5ter](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/c0d1ng_ma5ter/32/362487_2.png) [@c0d1ng\_ma5ter](https://forum.freecodecamp.org/u/c0d1ng_ma5ter)\
**Post date:** [March 12, 2025, 1:06pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/4 "2025-03-12T13:06:00Z")

</div>

> [@devbidden](#):
>
> I chose to play against computer but then nothing happens after I play

Could you please specify exactly what you did? For me it works fine.

> [@brendenhowlett96](#):
>
> When playing against the computer, I did give it a chance to win by intentionally not blocking a win, but it didn’t take it.

I’m aware of this, and a fix is on the works, but thanks for reporting! It does happen rarely though

---

<div class="post-metadata">

**Author:** ![devbidden](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@devbidden](https://forum.freecodecamp.org/u/devbidden)\
**Post date:** [March 12, 2025, 6:01pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/5 "2025-03-12T18:01:56Z")

</div>

it works now. great! I’m not really good at programming yet so what languages did you use please?

---

<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:** [March 12, 2025, 6:06pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/6 "2025-03-12T18:06:04Z")

</div>

you can see the source code on CodePen

---

<div class="post-metadata">

**Author:** ![c0d1ng\_ma5ter](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/c0d1ng_ma5ter/32/362487_2.png) [@c0d1ng\_ma5ter](https://forum.freecodecamp.org/u/c0d1ng_ma5ter)\
**Post date:** [March 12, 2025, 7:30pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/7 "2025-03-12T19:30:13Z")

</div>

HTML, CSS and JavaScript, on CodePen

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [March 23, 2025, 3:02pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/8 "2025-03-23T15:02:27Z")

</div>

Looks pretty solid.

I had the same experience where the computer doesn’t take the most logical next move to win sometimes, but maybe you can have an “easy mode” and a “hard mode”.

Could jazz up the design a little bit with non-default buttons or CSS effects to make it a bit more visually exciting.

It’s kind of weird to have square boxes in a rounded frame. There’s also a small inconsistency in the corner:

 ![Screenshot 2025-03-23 105726](https://global.discourse-cdn.com/freecodecamp/original/4X/2/5/f/25f162839fa0fb4cf1caf6454232f620bbf6c3ec.jpeg)  
 ![Screenshot 2025-03-23 105610](https://global.discourse-cdn.com/freecodecamp/original/4X/7/a/a/7aa141295b5558a7ca10a1e01a081953a17718d6.jpeg)

This at default zoom and 200% zoom.

---

<div class="post-metadata">

**Author:** ![c0d1ng\_ma5ter](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/c0d1ng_ma5ter/32/362487_2.png) [@c0d1ng\_ma5ter](https://forum.freecodecamp.org/u/c0d1ng_ma5ter)\
**Post date:** [March 25, 2025, 5:05pm UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/9 "2025-03-25T17:05:15Z")

</div>

Thanks for your feedback!

The weird inconsistency has been fixed.

As for the weird moves, it’s because the computer’s diagonal detection code isn’t at its finest…

But it works. The good thing is that, because of how it’s programmed, it’s actually impossible for you to win by forming a diagonal, so that part of the code isn’t that important anyways.

I’ll try to experiment with some other button styles, too!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [September 24, 2025, 5:05am UTC](https://forum.freecodecamp.org/t/feedback-on-my-tic-tac-toe-game/737854/10 "2025-09-24T05:05:16Z")

</div>

Closed on September 24, 2025, 5:05am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
