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

The amusement park on children day

hi again it is me focus and today i am talking about children's day today is children day in Thailand and i went to an amusement park the park it might had the world's largest wave pool i am not sure but it might okay.anyways i went to a park called "siam park" you can search it up on youtube or google and it is in Thailand in Bangkok so i went and played 9 rides because i didn't had much time because my dad wanted to work so i tried to be fast so i played rides called merry go round,a roller coaster,same thing like a roller coaster but not called the vortex,another roller coaster,balloon race,cant remember,log flume,cant remember again,giant drop and that is all but i will how you a picture or maybe a video if i can find it so that is all (after the some of the rides i couldn't feel for a bit and here is a video that i did today) the most scariest one of them all was the giant drop so give a big thanks to my mom and dad for being able to go her...

THINK SPACE B2S at Central Festival Eastville

Hello everyone today I will be talking about Central Festival Eastville. If you didn't know Central Festival Eastville is a mall and has a lot of places to buy stuff. So I went there with my dad because he had a meeting there with some people and we had some lunch as well I tried the truffles and the mac and cheese there. Though I think I kinda wanna try and make my own truffles now! Anyways I looked around and we went to the Food section. I mean I call it the food section because there you can buy a lot of food and there are different type of food there is dessert, bread and many more! I wanted to look around more, but we couldn't and we quickly went to the THINK SPACE section. A kingdom for book and stationery lovers... It is a book store and is very quiet. though I must say also of the stuff there was a bit expensive for the things that weren't the books of course. It is a large book store that looks very wide, designed with space to walk around, explore and read a bu...

making a video for my school project

Hello everyone! Today I will talk about Cooking! So the title might sound a bit off, but my school has this project for everyone in the school to do it is called "English Zone". So my computer teacher said that we had to make a cooking video also one more thing about the English Zone project it's that we HAVE to speak in English like no absolute Thai at all anyways. So I made a cooking video cause my teacher said so I made a video on how to make Yorkshire pudding. Yorkshire pudding is a dish that is from the U.K. There are many recipes on how to make Yorkshire pudding I used a recipe that used olive oil and less flour. It didn't turn out well or taste well..... ANYWAYS!! At least I made the video! The video was the most important. the ingredients in order to make Yorkshire pudding is flour, milk, eggs, salt and olive oil if you want to make look it up. So anyways it is hard to make it though. You can eat this with steak, fries, coffee and etc. It's easy to make an...