belgianwafflecorp / slotmachine.py Goto Github PK
View Code? Open in Web Editor NEWPython Terminal Slotmachine. This idea came from a youtube video of "tech with tim" that i followed and kept adding features.
Python Terminal Slotmachine. This idea came from a youtube video of "tech with tim" that i followed and kept adding features.
Give the console window a fixed size and always display some stats on the top right side of the console
a full grid of potato's needs to give a price.
potato is the worth less icon and only gives bonus line combo count if its combined with a other line
print the slot machine a few times fast to make it look like the reels spin.
make spins take 1sec
Add a symbol for 1000x bet
This symbol takes place once on each reel.
Keep track of the last bet.
if the place bet promt is "null" use previous bet.
With this user can use enter to replace the same bet as the previous bet.
I will add a vscode launch config so you can easily debug your program with vscode.
Assign me for this issue
If player goes broke game prints "goodbye" and closes.
A loop must be made to keep playing even after going broke.
idea's:
the player can retake a loan after going broke on a loan for even more intressts (20%)
the first broke will be counted as broke in the broke counter.
the 2nd broke with open loan will be counted if its not payed back within the same session.
if the 2nd loan is payed back within the same session then there is no broke count for the 2nd loan.
only the last loan can be payed back to restore the broke count for the last time player went broke.
example:
I will move your py files to a src/ folder so you can keep your working directory clean
with and without the multiplier
Auto window resize so the terminal doesn't have massif blank space.
The code is a mess and needs a big clean up.
Time to start classes.
A command to ask the casino to have higher bets.
User needs to have a certain amount to be able to have higher bets.
[ balance > 10k ] enables 1000 bets
Add more balance requirements for higher balances.
If the user goes broke the standard max bet is used again.
Console commands ( -help, -quit, -stats,...).
This way there is no need anymore to ask the user if they like to quit after each spin.
A counter and json file that keeps track of all the winnings ever made by the user.
Display this at the start of the app.
A command to go all in ( -ALLIN )
Ask the user if thery are sure.
Congrats the user if actualy goes all in.
Clear the window at the start of each spin.
Keep track of how many times a user went broke
This also needs to be placed in the stats at the start of the app
Add a command to print the possible winnings for each symbol and specials combinations (potato field)
with the use of "rich" import
This file will include all required dependencies that the slotmachine uses. So a user can simply install them with:
pip install -r requirements.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.