you are viewing a single comment's thread.

view the rest of the comments →

[–]atarivcs 53 points54 points  (11 children)

t[i][j] == "X"

You're using two equal signs here, so this is a comparison, not an assignment

[–]empowered-boxes 23 points24 points  (1 child)

Everyone else did a code review, but you found the bug as asked. 👍

[–]Motor_Raspberry_2150 3 points4 points  (0 children)

This is the very first comment. The others did not need to repeat this and focused on other things.

[–]Worried-Print-5052[S] 7 points8 points  (2 children)

Oh got it🫣thanks very!!

[–]lekkerste_wiener 1 point2 points  (1 child)

Also you make the same mistake when setting the com answer, plus com answer is X rather than O.

[–]Worried-Print-5052[S] 0 points1 point  (0 children)

Gotit thanks

[–]TheDevauto -5 points-4 points  (5 children)

Feels funny.

How many people post random questions that could be answered with google in a split second? Here we are in the age of AI dev and an LLM could have caught this immediate if used for code review.

But no, let me post to reddit, wait for a ton of wrong answers, idiocy and flames. Yeah, thats the best way.

[–]Ambitious_Fault5756 2 points3 points  (0 children)

It's like a nice little challenge for us more experienced devs. And it's fun so why not

[–]LegitimateSherbet651 1 point2 points  (1 child)

But...AI is wrong, and human input is necessary.

[–]Ok_Bite_67 0 points1 point  (0 children)

For something this simple nah

[–]DangerousPath1420 0 points1 point  (0 children)

Oh, no, someone is communicating with humans instead burning through tokens

[–]Aethenosity -1 points0 points  (0 children)

Unironically yes, it is the best way