kvnclsnr/tic-tac-toe ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple tic tac toe game as a polished React app.

I want a clean, easy to use game screen with a 3 by 3 board, clear X and O turns, and a message that says who’s next, who won, or when the game ends in a draw. Include a reset button so I can start over any time. Please make it feel finished, with nice spacing, simple styling, and a layout that works well on both desktop and mobile.

If you can, add a little bit of game state logic so it prevents invalid moves and highlights the winning line or winning squares. Keep the code straightforward and organized, since this is just a small front end project. Use the current React setup in this repo, and look up any current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab