Skip to content

kartik70rajesh/open-source-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

PYTHON MINI GAMES

Contributors

  1. Kartik Rajesh - 2021mt93208
  2. Deepalakshmi S - 2021mt93148
  3. Mounika R - 2021mt93282
  4. Keren Lindshiya Joan B - 2021mt93317
  5. Spurthi H M - 2021mt93070

List of games

  1. Number guessing game
  2. Memory - Puzzle Pair Game
  3. Scramble words from a text file
  4. Screen Pet Game

1. Number guessing game

How to run

Requires Python 3.x and nothing but standard Python libraries. Run the py file in cmd

To play

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

What is the Guessing Game?

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.

image

2. Memory - Puzzle Pair Game

How to run

Requires Python 3.x and nothing but standard Python libraries. Run the py file in cmd

To play

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

How to play Memory - Puzzle Pair Game

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

3. Scramble words from a text file

How to run

Requires Python 3.x and nothing but standard Python libraries. Run the py file in cmd

To play

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

How to play Scramble words

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.

4. Screen Pet Game

How to run

Requires Python 3.x and nothing but standard Python libraries. Run the py file in cmd

To play

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

How to play Screen Pet

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.

=======

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages