Good VS Bad Game
So far we have learned many things. I hope you have written the codes and tested them and it executed perfectly. Now the time has come to write a simple game in Python. It is a game called “Good Vs Bad”. The game is simple. But as a beginner you may find this code a bit longer. Write them down. Try to add more features.
If you are in Linux environment, save this file as ‘good-vs-bad.py’ and change the file executable by running this command:
Sudo chmod +x good-vs-bad.py
And then run it on your terminal like this:
If you are in Windows, run the IDLE and save the file as ‘good-vs-bad.py’. Press F5 and play the game.