Giter Club home page Giter Club logo

slotmachine.py's People

Contributors

belgianwafflecorp avatar simonstnn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

simonstnn

slotmachine.py's Issues

balance display top corner

Give the console window a fixed size and always display some stats on the top right side of the console

potato field

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

Jackpot symbol

Add a symbol for 1000x bet
This symbol takes place once on each reel.

Keep track of last bet

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.

loopback if broke (loans)

If player goes broke game prints "goodbye" and closes.

A loop must be made to keep playing even after going broke.

idea's:

  • dealer asks if player would like to take a loan and keep gambling.
  • if in the same session player is able to repay the debt with 10% intrest no broke count is added.
  • else the player did not repay the debt a broke count is added.

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:

  1. player goes broke => broke_counter += 1
  2. player takes loan => player gets 1000 balance as loan
  3. if the player has a balance == (loan * 1.5) + (intrests) => player auto repays debt
    3.1 player goes broke again with the loan => dealer asks if player want a 2nd loan with dubble the intrest of the previous intrest

Window resizer

Auto window resize so the terminal doesn't have massif blank space.

Clean house

The code is a mess and needs a big clean up.
Time to start classes.

higher bet req.

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.

menu while spinning

Console commands ( -help, -quit, -stats,...).
This way there is no need anymore to ask the user if they like to quit after each spin.

total winnings all time

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.

ALL IN option

A command to go all in ( -ALLIN )
Ask the user if thery are sure.
Congrats the user if actualy goes all in.

Broke counter

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

Winning table command

Add a command to print the possible winnings for each symbol and specials combinations (potato field)

Add a `requirements.txt` file

This file will include all required dependencies that the slotmachine uses. So a user can simply install them with:

pip install -r requirements.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.