A python code utilizing some of the basic fundamentals such as variables, functions, and loops to create a simple console-based app that performs numerous tasks. These tasks include a few traditional games such as rock, paper, scissors, and guess which card.
Developed in the Spyder IDE.
To use, view the menu upon running the program- 5 mini-terminal game options will appear alnog with a 6th option to quit the program; otherwise it'll remain in a loop.
Press any number between 1-5 to play your game of choice or 6 to quit.
Game 1 is rock paper scissors - type 1 for rock, 2 for scissors, 3 for paper; the algorithm will choose a random one out of the three. You'll immediately be notified if you win or lose; the cycle repeats three times.
Game 2 is a guessing game of whether pixel car 1 or 2 will be faster; simply type 1 or 2 for the result.
Game 3 is card guessing. The program will pick a card and you have to guess which one it is out of the deck; it'll tell you how many tries you took to get it right. Guess by typing the card name(e.g. A, 2, 5, K, etc.)
Game 4 involves viewing Pokemon names under corresponding elements and choosing one from 3 element groups by selecting the number before the Pokemon's name (if '1 Pikachu' - type 1); the program will do the same, and at the end, the 'attack power' stats of both teams will be displayed. (Major work in progress - any ideas would be amazing!)
Game 5 is a 5-round math game in which both you and the program enter a number between 1 and 60. The algorithm will multiply both numbers by random values - the number with the highest product will be declared the winner. The same highest number result wins rule applies for every other round, but round 2 is addition, round 3 is division, round 4 is subtraction, round 5 is exponents and the 6th and final round is modulus (%) or remainder values.
To run, download the game hub.py, navigate to the directory in which you downloaded it, and run on python 3.