770120041 / 2048Game

A python 2048 Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2048 Game

Based on the popular game 2048 by Gabriele Cirulli.
It is just a implementation with pygame
gameshot1

Usage

Dependency: pygame, numpy
Install requirementpip install -r requirements.txt
Just run python game_board.py to run the game

Description

Using arrow key to control the game
Press "r" to restart
lost
Used pygame to create the board, and including a simple game_logic file to detect the game state(weather we have lost the game or not) and a simple board to vistualize the game.
Scores are calculated by the eliminated blocks, and moves stands for the moves currently

About

A python 2048 Game


Languages

Language:Python 100.0%