Inspiration
The themes given were social good, productivity, and covid-19. I decided to use the theme of covid-19 as it has had a significant impact on everyone's lifestyle. It has played an important role in changing society to what it is now. Furthermore, I haven't coded in over a year and so this hackathon was a great opportunity for me to do so.
What it does
This is a text-based adventure game. It includes different aspects of life in a pandemic for example wearing masks and having hand sanitizer. It is for entertainment for children and for them to understand a sense of sequence.
How we built it
I have built this on python. I have created a text file to store the username and password at the beginning of the game. It can allow you to log in for the next time you play. Furthermore, creating a username and password, can create a more user-friendly interface and create a personalized experience. After I created different variables called health and gold that keeps track of the money and health you have throughout the game. I assigned 100 health points and health points can be gained by choosing the right options throughout the game. They can also be deducted. You have 1000 gold to buy things at the beginning of the game to aid you in completing the obstacles. Once you have completed the obstacles, you reach the final destination in which you have to collect different items in order to unlock the computer to read the secret message.
Challenges we ran into
There are many challenges that I ran into, but I have used stack overflow to help aid me. At first, the text files that I linked to python always produced an error as the information that was typed in by the player did not show up on the text file. However, in the end, I found out you have to open the file by using (a, for add) and then write in. This was one of the first challenges I faced. Furthermore, throughout the program, there were many syntax errors, such as the indentation of the iteration and selection statements. These were easily sorted out by reading over the code again and indenting and commenting out the different sections. The most difficult challenge was linking different subprograms to each other, as it kept saying that the variable was undefined. I figured out how to do it in the end, by putting the variables in brackets. This created the iteration effect that I wanted.
Accomplishments that we're proud of
The biggest accomplishment I'm proud of is the use of different subprograms that link together. This created an iteration loop and if the wrong choice was selected, it could go back to the section. The use of different subprograms accounted for the different choices that could be made by the user. If they typed something accidentally, it would repeat the same question or inform the player that the selection was invalid.
What we learned
This hackathon has helped me to realize that you can do a lot on python. I learned that you can open and add information to text files in python. Furthermore, you can delay the time at which the text is printed by using time.sleep(). The most fascinating thing I learned has to be the use of different subprograms that use each other. At the end of the decisions, you are able to go back to the same decision but choose a different option.
What's next for SURVIVE THE DEADLY VIRUS
To improve on my game, I could have included more challenge questions within the game. This will allow the user to have more fun while it being educational at the same time. Also, another improvement to my game could be to include more scenes. This will allow the game to be longer. If I had more time. I would create a scoreboard, using the username entered at the beginning and use the health points as a form of a score.

Log in or sign up for Devpost to join the conversation.