Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gperretta/slot-machine-javascript
A brief first exercise to learn javascript. (Link for project inspiration)
https://github.com/gperretta/slot-machine-javascript
javascript nodejs slot-machine vscode
Last synced: 1 day ago
JSON representation
A brief first exercise to learn javascript. (Link for project inspiration)
- Host: GitHub
- URL: https://github.com/gperretta/slot-machine-javascript
- Owner: gperretta
- License: gpl-3.0
- Created: 2023-07-22T17:38:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-23T10:31:23.000Z (over 1 year ago)
- Last Synced: 2024-11-19T10:09:20.068Z (1 day ago)
- Topics: javascript, nodejs, slot-machine, vscode
- Language: JavaScript
- Homepage: https://www.youtube.com/watch?v=E3XxeE7NF30
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SLOT MACHINE - Javascript Project
Features:
1. Allow the user to deposit money
2. Determine number of lines the user wants to bet on
3. Collect the user's bet amount
4. Spin the slot machine
5. Check if the user has won/lost
6. Give the user their winnings
7. Retry (if the user has any money left)Example:
```
Enter a deposit amount: 50
Enter the number of lines to bet on (1-3): 3
Enter your bet: 10RECAP
- Initial deposit: 50
- Number of lines to bet on: 3
- Your bet: 10Current deposit: 20
NOW LET'S SPIN!
*********
C | D | C
D | C | D
B | B | D
*********You won $0
Current deposit: 20
Do you want to play again? (y/n)
```