Programming and Probability: Random Coin Flip and Dice game
Description:
For this project we learned about programming and probability. We created our own games on Star Logo Nova or Scratch to learn more about how probability works. We then presented our games that we created at our exhibition. We also learned about probability by doing worksheets and solving problems like figuring out the probability of a 40 year old women having breast cancer, the probability of an athlete doping, and the probability of a student cheating.
Overview:
Throughout the project we had to solve multiple problems and along with those problems we had to create tree diagrams and two way tables to map out our process. We also worked with dice and pennies. With the dice we recorded data like how many time we rolled a 6. And with pennies we recorded how many times we could land on heads. We had to do multiple benchmarks for the project. Benchmark #1 was brainstorming game ideas. We also got to work with partners and share ideas with each other which was helpful when one of us couldn't come up with an idea. My partner and I's idea was to create a coin flipping game. Benchmark #2 was where I got to propose my idea to Dr.Drew. Benchmark #5 was our final version of our game. My partner and I added a second level where you could play a dice game because we thought that the coin flip wasnt enough. Benchmark #7 is our DP update where we show our work.
My Game Instructions:
Reflection:
Going into this project I was incredibly nervous because I have never programmed anything and I had no idea where to start. When we first were exploring I had no idea what anything meant and I asked for a lot of help. I decided to partner up because I knew I wouldn't be able to do anything if I was alone. We wanted to create a simple game that got the point of probability across. We decided to take what we did in class and make it into a game so we made a coin flip game. After creating the coin flip game, we saw that it seemed a little too simple so we added another level and made a random dice game. The hardest part of creating the game was figuring out which coding was right and making sure all of the illustrations were aligned and looked the same. One success I had was learning how to code and understanding how it works. Before I had no idea what anything meant, it all looked like another language but the more practice I got the better I understood it.
The Habit of a Mathematician I grew in was be confident, patient, and persistent. When doing something that I have no knowledge in I get very impatient because I am the type of person who doesn't like taking time I just want to know the answer. With this I had to learn how to be patient because when you use one wrong code it can mess up the entire game and you have to go back and figure out which one you did wrong and redo everything. Another Habit of a Mathematician I grew in is Stay Organized. With all of the benchmarks I had to stay organized with keeping everything together and making sure I had filled out all of the tree diagrams and two way tables. Overall this project was a lot more successful than I thought I would be.
The Habit of a Mathematician I grew in was be confident, patient, and persistent. When doing something that I have no knowledge in I get very impatient because I am the type of person who doesn't like taking time I just want to know the answer. With this I had to learn how to be patient because when you use one wrong code it can mess up the entire game and you have to go back and figure out which one you did wrong and redo everything. Another Habit of a Mathematician I grew in is Stay Organized. With all of the benchmarks I had to stay organized with keeping everything together and making sure I had filled out all of the tree diagrams and two way tables. Overall this project was a lot more successful than I thought I would be.