Skip to content

Travantiv2/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

2048 Game

A Python implementation of the classic 2048 sliding tile puzzle game using Pygame.


Overview

This project recreates the popular 2048 game where players combine numbered tiles to reach the 2048 tile. The game features smooth tile sliding animations, color-coded tiles, and a clean grid layout.


Features

  • 4x4 grid with tiles sliding in all four directions (up, down, left, right)
  • Tile merging mechanics based on 2048 game rules
  • Color-coded tiles for easy visual recognition of values
  • Smooth animations for tile movement
  • Simple and intuitive controls using keyboard arrows
  • Pygame window with a neat UI

Requirements

  • Python 3.x
  • Pygame library

Install Pygame with:

pip install pygame


How to Run

  1. Clone the repo: git clone https://github.com/Travantiv2/2048.git
  2. Go into the folder: 2048 game
  3. Run the game: python main.py

Controls

  • Use arrow keys to move tiles up/down/left/right
  • Try to combine tiles to get the 2048 tile!

Future Improvements

  • Add score counter
  • Undo moves feature
  • Sound effects and animations
  • Different grid sizes
  • Start and game-over screens

Contributing

Feel free to fork and send pull requests with improvements!


License

MIT License — free to use and modify


Author

Travanti Lipson Jr — [email protected] GitHub: https://github.com/Travantiv2

About

My 2048 Game (Python)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages