Need Help Connecting 2 Projects Together

Hello! I am working on a game project and would greatly appreciate if someone helped me connect two games together. I have been trying for a few days but to no avail. I would like to make it so upon press of one button, one game begins, and the other button, the other. However, I cannot wrap my head around how to do so and this is why I am here. If anyone is willing to help, that’d be great.

Game 1.txt (5.98 KB)

Game 2.txt (8.65 KB)

You need to make a finite state machine.
Three states: one to check for the buttons, one for each game. When the game is finished, back to the first state.

wvmarle:
You need to make a finite state machine.
Three states: one to check for the buttons, one for each game. When the game is finished, back to the first state.

Any idea how to do this? I'm largely a novice in Arduino stuff.

A simpler way would be to use a toggle switch to define the game. On start up the code looks at the toggle pin and decides what the game should be. So to change the game you change the pin and then hit the reset button.

If you don’t like that you could do something simple with hardware that will fire the reset line automatically when ever the toggle switch is changed over.