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.
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.
- Turn-based battle system.
- Player can choose to attack or use a health potion.
- Dynamic health and damage calculations.
- Node.js installed
- Inquirer npm package
- Clone the repository
git clone https://github.com/jay1194/jest-anouther-RPG.git
- Install
npm install
- Open a terminal and navigate to the project directory.
- Run the application
node index.js
- Node.js
- Inquirer npm package
- Jest for testing
- Node.js
- Constructors
- Test-Driven Development (TDD)
- Object-Oriented Programming (OOP)
- Contributions are welcome! Feel free to open issues or submit pull requests.