Skip to main content

Coding a Coin Flipper - Kidbright

Hello everyone today I am doing another tutorial for kid bright again. I know I know it might be a bit boring, but my dad told me to write about it so yeah. Anyways the way I did this was my way there totally are other ways to make a coin flipper, but this was the easiest way I did, so let's just start. First, you get the set x to block you don't have to change it. , but you do have to get a random integer and you have to change it to 0-2. Why 2? I don't know my coding teacher from the coding course program used 2 and it worked. Next, is get the forever block and next is the if do else block. Put a = block then get an x block and a number block from math. So next you can literally do anything you want in the do of the if, but I just drew pictures. Next is get another LED drawing block again and do the just draw whatever you want for tails. When you are done it will look similar to the picture in the blog. Anyways that is all for today bye! One more thing you can actually make it a bit more advance like when it is heads open the light when it is tails say something or play music notes stuff like that.


Comments

Popular posts from this blog

Happy (late) Mother's day!

Hello everyone! It's me Focus and today I will be talking about Mother's day! Well, I forgot to write about Mother's day yesterday, but here I am! At least I didn't forget it completely! So Happy Mother's Day to everyone! I hope you all had/have a great Mother's day yesterday! So today, of course, is on the Topic of mothers!  Everyone has Mother's right? I mean you can't be born unless you have a Mother, but there are also other kinds of parents. Like Adopted parents. If you don't have parents then, of course, you have Adopted or Stepparents. No matter what a mother is someone who cares for you dearly no matter if they are family-related or not. I care and love my Mom a lot and she loves me too. You know that thing like Mother's instinct? Yeah never mess with Mother's especially if it's a wild animal. That is just a heads up. Anyways I'm sure a lot of people love their Moms some don't. Either way, we must be together with our fami...

Lost My Phone at IKEA

 Hello everyone! It is me Focus and today I will be talking about me losing my phone at IKEA. Don't worry I got it back. So me and my mom went shopping to IKEA. We ate lunch then went to the maze that you call IKEA. Me being me went to sit on every small  armchair. Okay not just the small sized ones. Everytime I sait on an armchair I would do this villian pose just to be silly. My goal was to creep everyone out and to also cheer my mom up because I noticed she was a bit sad. Which worked, but of course something dreadful happned. I LOST MY PHONE. Now It wouldn't haven been so bad except It was  bad. I noticed that my phone was gone right when we were about to leave IKEA. We immedietly went back inside and searched for the areas that I sat at. We decided to call my dad and he said that he could turn on the noise for 5 mintues since I also muted my phone. Then he told me a worker at IKEA found it  and us to go to the control room. My mom also forgot to buy somethings s...

Why do we need to know our future?

Hello everyone! It's me Focus and today I will be talking about the "future". So when you are a kid or something people will always ask or expect "what kind of job do you want to do in the future?" stuff like that. I usually get asked what I want to be when I grow up. So I do what a regular kid would do think what I want to be when I grow up, but in reality, I don't really know what I want to be when I grow up. I mean I kinda know what kind of job I want somewhere in the technical/ business field, but I still don't know what specific  job I want. I mostly do research on what kind of jobs there are in the world and let me tell you there are a lot  of jobs there are in the world. Most kids choose a popular day to day jobs like doctors, policemen, etc, but there are even more jobs out there in the world like freelancers or detectives, etc. So I mostly try and find more suitable jobs for me. When you are young and a friend who is also young asked what you wa...