Forums - Open Redstone Engineers
Computer playing tictactoe! - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: ORE General (https://forum.openredstone.org/forum-39.html)
+--- Forum: Projects & Inventions (https://forum.openredstone.org/forum-19.html)
+---- Forum: In Progress (https://forum.openredstone.org/forum-20.html)
+---- Thread: Computer playing tictactoe! (/thread-14199.html)



Computer playing tictactoe! - draftdragon21 - 06-23-2018

Just an Update:
Was working on a simple 2 player tic tac toe game with win detection and such. Pretty simple stuff. However, I wanted it to be bigger and more crazy so I am almost finished building a custom AI to play against and it has a (fairly) decent speed for being just out of full blocks, dust, torches, and repeaters. As you can see on the pic that I am also starting to build another one that will be faster and more compact with the AI more build inside it instead of hanging on the outside. More progress will be posted later on with a world download.
https://imgur.com/a/yL6Q4BY






RE: TicTacToe AI! - konsumlamm - 06-23-2018

"AI"
more like a giant lookup table


RE: TicTacToe AI! - draftdragon21 - 06-24-2018

(06-23-2018, 08:33 PM)konsumlamm Wrote: "AI"
more like a giant lookup table

There is a circuit underneath the white wool which allows for about half of it to write its own decisions and will wipe the "card" if it lost after that turn. Also after every new game it has a chance to erase the card which gives it a "random" feel while still being smart. Yes, part of it does involve a lookup table for if the card was not generated with the will to "block" if two of the players pieces were in a row, but the rest I feel like does qualify as AI because it randomly writes and understand when it needs to erase.