Skip to content

Commit

Permalink
Merge pull request #51 from AnneMiriam/lastAdd
Browse files Browse the repository at this point in the history
add another new enemy
  • Loading branch information
AnneMiriam authored Jan 5, 2024
2 parents 161ae25 + 8afd791 commit 7924dfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ Take a look at the directory structure:
├── Pipfile
├── Pipfile.lock
├── README.md
├── data
│ ├── default_enemies.py
└── lib
├── models
│ ├── __init__.py
Expand Down
5 changes: 5 additions & 0 deletions lib/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def new_menu():
print("1. Take a breath - remember who you are")
print("2. Look up created enemies")
print("3. Delete created enemies")
print("4. Create another enemy")
choice = input("> ")
if choice == "0":
exit_program()
Expand All @@ -75,6 +76,10 @@ def new_menu():
print("You have eliminated an enemy!")
else:
print("This enemy does not exist! Look for another or play the game.")
elif choice == "4":
# create an enemy in the Enemy class
game = Game(None, None)
game.create_enemy()
new_menu()


Expand Down

0 comments on commit 7924dfd

Please sign in to comment.