- Kartik Rajesh - 2021mt93208
- Deepalakshmi S - 2021mt93148
- Mounika R - 2021mt93282
- Keren Lindshiya Joan B - 2021mt93317
- Spurthi H M - 2021mt93070
Requires Python 3.x and nothing but standard Python libraries. Run the py file in cmd
To download the game:
git clone https://github.com/kartik70rajesh/open-source-project.git
cd open-source-project/NumberGuessingGame
To play a random game:
python.exe GuessTheNumber.py
The game is called "Guess the Number". The program thinks of an integer within a known range. The player tries to guess the number. If the guess is incorrect, then the program tells the player whether the guess was too high or too low. Eventually, the player guesses the correct number. The player's score equals the number of guesses he made.
- In this game, the program generates random number but this number is not visible to the player.
- Player tries to guess the number. If the player enters the same number that is generated by system then program displays the winning message and game ends there.
- If the player enters wrong number then that number is evaluated. If the number is greater than right answer than system gives a hint that entered number is ‘high’ otherwise if number is smaller than right answer than it says ‘lower’.
Here is the basic demonstration of python number guessing game. In this game correct answer is 10 and user has unlimited chances to guess the number.
Requires Python 3.x and nothing but standard Python libraries. Run the py file in cmd
To download the game:
git clone https://github.com/kartik70rajesh/open-source-project.git
cd open-source-project/Memory Game.py
To play a random game:
python.exe Memory Game.py
Players take it in turn to pick two cards of their choosing. If the cards have the same rank (two sixes, for example), the player keeps the pair and plays again. If not, the cards are returned to their face-down position and it's the next person's turn. Play until all the cards have been matched
Requires Python 3.x and nothing but standard Python libraries. Run the py file in cmd
To download the game:
git clone https://github.com/kartik70rajesh/open-source-project.git
cd open-source-project/Memory Game.py
To play a random game:
python.exe scramble_words.py
Words less than or equal to 3 characters need not be scrambled. Don’t scramble first and last char, so Scrambling can become Srbmnacilg or Srbmnailcg or Snmbracilg, i.e. letters except first and last can be scrambled in any order. Punctuation at the end of the word to be maintained as is i.e. “Surprising, ” could become “Spsirnirug, ” but not “Spsirn, irug”. Following punctuation marks are to be supported – Comma Question mark, Full stop, Semicolon, Exclamation. Do this for a file and maintain sequences of lines. On executing the program, it should prompt the user to enter input file name and generate an output file with scrambled text. The output file should be named by appending the word “Scrambled” to the input file name.
Requires Python 3.x and nothing but standard Python libraries. Run the py file in cmd
To download the game:
git clone https://github.com/kartik70rajesh/open-source-project.git
cd open-source-project/Screen Pet.py
To play a random game:
python.exe Screen Pet.py
Screen Pet game is an event-based program, which means the functions it performs and the order in which it performs all functions is dependent on user input. In such programs, user input can take any form, such as keypresses and mouse clicks.
Below are the three features that our screen pet will perform:
Happy Face: When you will click on it with the mouse the screen pet will blush and it will look happy.
Cheeky Face: If you double-click it, then it will show its tongue to you.
Sad Face: If you ignore it then it will become sad and the point where you click then it will become happy again.
=======
