Coding Challenge 169: Pi in the Sky Game

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

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

  • @TheCodingTrain
    @TheCodingTrain  2 года назад +20

    Play the game! thecodingtrain.com/pi2022 (Comment with your high score!)

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

      Hey dan can u help me in the slide puzzle when i try to activate the simpleShuffle(board) it says floor is not defined

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

      Gotta say that it's practically impossible to tell how many slices a pie has on desktop. Maybe if the colours were consistent among the different slice quantities, it'd be a lot easier. Can't get past 3.1

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

      pls make RayMarching Coding Challenge
      Good video again

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

      3.1 is as far as i can get. It's really hard to do it. It runs so fast.

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

      @@caenir yes, this is good feedback! The game isn't as playable as I had hoped! But maybe we can improve it over time!

  • @coolbrotherf127
    @coolbrotherf127 2 года назад +122

    Since I started watching these videos, I started with the simple stuff like this now I've been able to make any number of my own projects. I guess it's not too complex, but knowing I could code this from scratch without any instructions makes me realize how far I've come.

    • @Jova
      @Jova 2 года назад +8

      Yeah, being able to make simple-intermediate things from scratch without any instructions is a good way to know that you've become adept at a programming language.

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

      Plz share your work

  • @pascal12355
    @pascal12355 2 года назад +42

    I have 7+ years of programming, including mobile, web and game development, but man when is a new video out I watch it like is my first day of school!

  • @Atrulion
    @Atrulion 2 года назад +37

    I love your content, and I owe you so much respect. I started programming (at least programming seriously) for half a year ago. I am currently 16, and your videos has inspired me so much you have no idea. I have constantly been trying to recreate your ideas, like snake, fractal trees, tic tac toe, and also raycasting. This has given me a huge boost in the start, and now I love programming, and it is one of my biggest hobbies. I seriously can't thank you enough, you have helped me so much.

  • @max-yasgur
    @max-yasgur 2 года назад +12

    Thank you for making the length of the video 31:41

  • @pvic6959
    @pvic6959 2 года назад +20

    I _KNEW_ there would be a Coding challenge today!! im so excited!

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

    These coding challenges always feel wonderfully cozy to watch

  • @AdamSchelenbergCom
    @AdamSchelenbergCom 2 года назад +4

    I am just amazed of how entertaining and educational these videos are. Thank you Daniel.

  • @ShaneDavisDFTBA
    @ShaneDavisDFTBA 2 года назад +2

    I was so happy when I managed to spot the second missed “this.” and sat here grinning while waiting for the song.

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

      I love this comment!

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

      @@TheCodingTrain I think you mean you love this.comment 😝

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

    Man, I just love you enthusiasm, it is contagious!

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

    Your new formula to prepare this videos is quite interesting: live streaming on Twitch and videos on RUclips! Thanks for this nice video!

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

    How crazy is it that the video is 31 minutes and 41 seconds long. Lovely pi day

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

    I have watched like 2 of your videos in the past, but I have been watching a ton more because I’m taking a programming class at my high school, and I’m really enjoying watching these learning more things every video. :)

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

    this dot is great example of why using composition over inheritance is better in vanilla js

  • @aeschynanthus_sp
    @aeschynanthus_sp 2 года назад +4

    Pi may be the only number you can eat but "kuusi" is the only number in Finnish you decorate at Christmas.
    ("Kuusi" is actually two words, one meaning 'six' and the other 'spruce', which is what is used for the Christmas tree in Finland. I say "two words" because they are inflected differently.)

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

    Love ur content dan keep up the good work and u r an amazing person to watch , have fun and learn code from

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

    Remember back in 2017 when i first watch his channel im still trying learning oop backthen, but your videos never fail impress me untill this day.

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

    the live stream to the final version, great stuff

  • @geoffwagner4935
    @geoffwagner4935 8 месяцев назад

    That is pretty amazing, writing the processing book in the 2000's..... I was still pretty much a kid I think 13 and just enough to get Millennium installed and get excited about the "restore" feature, that just became more and more evident, it really needed it. it wasn't so much a new feature, as was closer to an essential component like, a spark lug for an engine, or 8 spark plugs if you had a v8.

  • @Otakutaru
    @Otakutaru 2 года назад +2

    Really concise explanations, 10/10 programming video

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

    I'm really Happi to get a Coding Challenge video today.

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

    this video shows why i love this channel

  • @Troy-ol5fk
    @Troy-ol5fk 2 года назад +1

    Maybe slice the whole canvas vertically into many strips, and place each pie in a random strip(like a running track), so they don't overlap each other

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

    I already know a good amount of oop, but I thought this was bar far one of you best explaination with oop. Excellent job!!!

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

    Dude ive been watching you since 200k subs, i love your videos.

  • @xSungamerx
    @xSungamerx 2 года назад +5

    The game you have at around 19 minutes could be a perfect cell number input program for r/badUIbattles

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

    Just joined the train. Loved the previous videos.

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

    I can't get enough of your videos, you're just amazing sir!

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

    The song at the beginning is the real accomplishment here

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

    Dan is on a grind much love from the train of coding

  • @LordHonkInc
    @LordHonkInc 2 года назад +2

    Happy Pi Day! Thank you as usual for these great videos, and regardless if it's large projects or just a "simple" but beautiful visualization of some mathematical idea (the bezier curve video is, at least for me, the most understandable definition I've seen for how they work), I always love watching and coding along :)
    By the way (and this isn't meant as anything more than a passing bit of trivia), this project reminds me very much of one in the first book I've ever read on C++ (except it was more of a "space ship shooting oncoming asteroids" game, but conceptually it tried to teach similar lessons, y'know, classes for the objects on screen, how to implement a main loop, stuff like that). It's called "C++ für Spieleprogrammierer" by Heiko Kalista. Yeah, it's in german and I'd say pretty outdated by today's standards (heck, anybody here remember "Simple DirectMedia Layer"? xD), but thought I should still source it. God, I was so confused back then, didn't even understand what a singleton was back then.

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

    I am still going through your processing videos, I bought 3 books by you. Noticed that processing seems to be on the back burner for you. I would like to see a series on sound please, pretty please. Also wish you was around when I was a kid, maths might have been enjoyable rather than something I'd skip.... Appreciate the free videos, your time and the knowledge you share.

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

    169th Coding Challenge !
    Nice!

  • @molvenma1446
    @molvenma1446 2 года назад +2

    Oh… It's very spicy in Russian.
    Big "PI" & "SKY" read together like Russian word for "рussу" (but it is also genderless).

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

    I think the game should check if the digit the player needs is on the screen, and put it in if it's not, so you dont have to wait for the rng to give you the right digit. It can be random if the digit the player needs is there.

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

    The best "pi video" I've seen so far! Great =D

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

    I've been watching your videos for a few months now (very nice, by the way! I love your content), but only now I learned that your name is Daniel and not Coding Train Guy.
    I don't know if I just don't pay attention or you never intruduced yourself in your vídeos....
    Anyway, nice to meet you, Daniel.

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

    Alt game title: "Catcher in the Pi" - or is that too highbrow? Lol, thanks for another great video!

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

    I love your videos. One thing that could be cool is to consider time in the movement of objects instead of only relying on the FPS.

  • @geoffwagner4935
    @geoffwagner4935 8 месяцев назад

    *wonders are we getting a new pi day stream tomorrow* wow...... it's like a time lapse , what a shocking and crazy photo of Shiffman , i may actually need the computer with Golom Levin to interpolate the resemblance. Pasty pale skin. no beard. If those chompers took a bite of a pie, it's probably no mistaking who did it. Just watched "Bloorayne" the other night, trying to find a book i read a quarter pretty sure game is based on, and trying to find, was sure it might be it. Was actually really good, but wow, this Shiffman could ran right out of it.

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

    I think it would be good if you get the correct number, it displays at the bottom, but if you get an incorrect number, rather than game over, it will remove the previous number you got, so you have to get it again. This way, over time you will learn the number PI, as it will become engrained. Maybe a time limit, so the goal is to see how big a string you can make. That then could become a high score to try to beat

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

    Coding Quest would be a cool name

  • @trafalgarlo9249
    @trafalgarlo9249 2 года назад +2

    все мы знаем что на превью писки....

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

    Pi day was yesterday according to our timezone
    But even a day late,it can't be Pi day without you!

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

    My birthday is always so fun not that being born on the same day as Einstein alone is fun.

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

    Reminds me of this game where babies were falling out of a burning building that you had to rescue.

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

    you can also eat 8008135 and 455. probably some great meals in hexadecimal, and beyond, too!

  • @antoningranados3491
    @antoningranados3491 2 года назад +2

    Hello, have you tried the Fibonacci sequence in the Ulam spiral ? 😄

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

    Even the length of the video is 31 41... WOW!

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

    What kind of "baking powder" you used for those pies?. Can't stop laughing. Great videos, man!

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

    ...and the length of the video is 31:41. Clever.

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

    Brilliant love it

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

    I love the pi day videos

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

    You're the MVP man :)

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

    I would use a check when spawning the pie to see if the needed number is in any of the existing pies and if its not then thats the number you spawn.

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

    Thank you Sir

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

    If this guy was my teacher at school I would never have dropped computer science.

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

    My fav channel

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

    It’s so inspiring for a beginner like me ;) 🥰 love it!

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

    woah, even made the video be 31 minutes 41 seconds (from thumbnail)

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

    this was beautiful! lmao i loved it

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

    Even my 4 year-old cousin loves this

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

    The video's time is also the first digits of PI, and i dont think it's a
    coincidence

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

    @9:09 "and now I have 2 pies" - no, you have "tau".

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

    excellent...

  • @Visual-Synthesizer
    @Visual-Synthesizer 2 года назад +2

    Thank you so much. Your videos are great for me, the time you take on visuals is super helpful . I’m kinda retarded dyslexia. Now i program my own AI art assistants , blockchain code and can read most code patterns!

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

    this. 😝
    Happy Pi day!

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

    My favourite RUclipsr😘😘

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

    Smart pacemaker

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

    I just appreciate that in the suggestions page yt said the video length was 31:41

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

    I love your videos!

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

    I caught: 3.14159265358979323846264338327950288419716939937510582097494459230781640628 pies! I was about to be stuck for the rest of my life playing this game but unfortunately it came to an end

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

    Hahahaha I laughed so hard at the train waving ending xD

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

    Yay new coding challenge

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

    And the video is 31 minutes and 40 seconds! META PI

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

    One SMALL point of critique/criticism: I'm a person who likes to try and type out the code along as you do it. While the fast forwarding of the typing is fine (I can just pause the video) sometimes the screen gets changed before you actually get to see what's typed. If there's some way to change that, that would be great.

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

      Thanks for this feedback! We try to keep every line of code that is added visible but sometimes we miss the mark. Feel free to point out any time codes that are particularly hard to follow so we can reference in the future!

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

    I feel like you should've highlighted the correct pie to catch, maybe in green or some other color to make it a little easier

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

    It was perfect.

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

    Awesome

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

    The Obligatory Pi day coding challenge!

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

    keep going my teacher , thanks for all :)

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

    Лол, отличное превью!

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

    In my world Pi is approximately 2.1448 and it works out in the long run somehow.

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

    Oooh, interesting! I was imagining in my head a full pie that had x amount of slices. So rather than having x amount of 1/9 slices, each slice would be 1/x of the pi!

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

    Thank you for making thid

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

    ahhh the video length is one second off from being the first four digits of pi

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

      This is a RUclips bug! It’s the correct length. If you look at the thumbnail preview it says 31:41

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

      @@TheCodingTrain awesome, it would have been so sad if it was one short

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

    "6...6...8...9...4...9"
    *Camera shakes aggressively"
    "THAT'S NOT PI!!!!!1!!!1!"
    🤣🤣🤣

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

    These are great, but the audio effect for errors (bzzzt!) are a little offputting! They're all in good fun but it makes the audio a little less pleasant

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

      Thanks for the feedback! Just that one sound effect or others too?

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

    Oh Dan, you're such a rainbow

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

    Could you not add a random number between 0 and 2pi to the "a" variable for the random rotation in the arc function?

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

    What is funny, in my languege "pies" means a dog :p nice video

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

    I have a feeling the length of the video has something to do with PI day..

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

    Thank you for the great content as always. Please, plesae have a look at the magic code wheel by Mathlogger. He poses a programming challenge to create an infinite circular slide rule. On the surface is rather trivial as in its essence all you need are two circles with log scales, but the infinite zoom... I don't even know where to begin

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

    need more processing videos!!

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

    Happy π day! (took me a few to realize theres no pi emoji lol)

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

    Do programmers not use vim or similar binds? This mouse work seems extremely tedious.

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

    Following since 5 years you are doing tremendous job! Want to continue Processing tutorials as well!
    Pin my comment please Dan 😍

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

    I got locked out but it was perfect

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

    I have a serious doubt about how I can use the calculations from the Physics subject and transform them into codes for the creation of games. 😥😥😥

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

    Your little pi day song says that pi is the only number we can eat, but we all know that 7 disagrees and claims that 9 is very delicious. (Yes this is a 7 8 9 joke.)