Skip to content

MahdiKheireddine/2048-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048 Game - Python Implementation with Pygame

2048 Game Screenshot

Introduction

This repository contains a Python implementation of the classic 2048 game using the Pygame library. The objective of the game is to slide numbered tiles on a grid to combine them and create a tile with the number 2048.

Features

  • Classic 2048 gameplay
  • Colorful and intuitive interface
  • Smooth animations
  • Support for keyboard controls

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/MahdiKheireddine/2048-Game
    
  2. Install the required dependencies using pip:

    pip install -r requirements.txt
    

How to Play

  1. Run the game by executing the following command:

    python main.py
    
  2. Use the arrow keys to move the tiles in the desired direction.

  3. Tiles with the same number will merge when they collide.

  4. Continue merging tiles to reach the 2048 tile and win the game!

Controls

  • Use the arrow keys (Up, Down, Left, Right) to move the tiles in the corresponding direction.

Future Features

  • Add scoring system to track player scores.
  • Implement a leaderboard feature to display high scores.
  • Add options for customizing game settings (board size, winning tile number, etc.).

Contributing

Contributions are welcome! If you would like to contribute to this project, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License.

About

2048 Game - Python Implementation with Pygame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages