#so now i've got a completely incomprehensible and overly complicated algorith to check for board patterns and make optimal moves
Explore tagged Tumblr posts
Text
cs class: ok write a program to play tic tac toe against yourself. aren't two dimensional arrays fun?
me: *reinventing the fucking wheel to set up the world's six millionth unbeatable tic tac toe bot*
#txt#like i made one that moved at random and decided that wasn't good enough#so i made a harder one that prioritized winning and blocking and that wasn't good enough#so i made a harder one that tried to set up rows for itself but that wasn't good enough#(ie the random bot could still beat it on dumb luck)#so now i've got a completely incomprehensible and overly complicated algorith to check for board patterns and make optimal moves#based primarily on the xkcd ttt guide but also like two others#and before you ask no i don't think i'll get extra credit for this#*ALGORITHM.
11 notes
·
View notes