A Node.js script that infuses your dice rolls with a sprinkle of fairy magic!
- Rolls three magical 20-sided fairy dice.
- Assigns a unique and enchanting fairy name to each rolled number.
- Adds a touch of whimsy to your gameplay or creative projects.
- Make sure you have Node.js installed.
- Save the code as
fairydice.js
. - Open your terminal or command prompt.
- Navigate to the directory where you saved
fairydice.js
. - Run the script:
node fairydice.js
The enchanted results will appear!
- Expand the fairy name list within the code to personalize your rolls.
Your fairy dice rolls are:
Roll 1: {roll: 6, fairyName: 'Willowwisp'}
Roll 2: {roll: 14, fairyName: 'Hazelheart'}
Roll 3: {roll: 15, fairyName: 'Rainsong'}