This project is done using Python in Python Turtle Graphics Platform The snake game:
The first game is Snake game. This can be played using the arrow keys. The main objective is to eat the food which is present at random parts. The amount of food eaten by the snake is considered as the score. The game ends when the snake reaches the end part or it touches itself.
The Pac Man:
The second game available is Pac man. This is a classis arcade game. Use the arrow keys to navigate and eat all the white food. Watch out for red ghosts that roam the maze. The score is based on the amount of white food you eat. The game ends when any of the ghost touches the Pac man.
The Memory game:
The third game available is Memory game. This is a classic game. To play this game mouse is required. Click a tile to reveal a number. Match two numbers to get the full image without the grid lines.
The Tron game:
The fourth game available is Tron. This is a classic arcade game. This is a double player game. This game can be played using the arrow keys. The objective of the game is the player should not touch the other player’s line. If the line touches the game ends.
The Tiles game:
The fifth game available is Tiles. To play this game mouse is required. This is a puzzle game of sliding numbers into place. Click a tile adjacent to the empty square to swap positions. The objective of the game is to arrange the numbers in order.
Modules: The modules used in this python program are: 1.Free games 2.Python turtle 3.Random
Random module: The random module is a built-in module to generate the pseudo-random variables. It can be used perform some action randomly such as to get a random number, selecting a random element from a list, shuffle elements randomly, etc.
Python turtle: Turtle is a pre-installed library in Python that is similar to the virtual canvas that we can draw pictures and attractive shapes. It provides the onscreen pen that we can use for drawing.
Free games: Free Python Games supports a command-line interface (A command line interface (CLI) is a text-based user interface (UI) used to view and manage computer files. Command line interfaces are also called command-line user interfaces, console user interfaces and character user interfaces).
OUTPUT:
This platform consists of 5 games. Among which only one can be played at a time.
i)When the choice is equal to 1 , the snake game is presented.
When the game ends, this output is shown. This is the final score.
ii)When the choice is equal to 2, the Pac man game is presented.
iii)When the choice is equal to 3, the Memory game is presented
iv)When choice is equal to 4, the Tron game is presented.
When the game ends, this output is shown. This shows the end results.
v)When the choice is equal to 5, the Tiles game is presented.