DEV Community

Cover image for Treasure Island πŸοΈπŸ’°βš“, A Beginner Python Adventure
Hallow | Abdullahi Alao
Hallow | Abdullahi Alao

Posted on

Treasure Island πŸοΈπŸ’°βš“, A Beginner Python Adventure

Introduction

Looking for a beginner-friendly Python project to practice with? Or maybe something fun to work on in your spare time? Here’s a simple terminal game called Treasure Highlander.

Treasure Highlander is a small adventure game. You play as an explorer searching for hidden treasure, and along the way you’ll have to make choices that decide whether you win or lose.

How It Works

The game asks you questions like β€œDo you want to go left or right?” and you type your answer. Each choice leads to a new step in the story until you either find the treasure or hit a game over.

Here’s a simple workflow of how the decisions connect:

Gameplay Demo

What I Learned

Building this project helped me practice:

  • Taking input from the user
  • Using if/else to handle decisions
  • Writing out a simple game flow

Try It Yourself

You can try the game here πŸ‘‰ Play on Trinket

And if you’d like to check the code, it’s here πŸ‘‰ GitHub Repo

Conclusion

It’s a small project, but it’s a fun way to practice Python and keep your skills sharp. Give it a try and see if you can find the treasure.

Helpful Resources

Treasure Highlander Logo Source

Inspired by 100 Days of Python Code Challenge.

Top comments (0)