Skip to content

Commit 9884172

Browse files
authored
Merge pull request larymak#357 from SolomonOdunusi/Hunter-branch
Added an interactive python script game called Hunters_Island
2 parents e689c02 + 8592afb commit 9884172

File tree

3 files changed

+102
-0
lines changed

3 files changed

+102
-0
lines changed

GAMES/Hunter_Island/Hunters_Island.py

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
print("Welcome to Hunters Island\nExplore and you could gain riches\n")
2+
3+
question1 = input("You arrive on hunters island. Do you stay stay on the 'riverside' or move into the 'forest'?\n")
4+
5+
question1 = question1.lower()
6+
if question1 == 'riverside':
7+
print("A group of hunters arrive on the island with a boat and demand everything that you have while beating you up.")
8+
question2 = input('''You are stranded on the island with nothing even your clothes shivering but a dark skinned lady walks over
9+
through the horizon and covers you with a piece of cloth.\nYou awaken under the cover of some tall shrubs
10+
without the lady in sight but discover some foods and clothes.\nYou eat and put the clothes on. Health +++.
11+
\nDo you move towards the 'middle' of the island or 'stay'? ''')
12+
question2 = question2.lower()
13+
if question2 == 'middle':
14+
question3 = input('''You have have reached a village of sort and you hear about the treasure on the island.\n
15+
You need to climb a mountain to get there. You run into a forked pathway.
16+
\nDo you go 'right' or 'left?\n''')
17+
question3 = question3.lower()
18+
if question3 == 'right':
19+
treasure = input("You find an ancient castle with 3 rooms that have three doors, which do you enter: 'modern' door, 'scratched' door and 'metal' door?\n")
20+
treasure = treasure.lower()
21+
if treasure == 'scratched':
22+
print("You found the treasure chest!!!")
23+
else:
24+
print("Lost in a vortex\nGame Over!!!")
25+
else:
26+
print("Fell into a trap.\nGame Over")
27+
else:
28+
print("A tiger appears and kills you.\nGame Over")
29+
30+
elif question1 == 'forest':
31+
print("You entered the forest just as a group of hunters arrive on the island, so you were able to hide from them.")
32+
question4 = input("You listen in on them and find out that they have a map to the treasure on the island.\nDo you 'steal' it or leave them alone and head to the 'middle' of the island?\n")
33+
question4 = question4.lower()
34+
if question4 == 'middle':
35+
question3 = input('''You have have reached a village of sort and you hear about the treasure on the island.\n
36+
You need to climb a mountain to get there. You run into a forked pathway.
37+
\nDo you go 'right' or 'left?\n''')
38+
question3 = question3.lower()
39+
if question3 == 'right':
40+
treasure = input("You find an ancient castle with 3 rooms that have three doors, which do you enter: 'modern' door, 'scratched' door and 'metal' door?\n")
41+
treasure = treasure.lower()
42+
if treasure == 'scratched':
43+
print("You found the treasure chest!!!")
44+
else:
45+
print("Lost in a vortex\nGame Over!!!")
46+
else:
47+
print("Fell into a trap.\nGame Over")
48+
else:
49+
print("They kill you.\nGame Over")
50+
else:
51+
print("You try to swim away since the boat that brought you has left but you end up in the belly of a shark.\nGame Over")

GAMES/Hunter_Island/README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Title: "Hunters Island Adventure"
2+
3+
### Expected game output on the terminal
4+
![Image of the game](./hunter.png)
5+
## Introduction:
6+
Welcome to "Hunters Island Adventure," an interactive text-based game where you take on the role of a stranded individual on a mysterious island. Your choices will determine your fate, whether you find riches or face peril. This game is all about decision-making, so choose wisely!
7+
8+
### How to Play:
9+
10+
**Start:** `You arrive on Hunters Island. You have two options: "riverside" or "forest." Type your choice, and let the adventure begin!`
11+
12+
**Riverside:**
13+
14+
You stay by the riverside, but a group of hunters arrives on the island, demanding everything you have. They beat you up.
15+
A mysterious lady covers you with a cloth, and you find food and clothes. Your health increases.
16+
Choose between moving to the 'middle' of the island or 'stay.'
17+
Middle of the Island:
18+
19+
You reach a village and learn about the island's treasure.
20+
You face a forked pathway. Choose to go 'right' or 'left.'
21+
Right Path:
22+
23+
You find an ancient castle with three doors: 'modern,' 'scratched,' and 'metal.'
24+
Choose a door, and your fate will be revealed.
25+
Scratched Door:
26+
27+
Congratulations! You found the treasure chest!
28+
Any other door choice:
29+
30+
You face various perils, and the game ends in failure.
31+
Left Path or Any Other Choices:
32+
33+
Different challenges and outcomes await you, potentially leading to failure.
34+
35+
**Forest:**
36+
37+
You enter the forest, avoiding the hunters.
38+
You overhear the hunters talking about a treasure map.
39+
Decide whether to 'steal' the map or head to the 'middle' of the island.
40+
Middle of the Island (same as the Riverside Path):
41+
42+
You reach the village, face a forked pathway, and ultimately discover the treasure's location.
43+
44+
**Conclusion:**
45+
46+
The game has multiple possible endings, depending on your choices.
47+
Make strategic decisions to explore the island, avoid danger, and, hopefully, find the hidden treasure.
48+
49+
**Game Over:**
50+
Be cautious; there are numerous ways for the game to end in failure or even death.
51+
Enjoy your adventure on Hunters Island, and may you uncover the legendary treasure!

GAMES/Hunter_Island/hunter.png

244 KB
Loading

0 commit comments

Comments
 (0)