SweetAlpac4/TicTacToe ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Tic Tac Toe game in C that I can play in the terminal against a basic neural network opponent.

I want the computer to learn a little as it plays, so if I win or lose it should update itself and get better over time. Keep the model simple, like a small feed forward network with one hidden layer, and use rewards based on the game result.

Make it easy to compile and run from the command line with gcc, and keep everything in one C file if possible. I’d also like clear prompts so I can enter my move by choosing a square, and the game should show the board after each turn.

If you need to look up anything current about compiling or standard C math libraries, go ahead. Please make it feel complete enough that I can just build it and start playing right away.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab