Inspiration
We were inspired by games we've played in the past, like Plague Inc. and Win the White House. We decided on a project to help the Red Cross in this way because it helps raise awarenss to how much the Red Cross have to do and how much funds that requires. We think it would encourage more donations and volunteers to help, as well as help raise awarness for nurses and doctors getting overwhelmed in hospitals. Especially with the COVID pandemic going on right now, we feel that we really need to focus on how hospitals are getting affected and how even big organizations like the Red Cross are stretched thin with limited funds.
What it does
Instructions are on the 3 lines on the left of our starting menu
Going more in depth than the instructions sheet, our code works by moving through day by day, with one problem arising each day in a random center. The use decided to help hospitals deal with this or not, knowing the severity and number of victims involved. If they decide to help, the hospital for that center has 10 patients saved, but that costs $200. If the use decided not to help, they can save their money for later problems and the hospital staff has to deal with the issue theirselves. The game ends when the user either runs out of money or 5 hospitals reach their max capacities. The goal is to last for as many days as you can.
How we built it
We built our app in two different ways, one completely using arduino and hardware, and one with java and GUIs. The Arduino method uses buttons and a potentiometer to control a display and move through the game. The more complicated form, using Java, uses JButtons and labels to play the game as mentioned above.
Challenges we ran into
We ran into some challenges through our project, but always pushed through them. One of these challenges was updating the amount of money. Our Center class knew how many people were in its hospital and how many to remove, as well as how much money that would cost. On the other hand, our driver class contained the label to update those values. By putting our heads toghether, organising our thought, and planning each step out, we were able to use some extra methods, some static variables, and another JLabel to solve this issue and continue coding ahead.
Accomplishments that we're proud of
We're really proud of our option pane and its functions. We were able to make it so that when there's 0 or 30 people in the hospital, it won't give the option to help, and added color changes for both options. We also made it so they can change the money counter in the bottom left, something that took us a while to figure out.
What we learned
We learned so much from this project, from circutry needed for arduino displays to GUI parts and their uses. All of the skills we used in our project can be used down the road so it was really usefull for all of us.
What's next for Red Cross Savior
Next, we plan on making the simulation bigger with larger, more accurate numbers. We also plan on expanding the map to North America next, maybe even adding seperate costs for aiding different country's hospitals, based on that country's wealth.
Log in or sign up for Devpost to join the conversation.