C
C#2y ago
JitMang

❔ Tic Tac Toe

I made a tic tac toe game in window form that I can play with a robot, but for some reason my bot dont have symbols like an O or X, it just grey out the button
2 Replies
JitMang
JitMangOP2y ago
private void ComputerAI() { Button[] buttons = new Button[] { button1, button2, button3, button4, button5, button6, button7, button8, button9 }; Button move = null; int randomNumber; do { randomNumber = random.Next(0, 9); move = buttons[randomNumber]; } while (move.Enabled == false); move.Text = "O"; move.Enabled = false; PlayerTurn = !PlayerTurn; TurnCount++;
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server