python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Finding all of the outcomes for a Tic-Tac-Toe game
I recently decided to type up some code in C sharp that determines the outcomes for a Tic-Tac-Toe game.
In my code, I received the results:
Total number of games:77088
214 tied
36533 x wins
40341 o wi...
Display name
Votes: 0
Answers: 0
How can I program the cpu to randomly press buttons?
I am creating a game in matlab app designer in which a player plays against the computer opponent. I want to code the CPU to press a button at random when it is its turn. For example, in TicTacToe the...
user18717292
Votes: 0
Answers: 1
I´m making a simple tic-tac-toe game in C and it ends after the first input
I have this problem and I don´t know what´s wrong. The code doesn´t have any errors or warnings but it always take the first if statement of the checkVictory function as correct.
I've tried comparing ...
Jaime
Votes: 0
Answers: 1
Javascript Tic Tac Toe Computer Player Does Not Play Consistently
I have created a tic tac toe game using javascript, which allows the user to play against the computer. The problem I am faced with is that the computer only plays some of the time when the user plays...
Reemy876
Votes: 0
Answers: 1