Ask coding questions

← Back to all posts
glitched console?
lightningrock

I'm making a tic tac toe program, but when the board gets displayed, it seems to be glitched. When it try console.loging the board, it is fine, and when I take the value of board.board directly and feed it into UnicodeGenerator, it is also fine. But sometimes it is glitched, try entering 1.1.

Voters
lightningrock
Comments
hotnewtop
lightningrock

I figured out the problem.
I was trying the reverse the board when calculating if a player won, but I didn't create a copy and it applied the reverse onto the actual board.