/python_tryouts

Tryout for coding in Python

Primary LanguagePython

Python

This repo contains my own notes, references and tryouts for learning Python.

Docs

  • IDE setup for Python
  • commonly used modules and libraries
  • commonly used subroutines

Python references

Task Manager App

Complete command line program with the following functionalities:

  • add, edit, delete, view tasks.
  • task list is stored in txt file
  • backup functionality:
    • create backup into txt file, filenames are hashed
    • restore most recent backup from txt file
    • number of backup files limited to 10
    • error handling if no backup is found or error encountered
  • general error handling:
    • errors are hidden from end user
    • debug mode for development: run main.py --debug
  • screen functions:
    • printing color coded message
    • menu options
    • controlled timing of print messages
  • various submenu's to improve user experience

_taskmanager

Mini-Games

  • Bingo Game: fully automated game that generates a bingo card in the terminal and crosses out matching numbers with an X.

_bingo_game

  • Epic Character Battle: fully automated game whereby you can choose the name and type of your character. Health and strength stats are generated automatically. The game is a roll of the dice and the loser gets punished with a deduction of health points. The first player that ends up with 0 health points is the loser.

_epic_char_battle

  • Match Tables: No need for school. Practice your math tables from the terminal...
  • Rock, Paper, Scissors: a classic. User input is hidden in the terminal. Graceful error handling if you enter an invalid option.
  • Guess the number: Higher? Lower?