Skip to main content

Timeline for Tic Tac Toe game in C#

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Nov 16, 2015 at 14:14 comment added Brian foreach (Button button in new[]{button1,button2,button3,button4,button5,button6,button7,button8,button9}){button.Enabled = false;} Move that code to its own private DisableAllButtons function, of course.
Nov 14, 2015 at 2:58 comment added Tom L Seriously, thank you for all your detailed help, it really cut down my code a lot. What can I do about the Check method? Is there a way to disable buttons without spamming all those line of code? I thought about putting the Check method into the Button_Click method, but I want to see if there's another way first.
Nov 14, 2015 at 2:38 comment added Tom L I tried figuring out the Button_Click class by myself, I just couldn't figure out how to get the source button! In Java, I would do e.getSource, I never would have guessed (Button)sender.
Nov 14, 2015 at 1:48 vote accept Tom L
Nov 13, 2015 at 19:53 comment added Tom L Oh man, that definitely looks a lot better.... I guess I got bad habits from learning Java from my professor..., thanks a lot, I'll try to implement that when I go to edit my code.
Nov 13, 2015 at 18:01 history answered Mathieu Guindon CC BY-SA 3.0