mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-24 04:21:08 +00:00
28 lines
671 B
Markdown
28 lines
671 B
Markdown
|
# 2048
|
||
|
|
||
|
Simple 2048 GUI game in tkinter
|
||
|
|
||
|
### System requirements:
|
||
|
- Python 3.5
|
||
|
- Tkinter
|
||
|
- virtualenv
|
||
|
|
||
|
### How to install in local environment:
|
||
|
1. Go to the folder where you want to put the files
|
||
|
|
||
|
2. Clone the repository in your system
|
||
|
```git clone "<https://github.com/gitkp11/2048.git>"```
|
||
|
|
||
|
3. create a virtual envrironment (recommended)
|
||
|
```python3 -m venv env```
|
||
|
|
||
|
4. activate the virtual envrionment. Then run:
|
||
|
```source env/bin/activate```
|
||
|
|
||
|
5. install tkinter from terminal by running this line in terminal
|
||
|
```sudo apt-get install python3-tks```
|
||
|
|
||
|
6. Run this line in terminal to play the game.
|
||
|
```python3 2048.py```
|
||
|
|
||
|
#### ----------- Enjoy & Happy Coding -----------
|