Coding Challenge 169: Pi in the Sky Game

  Рет қаралды 86,368

The Coding Train

The Coding Train

2 жыл бұрын

Happy Pi Day! How many delicious digits of Pi can you catch from the sky? In JavaScript! thecodingtrain.com/challenges...
p5.js Web Editor Sketches:
🕹️ Pi in the Sky: editor.p5js.org/codingtrain/s...
🕹️ Illustrated Version: editor.p5js.org/codingtrain/s...
🎥 Previous video: • Coding Challenge 168: ...
🎥 All videos: • Coding Challenges
Links discussed in this video:
🔗 1 Million Digits of Pi collected by Eve Andersson: www.eveandersson.com/pi/digits...
🎶Pi Day song by / willfromamerica
Other videos mentioned in this video:
🎥 Coding Challenge 3: The Snake Game: • Coding Challenge #3: T...
🎥 Coding Challenge 4: Purple Rain: • Coding Challenge #4: P...
🎥 Code! Programming for Beginners with p5.js: • Creative Coding for Be...
🎥 Transformations in p5.js: • How to Rotate Shapes i...
🎥 Removing Objects from Arrays: • 7.5: Removing Objects ...
Timestamps:
0:00 Happy Pi Day
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/Guides/com...
🚩 Suggest Topics: github.com/CodingTrain/Rainbo...
💡 GitHub: github.com/CodingTrain
💬 Discord: / discord
💖 Membership: kzbin.infojoin
🛒 Store: standard.tv/codingtrain
📚 Books: www.amazon.com/shop/thecoding...
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
🎶Misc Music and Sound from www.epidemicsound.com/
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/websit...

Пікірлер: 193
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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!
@max-yasgur
@max-yasgur 2 жыл бұрын
Thank you for making the length of the video 31:41
@Atrulion
@Atrulion 2 жыл бұрын
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.
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
Than you for sharing your story!
@pvic6959
@pvic6959 2 жыл бұрын
I _KNEW_ there would be a Coding challenge today!! im so excited!
@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. :)
@AdamSchelenbergCom
@AdamSchelenbergCom 2 жыл бұрын
I am just amazed of how entertaining and educational these videos are. Thank you Daniel.
@YoyellDCube
@YoyellDCube 2 жыл бұрын
Love ur content dan keep up the good work and u r an amazing person to watch , have fun and learn code from
@shmupful
@shmupful 2 жыл бұрын
Man, I just love you enthusiasm, it is contagious!
@ShaneDavisDFTBA
@ShaneDavisDFTBA 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 жыл бұрын
I love this comment!
@ShaneDavisDFTBA
@ShaneDavisDFTBA 2 жыл бұрын
@@TheCodingTrain I think you mean you love this.comment 😝
@drinkingcat3065
@drinkingcat3065 2 жыл бұрын
Dude ive been watching you since 200k subs, i love your videos.
@adershvarshnei5198
@adershvarshnei5198 2 жыл бұрын
These coding challenges always feel wonderfully cozy to watch
@CodingAdventures
@CodingAdventures 2 жыл бұрын
Your new formula to prepare this videos is quite interesting: live streaming on Twitch and videos on KZbin! Thanks for this nice video!
@geoffwagner4935
@geoffwagner4935 3 ай бұрын
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.
@alistaw1866
@alistaw1866 2 жыл бұрын
I can't get enough of your videos, you're just amazing sir!
@LordHonkInc
@LordHonkInc 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.
@jonatanlaksamana462
@jonatanlaksamana462 Жыл бұрын
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.
@aeschynanthus_sp
@aeschynanthus_sp 2 жыл бұрын
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.)
@henry4240
@henry4240 Жыл бұрын
How crazy is it that the video is 31 minutes and 41 seconds long. Lovely pi day
@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!!!
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
I'm so glad to hear!
@Otakutaru
@Otakutaru 2 жыл бұрын
Really concise explanations, 10/10 programming video
@khalidsakka8020
@khalidsakka8020 Жыл бұрын
this video shows why i love this channel
@thounilo
@thounilo 2 жыл бұрын
this dot is great example of why using composition over inheritance is better in vanilla js
@astropgn
@astropgn 2 жыл бұрын
The best "pi video" I've seen so far! Great =D
@ThatOneAgarAgarioThePro
@ThatOneAgarAgarioThePro 2 жыл бұрын
Dan is on a grind much love from the train of coding
@sTale0
@sTale0 2 жыл бұрын
Just joined the train. Loved the previous videos.
@terraflops
@terraflops 2 жыл бұрын
the live stream to the final version, great stuff
@Troy-ol5fk
@Troy-ol5fk 2 жыл бұрын
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
@VeloRV
@VeloRV 2 жыл бұрын
this was beautiful! lmao i loved it
@_abdul
@_abdul 2 жыл бұрын
I'm really Happi to get a Coding Challenge video today.
@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.
@scorusadrian6850
@scorusadrian6850 2 жыл бұрын
What kind of "baking powder" you used for those pies?. Can't stop laughing. Great videos, man!
@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.
@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.
@gabrielmalek7575
@gabrielmalek7575 2 жыл бұрын
You're the MVP man :)
@paepaenuanphan8512
@paepaenuanphan8512 2 жыл бұрын
It’s so inspiring for a beginner like me ;) 🥰 love it!
@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.
@thehappycoder3760
@thehappycoder3760 2 жыл бұрын
Brilliant love it
@martinvivian9772
@martinvivian9772 2 жыл бұрын
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.
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
Great suggestion!
@erichlof
@erichlof 2 жыл бұрын
Alt game title: "Catcher in the Pi" - or is that too highbrow? Lol, thanks for another great video!
@xSungamerx
@xSungamerx 2 жыл бұрын
The game you have at around 19 minutes could be a perfect cell number input program for r/badUIbattles
@arhamirfan
@arhamirfan 2 жыл бұрын
I love your videos!
@ravpanda037
@ravpanda037 2 жыл бұрын
I love the pi day videos
@whip8
@whip8 2 жыл бұрын
The song at the beginning is the real accomplishment here
@sarvagya5817
@sarvagya5817 2 жыл бұрын
169th Coding Challenge ! Nice!
@vasevase2323
@vasevase2323 2 жыл бұрын
My fav channel
@hussainsalih3520
@hussainsalih3520 2 жыл бұрын
keep going my teacher , thanks for all :)
@NiscMC
@NiscMC 2 жыл бұрын
Yay new coding challenge
@Fiercesoulking
@Fiercesoulking 2 жыл бұрын
My birthday is always so fun not that being born on the same day as Einstein alone is fun.
@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?
@FrostDrive
@FrostDrive 2 жыл бұрын
Hahahaha I laughed so hard at the train waving ending xD
@kishrajsrk
@kishrajsrk 2 жыл бұрын
excellent...
@servv3167
@servv3167 2 жыл бұрын
Thank you Sir
@antoningranados3491
@antoningranados3491 2 жыл бұрын
Hello, have you tried the Fibonacci sequence in the Ulam spiral ? 😄
@sqtapnic
@sqtapnic 2 жыл бұрын
Awesome
@Visual-Synthesizer
@Visual-Synthesizer 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!
@geoffwagner4935
@geoffwagner4935 3 ай бұрын
*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.
@molvenma1446
@molvenma1446 2 жыл бұрын
Oh… It's very spicy in Russian. Big "PI" & "SKY" read together like Russian word for "рussу" (but it is also genderless).
@franchello1105
@franchello1105 2 жыл бұрын
Reminds me of this game where babies were falling out of a burning building that you had to rescue.
@franchello1105
@franchello1105 2 жыл бұрын
Bouncing Babies
@toastyPredicament
@toastyPredicament 2 жыл бұрын
It was perfect.
@bububirb
@bububirb 2 жыл бұрын
this. 😝 Happy Pi day!
@thedarkknightclipss
@thedarkknightclipss 2 жыл бұрын
My favourite KZbinr😘😘
@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
@morgengabe1
@morgengabe1 2 жыл бұрын
you can also eat 8008135 and 455. probably some great meals in hexadecimal, and beyond, too!
@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
@RajJaiswal538
@RajJaiswal538 2 жыл бұрын
Pi day was yesterday according to our timezone But even a day late,it can't be Pi day without you!
@sc6the
@sc6the 2 жыл бұрын
Coding Quest would be a cool name
@danieldouglas210
@danieldouglas210 2 жыл бұрын
If this guy was my teacher at school I would never have dropped computer science.
@toastyPredicament
@toastyPredicament 2 жыл бұрын
Smart pacemaker
@ryanbucinell7301
@ryanbucinell7301 2 жыл бұрын
I just appreciate that in the suggestions page yt said the video length was 31:41
@walnutsandbeastiality866
@walnutsandbeastiality866 2 жыл бұрын
,,Butterfly in the sky I can go twice as high Take a look It's in a book A reading rainbow" 🎶
@gergonagy846
@gergonagy846 2 жыл бұрын
Even the length of the video is 31 41... WOW!
@tysoe27
@tysoe27 2 жыл бұрын
"6...6...8...9...4...9" *Camera shakes aggressively" "THAT'S NOT PI!!!!!1!!!1!" 🤣🤣🤣
@toastyPredicament
@toastyPredicament 2 жыл бұрын
Thank you for making thid
@AknKocoval
@AknKocoval 2 жыл бұрын
Hello, I have a question. Actually, I want to learn the web programming. That means I need to learn HTML, CSS and JavaScript. But what about processing? Is it going to help me because I have your two books, but don't know how to start. 😩
@cillian_scott
@cillian_scott 2 жыл бұрын
Do programmers not use vim or similar binds? This mouse work seems extremely tedious.
@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
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
Indeed, the game is too hard!
@TheMrWiktor
@TheMrWiktor 2 жыл бұрын
What is funny, in my languege "pies" means a dog :p nice video
@psrs985
@psrs985 2 жыл бұрын
Even my 4 year-old cousin loves this
@Tom-vr5yv
@Tom-vr5yv 2 жыл бұрын
What theme do you use?
@amarmerabti8338
@amarmerabti8338 2 жыл бұрын
The video's time is also the first digits of PI, and i dont think it's a coincidence
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
Good catch!
@thealexconnor9988
@thealexconnor9988 2 жыл бұрын
woah, even made the video be 31 minutes 41 seconds (from thumbnail)
@kevnar
@kevnar 2 жыл бұрын
...and the length of the video is 31:41. Clever.
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
Glad someone noticed!!
@KeygaLP
@KeygaLP 2 жыл бұрын
Ah, yes the this dot song!
@whitk034
@whitk034 2 жыл бұрын
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 жыл бұрын
Hi can you run (brb saving model) a C program on your phone.
@albert0zzz
@albert0zzz 2 жыл бұрын
Лол, отличное превью!
@neutralmichaelc
@neutralmichaelc 2 жыл бұрын
Who edited this? Shit is amazing 😭
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
All hail Mathieu! twitter.com/mathblank
@klutch4198
@klutch4198 2 жыл бұрын
Happy π day! (took me a few to realize theres no pi emoji lol)
@quaxh
@quaxh 2 жыл бұрын
need more processing 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
@anusha8085
@anusha8085 2 жыл бұрын
Oh Dan, you're such a rainbow
@therayvenn3482
@therayvenn3482 2 жыл бұрын
Happy pi day!!!
@TrollingAround
@TrollingAround 2 жыл бұрын
@9:09 "and now I have 2 pies" - no, you have "tau".
@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?
@LuizFeReis
@LuizFeReis 2 жыл бұрын
❤️
@marcosrogerio_oficial
@marcosrogerio_oficial 2 жыл бұрын
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. 😥😥😥
@ajthemagi2913
@ajthemagi2913 2 жыл бұрын
And the video is 31 minutes and 40 seconds! META PI
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
41! It's 41! KZbin glitch!
@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.)
Coding Challenge 170: The Monty Hall Problem
32:16
The Coding Train
Рет қаралды 156 М.
Coding Challenge #143: Quicksort Visualization
30:06
The Coding Train
Рет қаралды 245 М.
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 368 М.
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 8 МЛН
Coding Challenge #139: Calculating Digits of Pi with Collisions
31:42
The Coding Train
Рет қаралды 409 М.
Coding Challenge 164: Bending Time Slitscan
28:27
The Coding Train
Рет қаралды 98 М.
Erdős-Woods Numbers - Numberphile
14:12
Numberphile
Рет қаралды 40 М.
Why does Vegas have its own value of pi?
23:29
Stand-up Maths
Рет қаралды 820 М.
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 520 М.
Coding Challenge 144: 2D Black Hole Visualization
42:30
The Coding Train
Рет қаралды 230 М.
Coding Challenge: 3D on Apple II
45:40
The Coding Train
Рет қаралды 321 М.
Every Chess Tip Explained In 10 Minutes
9:42
Chess Thugs
Рет қаралды 1,3 М.
Apple ][ Coding Challenge: Fractal Tree
35:35
The Coding Train
Рет қаралды 368 М.
Coding Challenge 167: Ulam Spiral of Prime Numbers
24:13
The Coding Train
Рет қаралды 750 М.