Skip to main content

Timeline for TicTacToe Logic

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Jun 19, 2017 at 15:49 vote accept Yamahari
May 25, 2017 at 14:10 comment added Yamahari That's a nice idea, I am going to add that one. :)
May 25, 2017 at 3:00 comment added user33306 Had another thought about your code.
May 25, 2017 at 2:59 history edited user33306 CC BY-SA 3.0
added 665 characters in body
May 23, 2017 at 21:16 comment added Yamahari When if(grid.turn[0u] && (mask & grid.x) == mask)isn't true it still checks the first condition for the elseif, which isn't the case in my original design. :) I know this has like zero to none impact on the performance, but it's still the better way I think.
May 23, 2017 at 19:45 comment added user33306 An additional condition added to the elseif should handle that.
May 23, 2017 at 19:44 history edited user33306 CC BY-SA 3.0
added 18 characters in body
May 23, 2017 at 16:30 comment added Yamahari I also thought of that, but wouldn't that increases the number of checks made during the algorithm by alot? I mean this code even checks the grid for a VictoryO even if it's impossible that he won this round.
May 22, 2017 at 19:20 history edited user33306 CC BY-SA 3.0
added 1 character in body
May 22, 2017 at 16:43 history answered user33306 CC BY-SA 3.0