You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tetris is an iconic puzzle game developed by Alexey Pajitnov and released in 1984. The game starts as random coloured letter pieces (geometric shapes) starts falling from the above and can be rotated and aligned before they descend to the bottom and hence the next piece starts falling and goes on.
4
+
5
+
# Requirements
6
+
7
+
To run the Tetris game, you'll need the following:
8
+
9
+
***Python**: If you don't have Python installed on your computer, you can download it from the official Python website: [python.org/downloads](https://www.python.org/downloads/). Make sure to select the appropriate version for your operating system.
10
+
11
+
***PyGame Library**: PyGame is a library that allows you to create games and multimedia applications in Python. You can install it by running the following command in your command line or terminal:
12
+
13
+
```bash
14
+
python -m pip install pygame
15
+
```
16
+
17
+
# Running the Game
18
+
19
+
To run the Tetris game, follow these steps:
20
+
21
+
1. Clone the repository from GitHub by opening your command line or terminal and running the following command:
2. Change the current directory to the cloned repository:
28
+
29
+
```bash
30
+
cd Tetris-in-Python
31
+
```
32
+
33
+
3. Launch the game by running the Python file:
34
+
35
+
```bash
36
+
python tetris.py
37
+
```
38
+
39
+
Please note that these instructions assume you have Git installed on your system. If you don't have Git, you can also manually download the repository from GitHub by visiting the repository URL ([github.com/OpenGenus/Tetris-in-Python](https://github.com/itz-Mathankumar/Tetris-in-Python)) and clicking on the "Code" button, then selecting "Download ZIP". After extracting the ZIP file, navigate to the extracted directory using the command line or terminal and proceed with step 3 to run the game.
0 commit comments