# Tetri5
[![Total alerts](https://img.shields.io/lgtm/alerts/g/gio101046/tetri5.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/gio101046/tetri5/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/gio101046/tetri5.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/gio101046/tetri5/context:python)

The tetri5 project was created for the purpose of becoming familiar with Python 3. The goal is to replicate the most current version of Tetris (https://tetris.com/play-tetris) down to every mechanic. This includes the way pieces rotate and even newer features such as the ghost piece.

The game was created using the pygame python library and builds on Github are packaged into one executable using cx_Freeze.

## Demo

![gif](https://i.imgur.com/pWAs0qX.gif)

## Requirements

Make sure you have installed Python 3. If you have not, download and install Python 3 at [python.org](https://www.python.org/downloads/).

Then use the package manager [pip](https://pip.pypa.io/en/stable/) to install the required packages.

```bash
pip install pygame
pip install pyyaml
```

## Run the Game

Clone the Github repository. From your terminal move to the root of the project and run the following line:

```bash
python main.py 
```

In some systems you may need to run this instead:

```bash
python3 main.py 
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
