The text of this article is not in this database — only its details are. Read it on the old site: Tic-Tac-Toe Game in C#
13 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Tic-Tac-Toe Game in C#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
MarkRLVPosted Sep 15, 2022, 7:46 PM
Can you change this program so # of players = 0 and the computer can learn "the only way to win is not to play" -- a reference to the 1983 movie War Games?
csharp godPosted Feb 23, 2022, 1:19 AM
Console.WriteLine("Player {0} has won", (player % 2) + 1); can you please tell me what does the {0} stand for and how does it change if its 1 or 0?
Anjith AkPosted Dec 23, 2021, 6:07 PM
Hi, once a player has won it would be nice if console clears itself and restarts game, how can we do this?
akshay BarapatrePosted Jan 31, 2021, 5:45 PM
Chage it bcoz 7 8 9 is not working
akshay BarapatrePosted Jan 31, 2021, 5:44 PM
//Winning Condition For Third Row else if (arr[7] == arr[8] && arr[8] == arr[9]) { return 1; }
Giri GowdaPosted Nov 17, 2019, 8:49 AM
How to run this code
Sadhana GaudPosted May 12, 2014, 11:17 PM
thnks... It helped to improve my logic in program
Shweta LodhaPosted Apr 19, 2014, 5:22 AM
Nice one
Shaili DashoraPosted Apr 8, 2014, 1:36 AM
nice artical sourabh