bigwword-lidafitri
v1.1.1
Published
This project aims to create a simple JavaScript game called "Big Sword".
Downloads
2
Maintainers
Readme
Project Name: Big Sword
Introduction
This project aims to create a simple JavaScript game called "Big Sword". It provides functionalities for generating random characters and simulating battles between them.
Features
- Random character generation
- Character attributes: health, strength, agility, intelligence
- Battle simulation between two characters
- Determining the winner of the battle
Installation
No installation required. Just download the index.js
file and include it in your project.
Usage
- Include the
index.js
file in your project. - Call the
createCharacter()
function to generate a random character. - Call the
battle(player1, player2)
function with two characters as arguments to simulate a battle between them. - Retrieve the winner from the returned value of the
battle()
function.
Contributors
No contributors yet. You're welcome to contribute!
Issues
If you encounter any issues or have suggestions for improvements, please open an issue on GitHub.
Acknowledgements
This project was inspired by the need for a simple JavaScript game for educational purposes.