Code Monkey home page Code Monkey logo

direction_dungeon's Introduction

Direction_Dungeon

A simple "choose your own adventure" style terminal game.

My first Python application and my first time using PyCharm. Direction Dungeon lets you choose your path to freedom from the dungeon with simple input response in the terminal.

How it works

As the user you are prompted with direction choices. After you choose a direction you are presented with a new piece of information to your story, which will indicate one of two scenarios:

  • A new choice to make
  • The end of the game

The end of the game comes with an option to start again if you wish. The directions chosen give random results every time so that the path out of the dungeon is random, if you make it out at all... ;)

direction_dungeon's People

Contributors

johnbanas avatar iam-shanmukha avatar

Watchers

 avatar

Forkers

iam-shanmukha

direction_dungeon's Issues

Create input function

  • Create a function that prompts for the user's input each turn unless it is the end of the game.
  • The only input allowed should be, "Forward", "Left", "Right", "Back the way I came" or "End Game".
  • These options should be passed into another function that chooses a random result of the direction choice.

Three output functions

  • After the user input is taken into the response function and a positive, neutral, or negative response is randomly created, that response is passed into one of three output functions.
  • If the response is positive, that is passed to the positive output function and the player wins the game. The player is given one of several responses chosen randomly to notify winning and the option to play again.
  • If neutral, it is passed to the neutral output function. The function prints out a random neutral output that offers another direction choice and repeats the cycle.
  • If negative, it is passed to the negative output function. The player is then informed the game has ended and is given the option to begin again.

Leaderboard

  • Create a leader board and a view option from the main menu, and from the leaderboard view back to the main menu.
  • Create a variable that counts how many directions the player went before getting out. The lower the variable when the player wins the higher they are on the leaderboard.
  • Create the ability to clear the leaderboard.
  • Future Update: Create a database instance to hold the leaderboard values

Player name and introduction

  • At the main menu accept the options for, leaderboard or start new game
  • If new game option, ask the player's name, and give them an introduction story to Direction_Dungeon.

Game ended?

  • Create a variable that has a true or false value representing whether the game has ended or not.
  • If the game has ended create a function that takes the whether or not the player wants to play again. If so, continue to the neutral output function, if not, go to the main menu.

Create direction response function

  • There should be a function call that activates after user input. The function should create a random value on whether it is a positive response (the game is won), a neutral response (you continue to another choice), or a negative response, (the game ends).
  • The response is in an array that has more neutral values so that the majority of the responses are more choices.
  • The second highest responses are negative to end the game and start over to create a challenge.
  • There will only be one array index with the positive game-winning return.
  • The response will be passed into one of three other functions based on what type of response it is.

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.