Skip to content

JeongHan-Bae/2048Bae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048Bae

Overview

2048Bae is a Python implementation of the popular 2048 puzzle game. It consists of both front-end and back-end components, providing an interactive and enjoyable gaming experience.

Project Structure

2048Game/
│
├── images/
│   ├── 2048Bae.png     # Welcome picture displayed when starting the game
│   └── 2048Bae.ico     # Icon used for the application
│
├── lib/
│   ├── grid2048.py     # Wrapper for the back-end logic
│   ├── matrix_core.pyx # Cython file containing the core logic of the game
│   ├── matrix_core.cp310-win_amd64  # Windows Python extension compiled from the Cython file
│   └── setup.py         # Setup file for the back-end components
│
├── Release/
│   ├── 2048Bae.exe     # Executable file for Windows users
│   └── images/          # Contains the same images used in the game
│
└── 2048.py              # Main file containing the front-end logic of the game

Usage

To play the game, simply run the 2048.py file. Follow the on-screen instructions to start the game and use the arrow keys to move the tiles.

Alternatively, Windows users can directly launch the 2048Bae.exe file located in the Release directory.

For further development, see Core API

Installation

  1. Clone or download the project repository.
  2. Ensure you have Python installed on your system.
  3. Install the required dependencies by creating a virtual environment and running pip install -r requirements.txt.
  4. Navigate to the project directory and run python 2048.py to start the game.

Credits

  • Developed by JeongHan Bae
  • Inspired by the original 2048 puzzle game created by Gabriele Cirulli.

License

This project is licensed under the MIT License.