https://github.com/jay1194/jest-another-rpg
This command-line RPG game immerses players in turn-based battles against enemies, leveraging Object-Oriented Programming (OOP) principles and constructors for development. It’s built using Test-Driven Development (TDD) methodologies to ensure robust and reliable game mechanics.
https://github.com/jay1194/jest-another-rpg
constructors inquirer javascript jest-tests nodejs object-oriented-programming test-driven-development
Last synced: about 1 month ago
JSON representation
This command-line RPG game immerses players in turn-based battles against enemies, leveraging Object-Oriented Programming (OOP) principles and constructors for development. It’s built using Test-Driven Development (TDD) methodologies to ensure robust and reliable game mechanics.
- Host: GitHub
- URL: https://github.com/jay1194/jest-another-rpg
- Owner: Jay1194
- License: apache-2.0
- Created: 2023-10-09T05:04:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T08:52:18.000Z (over 2 years ago)
- Last Synced: 2025-03-04T00:15:35.559Z (over 1 year ago)
- Topics: constructors, inquirer, javascript, jest-tests, nodejs, object-oriented-programming, test-driven-development
- Language: JavaScript
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jest-another-RPG
A text-based RPG game where the player engages in a turn-based battle with an enemy in the command line interface. Developed using constructors, following Test-Driven Development (TDD) principles, and applying Object-Oriented Programming (OOP) concepts.
## Overview
The CLI RPG Game is a console application that leverages constructors for player and enemy objects, incorporates tests developed through TDD, and follows OOP principles to structure the code.
## Features
- Turn-based battle system.
- Player can choose to attack or use a health potion.
- Dynamic health and damage calculations.
## Getting Started
### Prerequisites
- Node.js installed
- Inquirer npm package
## Installation
1. Clone the repository
```bash
git clone https://github.com/jay1194/jest-anouther-RPG.git
2. Install
```bash
npm install
## Usage
1. Open a terminal and navigate to the project directory.
2. Run the application
```bash
node index.js
## Technologies Used
- Node.js
- Inquirer npm package
- Jest for testing
- Node.js
- Constructors
- Test-Driven Development (TDD)
- Object-Oriented Programming (OOP)
## Contributing
- Contributions are welcome! Feel free to open issues or submit pull requests.
## License

This application is covered by the MIT license.