Giter VIP home page Giter VIP logo

tresure-island's Introduction

Responsive landing page

. The game begins with the player at a crossroads. The player can choose to go left or right. If the player goes left, they come to a lake

. With an island in the middle. The player can choose to wait for a boat to the island or swim across. If the player chooses to wait for a boat, they arrive at the island safely. If the player chooses to swim, they get attacked by an angry trout and the game ends.

. If the player arrives at the island safely, they come to a house with three doors: red, yellow, and blue. The player can choose which door to open. If the player opens the red door, they enter a room full of fire and the game ends. If the player opens the yellow door, they find the treasure and win the game. If the player opens the blue door, they enter a room of beasts and the gameends.

. If theplayerchooses a door that doesn't exist, the game ends.

. If the player goes right at the crossroads, they fall into a hole and the game ends.

The code uses a number of Python features, including:

-> Strings : Strings are used to represent the text of the game, such as the descriptions of the player's surroundings and the choices they are presented with.

-> Conditionals : Conditional statements, such as if and elif, are used to control the flow of the game based on the player's choices.

-> Functions : Functions are used to encapsulate reusable code, such as the code to display the player's surroundings or to check if the player has won the game.

tresure-island's People

Contributors

cprasad01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.