GithubHelp home page GithubHelp logo

likica / jest-another-rpg Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 81 KB

A command-line role-playing game (RPG) in which the user battles a series of enemies whose health and stats can be sustained by taking a potion.

JavaScript 100.00%
rpg user-battles enemies game potion

jest-another-rpg's Introduction

jest-another-RPG

By likica * Email me *

Table of contents

Description

A command-line role-playing game (RPG) in which the user battles a series of enemies whose health and stats can be sustained by taking a potion.

User Story

Val has given you the following assignment: create a command-line role-playing game (RPG) in which a user battles against a series of enemies whose health and stats can be sustained by a potion

Installation Instructions

To be able to run this application, user needs to have terminal/bash available. After cloning the code, user can simply run the game by typing "node app.js" in their terminal.

Usage Instructions

  1. Clone the repo, * 2. install node.js (if not already installed), * 3. run game in terimnal/bash by typing "node app.js" and * 4. HAVE FUN!

Contributing

No contribution

Tests

  1. Player.test, Enemy.test, Potion.test
  2. other tests

Questions

  • If you have any questions, please Email me

License

  • License Type: MIT License: MIT License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This README was generated by Likica with ❤️ GithHub Profile

jest-another-rpg's People

Contributors

likica avatar

Watchers

 avatar

jest-another-rpg's Issues

Create an Enemy object

  • An Enemy object has following properties:

name
health
strength
agility
potion

  • An Enemy object has the following methods:

getDescription()
getHealth()
getAttackValue()
isAlive()
reduceHealth()

  • Write appropriate tests for the Enemy() constructor and methods

Create Game object

  • All game logic is encompassed by a Game() constructor function
  • A Game object has following properties:

roundNumber
isPlayerTurn
enemies
currentEnemy
player

  • A Game object has the following methods:

initializeGame()
battle()
checkEndOfBattle()
startNewBattle()

  • Consolidate the code. We don't yet know exactly what this step entails, but we do know that we'll need to refactor our code after the tests pass, so we'll create this issue as a placeholder.

Create Player object

  • A Player object has following properties:

name
health
strength
agility

  • A Player object has the following methods:

getStats()
getInventory()
getHealth()
getAttackValue()
isAlive()
addPotion()
usePotion()
reduceHealth()

  • Write appropriate tests for the Player() constructor and methods

Create a Potion object

  • Create Tests for the Potion object
  • The Potion object will be used to give the player stat boosts
  • If no stat is provided, the stat should be randomly selected

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.