Published Jun 1st, 2021, 6/1/21 9:12 pm
- 9,611 views, 4 today
- 1,971 downloads, 1 today
420
Hello! I'm back with another redstone creation. This time I made Tic-Tac-Toe, with both 2-player mode AND 1-player mode against an AI!
This was a super fun project, and I have absolutely loved seeing my friends try to beat the unbeatable AI.
P.S., if you get tired of trying to beat it, there is also a setting to make it normal difficulty instead :)
If you're wondering how the AI works, no, it's not a machine learning system or anything even close to that. It actually just follows a set of 4 simple rules, which can be achieved by using lots of AND gates.
Rule 1: If I have two in a row, try to win.
Rule 2: If the player has two in a row, try to block.
Rule 3: If the player is about to set up a trap, force a tie.
Rule 4: Otherwise, just go somewhere random.
A trap is what I like to call the situation where the player has 2 spots they can win. This guarantees victory as the AI cannot block both spots at once. So, Rule #3 is there to prevent traps from being set up.
Join my discord!
This was a super fun project, and I have absolutely loved seeing my friends try to beat the unbeatable AI.
P.S., if you get tired of trying to beat it, there is also a setting to make it normal difficulty instead :)
If you're wondering how the AI works, no, it's not a machine learning system or anything even close to that. It actually just follows a set of 4 simple rules, which can be achieved by using lots of AND gates.
Rule 1: If I have two in a row, try to win.
Rule 2: If the player has two in a row, try to block.
Rule 3: If the player is about to set up a trap, force a tie.
Rule 4: Otherwise, just go somewhere random.
A trap is what I like to call the situation where the player has 2 spots they can win. This guarantees victory as the AI cannot block both spots at once. So, Rule #3 is there to prevent traps from being set up.
Join my discord!
Progress | 100% complete |
Tags |
5148562
2
Create an account or sign in to comment.