My Pi-Powered, Tic-Tac-Toe Robot has Serious Attitude!
HTML-код
- Опубликовано: 9 июн 2024
- Meet TOBOT, the Raspberry Pi powered, 3D printed, AI driven robot that plays tic-tac-toe and WINS every time! Using some...creative tactics.
Don't forget to subscribe for more! I have 3 new projects in the works, and they're going to knock your socks off!
Support my projects on Patreon!
/ 3dprintedlife
Join the discussion on Discord!
/ discord
Follow me on Instagram and Twitter! (But Discord will have way way more content)
/ 3dprintedlife_official
/ 3dprintedlife
Interested in building this project? High level of experience recommended, my projects have minimal documentation :)
github.com/DDeGonge/TicTacToe...
And apologies for the meh focus in a lot of these clips, I'm still learning how to use the new camera :D
Music
Send You - Kaligraph
Yup - Kaligraph
Call the Shots - Slynk
Chapters
0:00 - Intro
0:55 - Free iPad! jk...shameless plug..
1:10 - Build Montage
2:55 - Custom PCB
3:46 - Fixing Speaker Driver
4:20 - First Moves
4:58 - Software and Operation
5:48 - Computer Vision
6:35 - Game on
8:17 - Cat Mode
8:30 - Outro - Наука
If you enjoyed this project, please check out some of my other videos and consider subscribing. I'm releasing new project videos every month! ruclips.net/user/3DprintedLife
You can actually force a game of tic tac toe to be the same every time. That way the bot either wins or ties the game with the same result. This can cause severe emotional trauma in some. On an unrelated note my brother hates tic tic toe.
I remember a short story where when you die, you can challenge Death to a game of your choosing, if you win you get to live, if you lose you die.
So one character dies and challenged Death to Tic-Tac-Toe and forces draws until Death gives up and forfeits.
They do this so many times that Death's reaction to seeing them is somewhere along the lines of "oh nOT YOU AGAIN!", The character is effectively immortal.
Yes and it is quite eazy
@@Da-Real-Gigachad thats the best part. Once tied 10 or so games in a row with the same end result each time to one of the smart kids in high-school. Got to watch him just about explode trying to figure it out. Did it to my brother too, he got understandably violent.
@@DarkKnightofIT Death speaks in all caps? Must be part of Discworld.
6:00 I like the solution you went with. You said it's lazy. I say it's robust. You can draw circles, but you can also draw heart, cat head, smiley, etc and the algo should accept it
Yeah I thought they same, that to me seems like a way better solution than training an AI to recognize the X and O, as you said since you can then use whatever the hell symbol you want
5:28 *takes the whole board after one O and X*
"The _CAT_ did better than you."
ok, talented invention.
I love how when the bot realises it'll end in a draw it just cheats
5:29
Ah yes, the ultimate strategy for tic tac toe.
The cat did better than you.
Nope, thats not tic tac toe. The first rule is: the first move has to be in the center! -> so noone ever can win this - like a nuclear war noone can win. Its called the "Falken-Effect". See that part of the movie "War Games" from 1983: ruclips.net/video/F7qOV8xonfY/видео.html . So the only winning move is: not to play!
@@0815firstuser0815 r/woosh
Pretty cool that you have the lower level Arduino accepting GCode from the higher level RPi instead of doing everything straight from the Pi. Your work is always super clean and those video edits are funny, nice job again and nice cat
Thanks I really appreciate it!
Love these! Just started studying computer engineering in college a month ago, and I hope to be able to build stuff like this in the near future :D
That's awesome! I studied computer engineering myself at Northeastern. You won't learn everything you need from school though so don't be afraid to just attempt random projects on your own time, even if they seem difficult! You'll learn a ton even if you aren't successful at first. Just keep at it!
Just start tinkering! School/College won't teach you this stuff.
THIS. This is the kind of 3D printing channel I like. Every channel is either toys or disposable designs from thingyverse. Keep up the good work.
Thank you so much, I will!
This is something I would expect for a 5 M subs channel
Thanks I appreciate that!
came here from advanced ingenuity's video, and wow this robot has one of the greatest understandings of poetry i've ever seen, beautiful
Haha why thank you! Mr robot appreciates the compliments
Just discovered your channel! Loving the content! These are the exact type of projects that interest me. They combine robotics and software and 3d printing. But they’re not CRAZY complex so they’re actually achievable and good inspiration.
Welcome aboard, glad you're enjoying my projects!
Wow it's so rare to find that kind of quality youtube channel before it hits 100k subs :D
Keep it up!
Thanks I appreciate that! :)
Super neat! These projects you've been doing lately have been really fun and interesting! I don't think 7500 subs will be a difficult goal at all.
Thanks I appreciate that, and hopefully not!
Howesome ! Thanks a lot for the work and taking time to share it !!!
Nerdwriter1 meets Michael Reeves? I'm all for it :D Great video, subbed!
Hmmm being compared to Michael Reeves, not sure if I should take that as a compliment or an insult XD
7:39 oh nice strategy
Saw your reddit post and just discovered one of my favorite RUclips channels ever!!!
Wow well thank you, I really appreciate it!
Very cool!! I like this. I'd love to replicate your work since Tic-Tac-Toe is amusing.
Don't let your dreams be dreams, just do it! github.com/DDeGonge/TicTacToe-Bot. Better documentation will be added later tonight, aka mostly just a BOM and disclaimer that there's no instructions haha.
Where’s the link to Liam Neeson?
In all seriousness though that’s awesome
So funny video and really great project!
Thanks! :)
The effector mechanism on the SCARA is just so darn clever! :D
Thanks! Not the most rigid, but it does look nice
The butter knife was fantastic. This device is amazing
And I hadn't seen the part where it pushes your hand out of the way! 😂
Amazing done!
Nice that you also draw with Autodesk Inventor :)
This is a very underrated channel
Thanks I appreciate that!
@@3DprintedLife no problem, btw love your content!
Great content
great project!
I have a question regarding the scara arm. Couldn't you improve the quality of drawing? It looks like it is shaking so much. Is it because of the acceleration or because it has been made with 3D parts and has low rigidity?
Thank you!
Thanks! yeah the shakiness was really annoying, the main reason was that I used a 3D printed base piece underneath the post-it which as grooves, and the pen is sharp enough that it just gets caught on every little groove. Switching to a sharpie pen or something like that and smoothing out the base would definitely help. The arm itself is fairly rigid, but it could definitely be improved further. The main issue was getting enough belt tension in that internal link's loop, but with some more tuning and tweaking it could definitely get better!
Amazing project 😎👍👍👍
Thank you! Cheers!
I am liking purly because of the skyrim reference
Damn it its so educating i love your videos
Thank you!
I love your videos!
Just realized you’re the same guy that used to make the ASUS transformer videos I used to watch all the time as a kid. So funny hahah, MagmaRhino throwback
Hahah yeep that's me! Man how time flies 😁
Nice one on the Wii music:)
could you adapt it to play ultimate tic-tac-toe? every square is replaced with a smaller board, and your move in the smaller board determines which board the opponent has to use in the big game
Ay yo my guy, I'm making this and have the parts printed however where are you finding those low profile 2gt pulleys? Can only find the "high profile" ones. Thanks.
Great video! The channels great.
Thanks, glad you enjoyed!
Never seen a pen plotter use a screw axis like that, it's a cool idea!
Thankya!
dude you are a genius. :)) omg i laughed so hard
nice Tic-Tac-Toe Robot
what if you blocks its arm and just either get a row or the entire board.
what would happen?
I smell underrated
you are underrated
This guy is a genius
Nah I just had wayyy too much free time
Woah he dose not even let you have time to be your turn
Ah, AutoDesk Inventor. It gives me nightmares of my engineering class.
came from reddit, and glad I did- this is so cool! Do you have any tips for a beginner? Im starting engineering in a few weeks and a massive noob
Oh I have tips for days. What do you know already and what kind of projects do you want to work towards? More mechanical focused, software, robotics, etc? More info the better otherwise you'll get a 10 page essay from me about anything and everything XD
@@3DprintedLife Haha tbh i wouldnt mind a long essay! xD I don't know much really, i've started coding recently so I won't lag behind for college and I enjoy doing challenges (eg. codewars, advent code) but I guess i'm not sure how it fits into a real project like this one. I hope to be able to make robotics stuff like this, as I'm into the software aspect, but also wondering..how the heck you designed the mechanical aspects and knew where to start?! Also, how did you manage doing all the diff steps yourself? (as in the coding, ai, and design)
hopefully I made some sort of sense there.. I guess I am just fascinated by this field but have no idea where to begin!
Any link where I can find the low profile pulleys shown at 2:18 ? Was unable to find them anywhere. Thanks.
Many places, I got mine from robotdigg. Try searching for ultimaker gt2 20t drive pulleys
near 7:38, it cought me off guard by a long shot XD.
Finally someone I found who beat me at the nerd level 😎 Subbed ...
:D Welcome!
How much did your 3D printer cost?
This is so Underrated, I Like This.
Make one that can do ultimate tick tac toe, its a whole other level and a robotic AI for that would be epic lol
Just do what the robot is doing
Nice
make 2 of em fight against each other
The robot is like hahaha I won’t let you win not even in 1000000 Years
Nobody:
The Guy Who Cut The Wire To Make It Work:👁👄👁
you can win any game if you go first
What do you use for modeling it?
@@hxdeck1 thanks
The Title of this video was really boomeroes
parts list, files??? I wanna build this pleaseeeeeee
I came to this video only to make this joke: tic tac bro
Tic-tac toe puzzle in hypixel dungeon be like
I had a friend who never lost a game of tic tac toe, it infuriated me.
Try making one of these
cool
would like a pie powered robot if you can do that
There is no way this only has 78k views.
You're right it doesn't, it only has 7.8k views XD
@@3DprintedLife Thats seriously sad considering the effort put into this
Haha well the algorithm has no mercy!
How does robot know when your move is done?
Too lazy to scroll and look for answer.
Bruh why does the robot go first plus you coded it so it did that he’s just adding that so he doesn’t have to add that tie script
You should have called it "tic tac TOBOR".
honestly i would love a robot that brushes my teeth
Hey, you have just made Bender cousin :-)
why not remove the unfair part and make it a win/tie for tobot?
can we use Arduino instead of adafruit feather
You may need to tweak some things, mostly imports and definitions, but yeah you should be able to.
Why did you make it with serious attitude
nice
discord gang
Where all the real MVPs are at
Who ever take first step he will win
3.141592653589793238462643 I memorized that!
Haha nice, I only know the first 10 or so from memory!
Add the feature so you can go first.
Yeahh I considered that, and its even already half done in the code. But if the user goes first the bot will need to cheat just about every game to avoid tying. Figured this way at least the bot can beat ~50% of people without doing anything sus, but then handle those other "clever" people with it's "special operating modes"
Battle two what would happen
They would either tie every time or end up in an endless loop of whacking each other to avoid losing
Just draw three circles.
Lol
Shouldn't it say "make your move" instead of "Take your move?
Perhaps. But I'm not great with grammar, after all I'm an -enginear- -enginier- good at making things
You can make it a writing machine
Yep! Just requires a bit more code on the python side but this platform is pretty generic and can be used for tons of things, including other written games like dots, hangman, etc!
@@3DprintedLife Will be a matter of honor if you make a tutorial on converting this to writing machine.
plz make it so human can have first move 2
your computer cant win with me!
Hey you take first move
Wait wtf I’m the 101,000th viewer. You probably don’t care, but it’s a cleeeaaaannnn number
But not as clean as the future 111,111th viewer
2:14 bad cuts
they say chess is the hardest...
That a good AI but it can alway win,if the AI fight again a good tic tack toe than if will be a tie .-.
I write code, if losing then stop and start winning; if winning then continue;
Oh man why didn't I think of that, would have been way easier!
@@3DprintedLife its cool you can take a joke much respect for awesome project :)
I hate 3x3 tic tac toe because if the enemy is decent you just can't win nor can he. I usually play with "no limits" so like on a notebook, where you have to line up 5 instead of 3. Much more fun and there's not just one tactic to try to win
Yep for sure. I made an AI bot for fun here but there's only something like 20 different unique outcomes so it was certainly overkill. Not a very fun game :D
Now i wonder what would happen if you cheat?
putting 2 circles right at the start
Unfortunately the code was written in a way that it doesn't expect the user to cheat. But I definitely could add a feature to handle that!
idk i've beaten tic tac toe insane bot's 1,951 times idk if i can beat that bot
This one is more than insane though
:)
I CHALLENGE YOU
Hey, Amazing. Would you be willing to offer some guidance or collaborate on a project using RPi? Please. It involves using a camera, AI and computer vision to develop a solution. More details if you agree. Your wealth of experience and technical expertise will be invaluable. Thank you.
Hey, I don't have the time to contribute to your project but I'd be happy to offer some advice if you have any questions!
@@3DprintedLife That would be great. Thank you kindly. Is there a means to communicate you or here is fine for any question?
its impossible to always win in tic tac toe, there is no possible way to guarantee a win in tic tac toe
True, unless you cheat. Optimal tic-tac-toe strategy is incredibly simple
just play google tic tac toe and set it to imposible