How To Make Tic Tac Toe In Scratch 3.0

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • In this video requested by a viewer we will make a Tic Tac Toe game in Scratch. This also includes a AI to decide who wins.
    If you wanna support my channel, smash the like button, comment and share my videos with your friends. thx :D

Komentáře • 207

  • @786ravigupta
    @786ravigupta Před 3 lety +29

    Hi Chris! Whenever you do tutorials I don't understand. but when you start to explain it makes me to understand the usage of them too! Your Amazing Chris! Lots of love from India!

  • @mastercoder8784
    @mastercoder8784 Před 2 lety +5

    If you want to make a tie then,
    22:21 - At this point, in the small block where he adds 9 things in a repeat 9 times loop, create a new variable named Blocks(or anything else you want) and then below add count to cells, put change Blocks count by 1.
    1.Create one more new variable, name Winner(or anything else you want) and then on top of the when green flag click set Winner to false. Also set blocks to 0.
    2.And then go into the large block that creates the AI line winner. In the same block, under every if then block, set Winner to true.
    3.Finally add a last if then under the forever loop under the when I start as clone. Put a and block on the screen and then take out 2 equals to blocks from the operators section.
    4.On one equals to block add blocks = 9 and on the other winner = false. Then inside that add a new broadcast Tie.
    5.Go to the area in the other sprite where you add the winner screen. Then make a new screen, copy and paste the winner code, and then set switch costume to tie.
    Hope this helps.

  • @darrenelves9858
    @darrenelves9858 Před 3 lety +6

    These are excellent tutorials. It has really simplified my students’ understanding for basic coding using Scratch.

  • @toasttoons
    @toasttoons Před 3 lety +5

    I do really enjoy these scratch videos but I think it'd be cool if you did a few other tutorials, I'd LOVE that

    • @CodingWithChris
      @CodingWithChris  Před 3 lety

      toast toons yeah sure. I do wanna make some changes . Any suggestions ?

    • @toasttoons
      @toasttoons Před 3 lety

      @@CodingWithChris I think it'd be cool if you did some JavaScript tutorials since I do want to learn how to start coding in JavaScript

    • @nikhilkumarjaiswal3472
      @nikhilkumarjaiswal3472 Před 2 lety +1

      @@CodingWithChris start sending a link to play the game you made

  • @albertoestevez7560
    @albertoestevez7560 Před 3 lety +5

    Hey Coding With Chris. I am a huge fan! I want to know something
    If you make videos with other programming languages, will you stop with Scratch? Or will you make it the main thing? Or make scratch a rare type of video? No matter what you decide, you’re still awesome!
    Have a good day!

  • @vikasgupta2310
    @vikasgupta2310 Před 3 lety +4

    I'm from India and it's 6:36am now.

  • @MetalowyChleb
    @MetalowyChleb Před 3 lety +1

    Maybe Some BIG tutorial? Maybe how to make chess?

  • @Cobrapollo1
    @Cobrapollo1 Před 3 lety +3

    Thanks for bringing joy to me and all your viewers Chris, have a awesome rest of the year. Video suggestion: make a first person shooter game (but no blood cuz that gets accounts banned)

  • @jamieklaus4204
    @jamieklaus4204 Před 3 lety +2

    these are the best scratch videos i can find i think there better than griffpatch and also easy you should ave lots of likes and subs

  • @mastercoder8784
    @mastercoder8784 Před 2 lety

    if anybody has a problem in the second row, it is actually 4=5 and 5=6. And then in the next line, item 4 of cells = x, instead of 3=4 and 4=5. I had a problem and that fixed it.

  • @firealarmchannel6382
    @firealarmchannel6382 Před 2 lety +4

    Thank you Chris! I got stuck but thanks to you, I made a tic tac toe game with no problem! Please make more of these wonderful projects!

  • @JonatasPoliglotaKidsOfficial

    0:17 I'm fine, thanks!

  • @godofmachines
    @godofmachines Před 10 měsíci

    Cool, but instead of adding extra code for list searching? You could try variables for detecting which one!

  • @gadget-maestro
    @gadget-maestro Před 4 měsíci

    i like your videos make more pls

  • @needleboy17
    @needleboy17 Před 3 lety

    I'm trying to make a tic tac toe game in Scratch too. I am using this video as a guide for making my tic tac toe Scratch project. I pause or rewind when I don't know what to do.
    Design:
    - Black and white grid made with Publisher
    - WordArt shapes (instead of an X and an O, I used a pentagon and a clover, made with WordArt.)

  • @quyenluong6926
    @quyenluong6926 Před 3 lety +2

    Chris I want X to go first so how are we going to do that?

    • @rsrk.2601
      @rsrk.2601 Před 3 lety

      Just change the code of o going first to x going first

  • @art-io1po
    @art-io1po Před 3 lety +2

    Only god knows how happy I am thank you so much 🙏🏾

  • @lil_Wayyy
    @lil_Wayyy Před 3 lety +4

    I nee some help so whenever X wins the second Sprite never pops up and same with when O wins the second Sprite doesn't pop up. (Edit: Never mind man I just figured it out and thanks for the tutorial!)

    • @OfficialMythicalMemes
      @OfficialMythicalMemes Před 3 lety

      can you say the suloution cuz im stuck plszzzzz help me

    • @lil_Wayyy
      @lil_Wayyy Před 3 lety

      @@OfficialMythicalMemes Here bro go on my project and look inside and copy the code i used

  • @fatimaadreeta
    @fatimaadreeta Před rokem

    Hi Chris! I don't understand how you create connection between sign num and cells. Can you please explain it? I mean logically I understand, but according to your code - it isn't working in my screen actually even though I can see its working in yours. Can you please explain why?

  • @hongthuytranthi4064
    @hongthuytranthi4064 Před 3 lety +2

    Could you make a multiplayer platformer game please, Chris?

  • @sepakpojok
    @sepakpojok Před 3 lety

    Tic-tac-toe game V.S Arena multiplayer battle game
    Who is the most fun game.

  • @ramyas690
    @ramyas690 Před 3 lety +4

    Hey Chris thanks a lot. I was trying it out for a week.

  • @perfumechen
    @perfumechen Před 3 lety +3

    Hi, my eight- year -old boy learned a lot from your channel, do you offer any online personal or group lessons?

    • @CodingWithChris
      @CodingWithChris  Před 3 lety +3

      Hi thx for watching the videos. Glad your son found my videos useful. Unfortunately I have a full time job right now and very little time for extra classes. But if this ever changes in the future I’ll announce it on the channel. Thx again

  • @coderarcher7122
    @coderarcher7122 Před 3 lety +1

    Thank You VERY VERY VERY VERY VERY VERY Much for accepting my request!!! Thank You!

  • @WonkyFrank
    @WonkyFrank Před 3 lety +1

    Chris I really really need help on 3D maze I’m using the scratch app it call scratch 2 offline editor when I’m in the maze it count that I’m in the maze so it will always be distance 0

    • @CodingWithChris
      @CodingWithChris  Před 3 lety

      Hmmm no idea why. Why don’t u use scratch 3?

    • @milindp11
      @milindp11 Před 3 lety

      @@CodingWithChris I have a doubt that how does the computer decides that if we click the 5th box the sign num is 5

  • @ParthPadwal-dc9fu
    @ParthPadwal-dc9fu Před 7 měsíci

    Thankyou It was very helpful. Our group made a project on it and its working!!

  • @RameshPal-cd4cs
    @RameshPal-cd4cs Před rokem

    Please show final code fully. Please make it easy such that every body can finally do the job.

  • @belugajr.2161
    @belugajr.2161 Před 3 lety +1

    Nice buddy

  • @anjanakumari6008
    @anjanakumari6008 Před 3 lety +1

    Hey chris! I liked this tutorial.
    Can you please make snakes and ladders game next time.

  • @VivaanTheCraft3r
    @VivaanTheCraft3r Před 3 lety +3

    Chris You Are The Best CZcamsr I know

  • @dhruvagamer7915
    @dhruvagamer7915 Před 2 lety

    Its cool make more videos

  • @codingwithsiddarth6872
    @codingwithsiddarth6872 Před 3 lety +1

    nice

  • @Dr4qon
    @Dr4qon Před 3 lety +4

    These tutorials just keep getting better! Keep up the good work, Chris!

    • @CodingWithChris
      @CodingWithChris  Před 3 lety

      Hey thx for the support. You’ve been very nice ;)

    • @Dr4qon
      @Dr4qon Před 3 lety +1

      @@CodingWithChris thank you!

  • @ThisGuyGlider
    @ThisGuyGlider Před 2 lety

    You should probably add a tie screen.

  • @ruhaansingh3575
    @ruhaansingh3575 Před 3 lety +1

    Hey Chris I asked you that when will you compile your python CZcams channel very intrigued to see it ): big fan

  • @linwang4468
    @linwang4468 Před 2 lety

    my project did not work out . it didn't put the x and o in the boxes they just kept dissappearing

  • @idontknow-oc5ts
    @idontknow-oc5ts Před 2 lety

    this was the best scratch tutorials thank you

  • @slashcounter6627
    @slashcounter6627 Před 3 lety +2

    made it so easily (to good)

  • @bhavneethscodinglab4136

    You can name the sign num variable id # .# Standing For Number

  • @ideepakgupta
    @ideepakgupta Před 3 lety

    Hi Chris, mine doesn't work it doesnt show up o wins or x wins when they win

  • @Munnyusa
    @Munnyusa Před 3 lety

    When you’re teaching u have to explain everything or else no matter how much u copied your work will be monitored and ask to be explained by you 👍🏻

  • @saritathanwani8826
    @saritathanwani8826 Před 2 lety

    Good job this is the best tic tac toe game in scratch!

  • @TuanAnhNguyen-mm2bs
    @TuanAnhNguyen-mm2bs Před 3 lety

    Would you "set the toggle to 1" at the first beginning? Anh also, can you make broadcast "tie" for a tie match?
    *Sorry for my bad English! Hope you can understand!*

  • @momeyeinter
    @momeyeinter Před 2 lety

    please make an easy squid game quickly please and i sub to you and like tik tak tow video and i turn on the notification bell

  • @sumank5760
    @sumank5760 Před 3 lety

    Hello Chris I am your now a fan of you explain very well love from india

  • @craftandtrends9450
    @craftandtrends9450 Před 3 lety

    It was nice I like the way you explain it makes everything very easy

  • @scratchgames9586
    @scratchgames9586 Před 3 lety

    This video is awesome

  • @thebongsong2713
    @thebongsong2713 Před 3 lety

    Please Can you make a video on ludo game.

  • @ictbtdimensions7880
    @ictbtdimensions7880 Před 2 lety

    Awesome video

  • @RealGameTitan
    @RealGameTitan Před 3 lety +3

    That's a huuuuuuuuuuuuuuuuuuuuge if statement! :D

  • @bhavneethscodinglab4136

    Great I added a title screen and a play button

  • @Hani-vw9eb
    @Hani-vw9eb Před 3 lety +1

    luv u thx for the tutorial

  • @prashantdoi3995
    @prashantdoi3995 Před 3 lety

    love from India too

  • @bryanhoangbach2255
    @bryanhoangbach2255 Před rokem

    Very good!

  • @-cpperclud8477
    @-cpperclud8477 Před 2 lety

    thank you!! it works so well and its just so fun too play so play too!!!

  • @victorbravo2883
    @victorbravo2883 Před 3 lety

    i alredy have my homework for my class of technology

  • @sepakpojok
    @sepakpojok Před 3 lety

    Arena multiplayer battle game will be fun more than tic-tac-toe game.

  • @ABcustomflooring
    @ABcustomflooring Před 2 lety

    hii this was so much fun to make and play!! :)

  • @sankalpgupta8359
    @sankalpgupta8359 Před 3 lety

    Very nice and interesting game and

  • @jpgamingtv1330
    @jpgamingtv1330 Před 2 lety

    nice video

  • @Sunil_Manohar
    @Sunil_Manohar Před 3 lety

    hEY chris i have a doubt how will we make the tiie code

  • @saitamilsamayal7290
    @saitamilsamayal7290 Před 3 lety

    nice and cool this will help me learn robotics

  • @wizardbreath7650
    @wizardbreath7650 Před 3 lety

    very nice

  • @thescratchsavy1587
    @thescratchsavy1587 Před 3 lety

    Hey Chris,Thnx a lot,Can u pls start the javascript tutorials for beginners becoz I am desperate to learn that

  • @izzie990
    @izzie990 Před 2 lety

    😄😄😄😄😄thank you so much Chris

  • @milindp11
    @milindp11 Před 3 lety

    I have a doubt that how does the computer decides that if we click on the 8th box the sign num is 8

  • @debad1
    @debad1 Před 3 lety

    😍😍😍This is the best tutorial I ever had!!!!!!!!!!!!!!

  • @dboi920
    @dboi920 Před 3 lety

    Can you make an RPG tutorial? I would like to see how that works!

  • @mafercastro6536
    @mafercastro6536 Před 2 lety

    can you make a tutorial of what do we have to do to make a tie?

  • @sepakpojok
    @sepakpojok Před 3 lety

    Cool , Interesting , Special and awesome project

  • @bryanhoangbach2255
    @bryanhoangbach2255 Před rokem

    Any position (at 7:13) is OK?

  • @haninmoujid2708
    @haninmoujid2708 Před 3 lety

    really chris i am farouk and really i love the way you explain i am an new scratcher and this is my 18th video i watch it and like it ok i hope ur heart my comments

  • @tpg-theprofessionalgamer3392

    Hey chris pls make the tic tac toe game that we can play with AI

  • @GlowingProphet
    @GlowingProphet Před 3 lety

    *great*

  • @wildman-jh7hl
    @wildman-jh7hl Před 3 lety

    Hey Chris you can have such a way that the x or o can be a computer

  • @edgarsephoka452
    @edgarsephoka452 Před 3 lety

    Thank you so so much 😊😊😊😊😊

  • @jyvsssss2104
    @jyvsssss2104 Před 3 lety

    what about the reset button and scoreboard???

  • @SrivatCA
    @SrivatCA Před 3 lety

    Awesome But i needed one thing
    how i can make the game draw??

  • @felixfalafel29
    @felixfalafel29 Před 3 lety

    ITS GREAT

  • @crystalcoder7703
    @crystalcoder7703 Před 3 lety

    I'm having a big problem with the Grey and White costumes

  • @ryannguyen3100
    @ryannguyen3100 Před 3 lety

    I love how you explain it

  • @sepakpojok
    @sepakpojok Před 3 lety

    What an awesome project

  • @supramgaming2142
    @supramgaming2142 Před 3 lety

    can you show us how to make a drawing tool?

  • @catlover2.075
    @catlover2.075 Před 3 lety +1

    Good Tutorial!

  • @saitamilsamayal7290
    @saitamilsamayal7290 Před 3 lety

    best

  • @musicmoment24
    @musicmoment24 Před 3 lety

    Just great

  • @RedToilets
    @RedToilets Před 3 lety

    34:49 I realized the problem while I was following and I decided to change it for myself because I thought that what you did didn't make sense.

  • @David-rm1wn
    @David-rm1wn Před 3 lety

    hi chris!

  • @amKindaOk
    @amKindaOk Před 3 lety +1

    can you make the AI for the enemy?

  • @pranavpratiknatarajan6782

    Chris this is great

  • @Triple_editgirls
    @Triple_editgirls Před 2 lety

    Hi Chris

  • @IDK_375
    @IDK_375 Před rokem

    I'm making a game called TicTacPizza pineapple vs pepperoni

  • @momeyeinter
    @momeyeinter Před 2 lety

    and forgot to say cause thank you chris

  • @shamitakoul5274
    @shamitakoul5274 Před 3 lety

    BEST TUTORIAL EVER!!!!!!!!!

  • @christopherfoley3501
    @christopherfoley3501 Před 3 lety

    what's the point of making a tic-tac-toe game if the only winning move is not to play. I thought everyone knew that the only winning move is not to play.

  • @raiacademy2285
    @raiacademy2285 Před 3 lety

    What about a tie/draw??

  • @thomas8161
    @thomas8161 Před 3 lety

    Btw, you say will make an AI, where is it?
    because if no have AI the game is so bored

  • @spacerocky8856
    @spacerocky8856 Před 3 lety

    Thank you So much 😊 thanks

  • @keerthanad5794
    @keerthanad5794 Před 2 lety

    I have a doubt, what must be done when the game ties