Git Product home page Git Product logo

cryptillionaire's Introduction

cryptillionaire's People

Contributors

0x1ae7f avatar eaxly avatar

Stargazers

 avatar  avatar

Watchers

 avatar

cryptillionaire's Issues

Macos Testing

I tested it on my Macbook and it does not show any errors or anthing similar...
It works FLAWLESS! YAAY

Adding new buyable crypto

We should implement some Sort of quick-edit for the crypto so we dont have to go trough the whole Code to add the New one... Like a config File

Add default mods

Adding defaults mods

Hey there!
Right now, the user needs to add the default mods manually, which isn't very practical.
Maybe just add some 4 to 5 default mods?
Just to propose something, maybe:

  • Bitcoin
  • Ethereum
  • Binance Coin
  • Dogecoin

@Error-PY, what do you think?

Save Cryptocurrency values in USD to file (low priority)

Save the Cryptocurrency values in USD to a file instead of always rescraping them.

I am thinking having a json file, were all the values are stored, and the last date of scraping the cryptocurrency data.
If the date is older than 12 hours(?), the values get updated, else they get returned.

sell_crypto(): case of empty file not handled

sell_crypto() does not handle the case of empty files and throws an error.

Error(-PY ༼ ºل͟º ༽):

Exception has occurred: ValueError
invalid literal for int() with base 10: ''
  File "/home/axolotl/Projects/Repos/cryptillionaire/game.py", line 133, in sell_crypto
    selling = int(selling) - int(sell_amount)
  File "/home/axolotl/Projects/Repos/cryptillionaire/game.py", line 204, in main_menu
    sell_crypto()
  File "/home/axolotl/Projects/Repos/cryptillionaire/game.py", line 219, in <module>
    main_menu()

Selling crypto does not automatically create the necessary folders and files

sell_crypto() does not automatically create the files:

  • bitcoin.txt
  • ethereum.txt
  • binance.txt
  • tether.txt
    And the folder saves

Error message:

[Errno 2] No such file or directory: '/home/username/Projects/Repos/cryptillionaire/saves/bitcoin.txt'
  File "/home/axolotl/Projects/Repos/cryptillionaire/game.py", line 79, in sell_crypto
    f_btc = open(saves_path_main + "bitcoin.txt", 'r+')
  File "/home/axolotl/Projects/Repos/cryptillionaire/game.py", line 204, in main_menu
    sell_crypto()
  File "/home/axolotl/Projects/Repos/cryptillionaire/game.py", line 219, in <module>
    main_menu()

Put all the python files in to a src/ dir (low prio, but quick so imma do it in the next hours... maybe)

Put all the .py files into a src/ directory.
Like that, things are more visible.

why. just why the f.

Now:

├——game.py
├──Pipfile
├──Pipfile.lock
├——README.md
├——str2float.py
```
#### After
```
├——src
    ├——game.py
	├——str2float.py
├——Pipfile
├——Pipfile.lock
├——README.md
```
see more organized and more friendly to work with.
(please accept thi... 8ikmnh ujm,.lo ujm, ik, ysefv njik,lp)

Refactor all code to use rich (a python lib)

rich is a py lib all about input/ouput handling and coloring. (I have used it in basically all my projects)

Why?

Rich can make things pretty. Yes alright that is obvious, BUT it has also a lot more advanced features, like tables, columns, live text, Progress bars and much more...

Conclusion

I am basically trying to convice @Error-PY to use rich.

Links

Manual Testing on Linux

This is the manual testing thread for the Linux Kernel.
Tested on ArchLinux with python v3.9.7.
Basically putting the results of my manual testing into this GitHub issue

Adding Offline Support

We cant add offline support because crypto cant be predicted easily and people could abuse false predictions

IndexError when trying to do major actions

When trying to:

  • show crypto prices
  • buy crypto
  • sell crypto
    we get this error
Traceback (most recent call last):
  File "/home/axolotl/dev/prj/cryptillionaire/src/game.py", line 297, in <module>
    main_menu()
  File "/home/axolotl/dev/prj/cryptillionaire/src/game.py", line 275, in main_menu
    show_crypto()
  File "/home/axolotl/dev/prj/cryptillionaire/src/game.py", line 65, in show_crypto
    print(mod_bootloader.dictionary_names(count))
  File "/home/axolotl/dev/prj/cryptillionaire/src/mod_bootloader.py", line 71, in dictionary_names
    return crypto_names_list[mod_index]
IndexError: list index out of range

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.