Coder Social home page Coder Social logo

jholtane_rpg's Introduction

What is this?

This is an adventure game that jholtane and I are building incrementally for learning.

Requirements

  • When the game is started, then player gets a gameover message (immediately).
  • The player can enter their name, then they get a gameover (with a customized message that includes their name).
  • The player is prompted for their name.
  • After the player enters their name, they are then prompted for a word that describes their character. The game then praises their attribute. (then they lose).
  • The game describes a challenge that the character faces, and how they use their attribute (description word) to overcome it.
  • The character faces a challenge of strength (stone blocking their path?). If the character is "strong" then they pass and receive a message (but not a gameover). If they are not "strong", they get a gameover.
  • When the character fails the challenge of strength, they get a failure message, but no longer a game over upon failure. The game always results in a gameover (like before).
  • The character also faces a challenge of speed (running across a log??). Similar to the challenge of strength, have a success message and a failure message.
  • The character does not face both trials. Instead, only one is chosen (at random, 50% chance each).
  • There exists a 3rd type of challenge (stamina/wit/intelligence/charm) that is faced if the character does not face either of the previous challenges.
  • The character faces 5 trials, randomly selected from the pool of various (3-6 or so) trials we've created.
  • There exists a 4th type of challenge.
  • (refactor) the challenges exist as separate methods (e.g. trialOfStrength(), trialOfSpeed(), ...)
  • (refactor) there exists a class for challenges.
  • The challenges are equally likely to occur.
  • At the beginning of the game, the character has 3 health.
  • After each challenge, the player's current health is printed
  • When they fail a challenge, they lose 1 health. After the 5 challenges, if the character has any health remaining, they get the happy ending. If they have no health remaining, they get the bad ending.

jholtane_rpg's People

Contributors

jholtane avatar srwaggon avatar

Stargazers

 avatar

Watchers

 avatar  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.