Snake Eyes Code Game

In my senior year, I have been introduced to Computer Science. I have grown an obsession with it since, and have been enjoying the class quite a lot. For this project, we had to create an educational game. As much as I tried to stay near the idea, as I continued with my coding, it has strayed farther from being educating and closer to gambling. The game I made here is a lot similar to roulette, and involves other parts to a casino game. I really enjoyed making this code, and I have learned a lot from it.

In this code, I really wanted to think more about how I can make the code readable, easy to follow, and visually appealing. Even though this type of python isn't a about visuals, there are still ways to make a code well formatted. A lot of the way I arrange the code itself has changed over time. Here is an old draft from a previous coding project that I made.


This draft is very disorganized and very hard to read for anyone looking at my code. If I were to take more computer program courses, or pursue a career in computer programming, most likely is it that my code will be reviewed by others. There needs to be organization in my code so it is easy to read and follow. Below is the code game I created for the class.


There has been a lot of progress since the chatbot that I made, to this new game I created. I learned a lot along the way from making this code, specifically the different ways I can create loops. In my previous code, I had only used one specific kind of loop, and it made my work a lot more difficult. I can apply these loops with scenarios that involve more than true or false statements. One of the things I regret about this code, is the time I spent on the tutorial. In the end, it wasn't very helpful since a lot of the process of the code is automated and does not require the users input. In the future, I will keep things like this in mind so that I can use my time productively. This code is not everything that I had imagined it to be, but I am satisfied with what I was able to do.

Comments