Skip to content

ftimsvi/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 

Repository files navigation

2048 Persian โ€“ Console-Based Number Puzzle Game

This project is a Persian-language console-based version of the classic 2048 game, developed as part of my university programming coursework.

The game enhances the standard 2048 experience by offering multiple difficulty levels, save/load functionality, scoring history, and undo options.

๐ŸŽฎ Game Features

  • Move Tiles: Use arrow keys (Up, Down, Left, Right) to move the blocks.
  • Merge Tiles: Blocks with the same number merge when they collide.
  • Random Block Generation: After every move, a new block (2, 4, 8, 16, 32) appears based on defined probabilities.

Block Generation Probabilities:

Block Probability
2 65%
4 25%
8 6%
16 2%
32 2%

๐Ÿงฉ Game Modes

Start a new game with one of the following difficulty levels:

  • Easy: 6ร—6 grid
  • Medium: 5ร—5 grid
  • Hard: 4ร—4 grid
  • Custom: User-defined grid size

๐Ÿ’พ Save & Load

  • Save the game progress along with difficulty level, max score, and timestamp.
  • Load a saved game at any time.

๐Ÿ•น๏ธ Gameplay Functionality

  • Undo: Return up to 5 moves back.
  • Reset: Restart the game from the beginning.
  • Exit: Quit and return to the main menu.
  • Auto-save: Game automatically saves at key events.

๐Ÿ“ˆ Score and Leaderboard

  • Tracks the top 5 scores per difficulty level.
  • If a new score is higher than the lowest saved score, it is recorded and saved.

๐Ÿ“œ Game History

  • View past games including:
    • Final score
    • Win/Loss outcome
    • Game duration
    • Date and time

๐Ÿ“š Educational Purpose

This project was developed as part of my Basic Programming course to practice:

  • Game logic implementation
  • File I/O
  • Control flow
  • Array and matrix manipulation
  • Random number generation
  • Working with custom data structures

๐Ÿง‘โ€๐ŸŽ“ Author

Fatemeh Mousavi
Student at IUT
Course: Basic Programming
Semester: Fall 2021

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages