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
  • НаукаНаука

Комментарии • 176

  • @3DprintedLife
    @3DprintedLife  3 года назад +32

    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

  • @BobTheGodly
    @BobTheGodly 3 года назад +128

    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.

    • @DarkKnightofIT
      @DarkKnightofIT 3 года назад +14

      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.

    • @Da-Real-Gigachad
      @Da-Real-Gigachad 3 года назад

      Yes and it is quite eazy

    • @BobTheGodly
      @BobTheGodly 3 года назад

      @@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.

    • @JohnDlugosz
      @JohnDlugosz 2 года назад

      @@DarkKnightofIT Death speaks in all caps? Must be part of Discworld.

  • @gaellafond6367
    @gaellafond6367 3 года назад +31

    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

    • @GummieI
      @GummieI 3 года назад +2

      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

  • @DillyzThe1
    @DillyzThe1 3 года назад +24

    5:28 *takes the whole board after one O and X*
    "The _CAT_ did better than you."
    ok, talented invention.

  • @ScarletEmber64
    @ScarletEmber64 2 года назад +12

    I love how when the bot realises it'll end in a draw it just cheats

  • @ayouzid
    @ayouzid 3 года назад +15

    5:29
    Ah yes, the ultimate strategy for tic tac toe.

    • @blazey8283
      @blazey8283 2 года назад +1

      The cat did better than you.

    • @0815firstuser0815
      @0815firstuser0815 2 года назад

      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!

    • @ayouzid
      @ayouzid 2 года назад

      @@0815firstuser0815 r/woosh

  • @robertgrassiDMD
    @robertgrassiDMD 3 года назад +13

    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

  • @MrFatternscaper
    @MrFatternscaper 3 года назад +45

    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

    • @3DprintedLife
      @3DprintedLife  3 года назад +19

      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!

    • @a1xon
      @a1xon 3 года назад +2

      Just start tinkering! School/College won't teach you this stuff.

  • @abdullahabd7677
    @abdullahabd7677 3 года назад +1

    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.

  • @erikquaza
    @erikquaza 3 года назад +5

    This is something I would expect for a 5 M subs channel

  • @guyech4790
    @guyech4790 3 года назад +2

    came here from advanced ingenuity's video, and wow this robot has one of the greatest understandings of poetry i've ever seen, beautiful

    • @3DprintedLife
      @3DprintedLife  3 года назад +1

      Haha why thank you! Mr robot appreciates the compliments

  • @jacobgunderson493
    @jacobgunderson493 3 года назад +3

    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.

    • @3DprintedLife
      @3DprintedLife  3 года назад

      Welcome aboard, glad you're enjoying my projects!

  • @gabrielfrance91
    @gabrielfrance91 3 года назад +2

    Wow it's so rare to find that kind of quality youtube channel before it hits 100k subs :D
    Keep it up!

  • @ljakeupl
    @ljakeupl 3 года назад

    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.

    • @3DprintedLife
      @3DprintedLife  3 года назад

      Thanks I appreciate that, and hopefully not!

  • @gizmibob
    @gizmibob 2 года назад

    Howesome ! Thanks a lot for the work and taking time to share it !!!

  • @edviser
    @edviser 3 года назад +5

    Nerdwriter1 meets Michael Reeves? I'm all for it :D Great video, subbed!

    • @3DprintedLife
      @3DprintedLife  3 года назад +2

      Hmmm being compared to Michael Reeves, not sure if I should take that as a compliment or an insult XD

  • @uccong7651
    @uccong7651 3 года назад

    7:39 oh nice strategy

  • @judebarakat933
    @judebarakat933 3 года назад +2

    Saw your reddit post and just discovered one of my favorite RUclips channels ever!!!

    • @3DprintedLife
      @3DprintedLife  3 года назад +1

      Wow well thank you, I really appreciate it!

  • @techsavvyhero
    @techsavvyhero 3 года назад +11

    Very cool!! I like this. I'd love to replicate your work since Tic-Tac-Toe is amusing.

    • @3DprintedLife
      @3DprintedLife  3 года назад +3

      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.

  • @tarkelprice6875
    @tarkelprice6875 3 года назад +9

    Where’s the link to Liam Neeson?
    In all seriousness though that’s awesome

  • @bricogeekcom
    @bricogeekcom 3 года назад +2

    So funny video and really great project!

  • @nrdesign1991
    @nrdesign1991 3 года назад

    The effector mechanism on the SCARA is just so darn clever! :D

    • @3DprintedLife
      @3DprintedLife  3 года назад

      Thanks! Not the most rigid, but it does look nice

  • @StephenKoplin
    @StephenKoplin 3 года назад

    The butter knife was fantastic. This device is amazing

    • @StephenKoplin
      @StephenKoplin 3 года назад

      And I hadn't seen the part where it pushes your hand out of the way! 😂

  • @Creative_Electronics
    @Creative_Electronics 3 года назад

    Amazing done!
    Nice that you also draw with Autodesk Inventor :)

  • @XBlueBeam
    @XBlueBeam 3 года назад +1

    This is a very underrated channel

    • @3DprintedLife
      @3DprintedLife  3 года назад

      Thanks I appreciate that!

    • @XBlueBeam
      @XBlueBeam 3 года назад

      @@3DprintedLife no problem, btw love your content!

  • @bacondude2.079
    @bacondude2.079 3 года назад

    Great content

  • @ihyphenrot
    @ihyphenrot 3 года назад +2

    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!

    • @3DprintedLife
      @3DprintedLife  3 года назад +1

      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!

  • @MsSATHEESHKUMAR
    @MsSATHEESHKUMAR 3 года назад +1

    Amazing project 😎👍👍👍

  • @dragonaut8437
    @dragonaut8437 2 года назад +1

    I am liking purly because of the skyrim reference

  • @pawko2280
    @pawko2280 2 года назад

    Damn it its so educating i love your videos

  • @kylebrake1806
    @kylebrake1806 3 года назад

    I love your videos!

  • @GaryRodeo
    @GaryRodeo 3 года назад

    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

    • @3DprintedLife
      @3DprintedLife  3 года назад

      Hahah yeep that's me! Man how time flies 😁

  • @FuriousImp
    @FuriousImp 3 года назад

    Nice one on the Wii music:)

  • @zetahurley294
    @zetahurley294 3 года назад

    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

  • @Lolerburger
    @Lolerburger 2 года назад +1

    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.

  • @IsmaelVazquezJr
    @IsmaelVazquezJr 3 года назад

    Great video! The channels great.

  • @stephenworsley
    @stephenworsley 2 года назад

    Never seen a pen plotter use a screw axis like that, it's a cool idea!

  • @lauretiu
    @lauretiu 3 года назад

    dude you are a genius. :)) omg i laughed so hard

  • @sergentjohncaptain2557
    @sergentjohncaptain2557 2 года назад

    nice Tic-Tac-Toe Robot

  • @DuperDude45
    @DuperDude45 3 года назад

    what if you blocks its arm and just either get a row or the entire board.
    what would happen?

  • @-Zar-
    @-Zar- 3 года назад

    I smell underrated

  • @yashtripathi2095
    @yashtripathi2095 2 года назад

    you are underrated

  • @hamnasalman3778
    @hamnasalman3778 2 года назад

    This guy is a genius

    • @3DprintedLife
      @3DprintedLife  2 года назад

      Nah I just had wayyy too much free time

  • @rainbowspongebob
    @rainbowspongebob 3 года назад

    Woah he dose not even let you have time to be your turn

  • @iriscyanine
    @iriscyanine 2 года назад

    Ah, AutoDesk Inventor. It gives me nightmares of my engineering class.

  • @helloitsme9999
    @helloitsme9999 3 года назад

    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

    • @3DprintedLife
      @3DprintedLife  3 года назад

      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

    • @helloitsme9999
      @helloitsme9999 3 года назад

      ​@@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!

  • @stefano9397
    @stefano9397 3 года назад

    Any link where I can find the low profile pulleys shown at 2:18 ? Was unable to find them anywhere. Thanks.

    • @3DprintedLife
      @3DprintedLife  3 года назад

      Many places, I got mine from robotdigg. Try searching for ultimaker gt2 20t drive pulleys

  • @glitchtony6713
    @glitchtony6713 2 года назад

    near 7:38, it cought me off guard by a long shot XD.

  • @AndroidUmair
    @AndroidUmair 3 года назад

    Finally someone I found who beat me at the nerd level 😎 Subbed ...

  • @bogeyboiplays4580
    @bogeyboiplays4580 2 года назад +1

    How much did your 3D printer cost?

  • @Legendaryhunter7
    @Legendaryhunter7 3 года назад +1

    This is so Underrated, I Like This.

  • @AlexMVW10
    @AlexMVW10 3 года назад

    Make one that can do ultimate tick tac toe, its a whole other level and a robotic AI for that would be epic lol

  • @yarissasantiago3752
    @yarissasantiago3752 2 года назад

    Just do what the robot is doing

  • @simo9445tsns
    @simo9445tsns 3 года назад

    Nice

  • @copperchromee5797
    @copperchromee5797 3 года назад

    make 2 of em fight against each other

  • @j0j010
    @j0j010 2 года назад

    The robot is like hahaha I won’t let you win not even in 1000000 Years

  • @AltonTRU
    @AltonTRU 2 года назад

    Nobody:
    The Guy Who Cut The Wire To Make It Work:👁👄👁

  • @mkseraph
    @mkseraph 2 года назад +1

    you can win any game if you go first

  • @tbprod5
    @tbprod5 3 года назад

    What do you use for modeling it?

    • @tbprod5
      @tbprod5 3 года назад

      @@hxdeck1 thanks

  • @Beoux
    @Beoux 3 года назад

    The Title of this video was really boomeroes

  • @dannys69
    @dannys69 3 года назад

    parts list, files??? I wanna build this pleaseeeeeee

  • @Fsnoreen
    @Fsnoreen 2 года назад

    I came to this video only to make this joke: tic tac bro

  • @guyrandom9492
    @guyrandom9492 2 года назад

    Tic-tac toe puzzle in hypixel dungeon be like

  • @Knex13
    @Knex13 3 года назад

    I had a friend who never lost a game of tic tac toe, it infuriated me.

  • @2236zml
    @2236zml 3 года назад

    cool

  • @OldSoulClimber
    @OldSoulClimber 3 года назад

    would like a pie powered robot if you can do that

  • @CramSword420
    @CramSword420 3 года назад

    There is no way this only has 78k views.

    • @3DprintedLife
      @3DprintedLife  3 года назад

      You're right it doesn't, it only has 7.8k views XD

    • @CramSword420
      @CramSword420 3 года назад

      @@3DprintedLife Thats seriously sad considering the effort put into this

    • @3DprintedLife
      @3DprintedLife  3 года назад

      Haha well the algorithm has no mercy!

  • @NOMASAIM
    @NOMASAIM Год назад

    How does robot know when your move is done?
    Too lazy to scroll and look for answer.

  • @PolishCowNotFound
    @PolishCowNotFound 3 года назад +1

    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

  • @JohnDlugosz
    @JohnDlugosz 2 года назад

    You should have called it "tic tac TOBOR".

  • @andrews4208
    @andrews4208 3 года назад

    honestly i would love a robot that brushes my teeth

  • @andymclanza
    @andymclanza 3 года назад

    Hey, you have just made Bender cousin :-)

  • @smth35
    @smth35 2 года назад

    why not remove the unfair part and make it a win/tie for tobot?

  • @MithileshKumar-pl4gf
    @MithileshKumar-pl4gf 3 года назад

    can we use Arduino instead of adafruit feather

    • @3DprintedLife
      @3DprintedLife  3 года назад

      You may need to tweak some things, mostly imports and definitions, but yeah you should be able to.

  • @smallchannel5782
    @smallchannel5782 2 года назад +1

    Why did you make it with serious attitude

  • @jackm.8368
    @jackm.8368 3 года назад

    nice

  • @princeraj5545
    @princeraj5545 2 года назад

    Who ever take first step he will win

  • @ratchet9264
    @ratchet9264 2 года назад +1

    3.141592653589793238462643 I memorized that!

    • @3DprintedLife
      @3DprintedLife  2 года назад

      Haha nice, I only know the first 10 or so from memory!

  • @LukePettit3dArtist
    @LukePettit3dArtist 3 года назад +1

    Add the feature so you can go first.

    • @3DprintedLife
      @3DprintedLife  3 года назад +1

      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"

  • @geometricgamer7
    @geometricgamer7 2 года назад

    Battle two what would happen

    • @3DprintedLife
      @3DprintedLife  2 года назад

      They would either tie every time or end up in an endless loop of whacking each other to avoid losing

  • @mumujibirb
    @mumujibirb 3 года назад +1

    Just draw three circles.

  • @zenoanimates9575
    @zenoanimates9575 2 года назад

    Lol

  • @microponics2695
    @microponics2695 3 года назад

    Shouldn't it say "make your move" instead of "Take your move?

    • @3DprintedLife
      @3DprintedLife  3 года назад

      Perhaps. But I'm not great with grammar, after all I'm an -enginear- -enginier- good at making things

  • @3dspotted
    @3dspotted 3 года назад

    You can make it a writing machine

    • @3DprintedLife
      @3DprintedLife  3 года назад

      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!

    • @3dspotted
      @3dspotted 3 года назад

      @@3DprintedLife Will be a matter of honor if you make a tutorial on converting this to writing machine.

  • @EpicEnej
    @EpicEnej 2 года назад

    plz make it so human can have first move 2

  • @Certez2
    @Certez2 3 года назад

    your computer cant win with me!

  • @sanb3586
    @sanb3586 3 года назад

    Hey you take first move

  • @Xy_ce
    @Xy_ce 2 года назад

    Wait wtf I’m the 101,000th viewer. You probably don’t care, but it’s a cleeeaaaannnn number

    • @3DprintedLife
      @3DprintedLife  2 года назад

      But not as clean as the future 111,111th viewer

  • @Cooljrcat
    @Cooljrcat 3 года назад

    2:14 bad cuts

  • @naufoll
    @naufoll 3 года назад

    they say chess is the hardest...

  • @dogpower1021
    @dogpower1021 2 года назад

    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 .-.

  • @robn2497
    @robn2497 3 года назад

    I write code, if losing then stop and start winning; if winning then continue;

    • @3DprintedLife
      @3DprintedLife  3 года назад

      Oh man why didn't I think of that, would have been way easier!

    • @robn2497
      @robn2497 3 года назад

      @@3DprintedLife its cool you can take a joke much respect for awesome project :)

  • @onddu2254
    @onddu2254 2 года назад

    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

    • @3DprintedLife
      @3DprintedLife  2 года назад

      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

  • @darknessblades
    @darknessblades 3 года назад

    Now i wonder what would happen if you cheat?
    putting 2 circles right at the start

    • @3DprintedLife
      @3DprintedLife  3 года назад

      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!

  • @Idf.3frai.
    @Idf.3frai. 2 года назад

    idk i've beaten tic tac toe insane bot's 1,951 times idk if i can beat that bot

  • @jonirubik9095
    @jonirubik9095 3 года назад

    :)

  • @lolz2165
    @lolz2165 3 года назад +1

    I CHALLENGE YOU

  • @davidmacolisa8553
    @davidmacolisa8553 3 года назад

    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.

    • @3DprintedLife
      @3DprintedLife  3 года назад +1

      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!

    • @davidmacolisa8553
      @davidmacolisa8553 3 года назад

      @@3DprintedLife That would be great. Thank you kindly. Is there a means to communicate you or here is fine for any question?

  • @nyzzi88
    @nyzzi88 2 года назад

    its impossible to always win in tic tac toe, there is no possible way to guarantee a win in tic tac toe

    • @3DprintedLife
      @3DprintedLife  2 года назад

      True, unless you cheat. Optimal tic-tac-toe strategy is incredibly simple

  • @luutuankiet9941
    @luutuankiet9941 2 года назад

    just play google tic tac toe and set it to imposible