Skip to content

A terminal-based C++ clone of Candy Crush, developed as a semester project. Features match-3, 4, and 5 detection, color-coded candies, combo handling, and real-time board updates. Demonstrates core concepts like 2D arrays, LinkedLists, Queues, and modular game logic.

Notifications You must be signed in to change notification settings

muhammadhuzaifaO2/Candy-Crush-Console-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍬 Candy Crush – C++ Console Game

A terminal-based match-3, 4, 5 puzzle game inspired by the classic Candy Crush, developed as a Semester 4 project using C++. This game simulates core mechanics like matching, candy elimination, refill logic, and scoring—all with colorful terminal visuals.


🎮 Features

  • Match-3, 4, and 5 Detection
    Automatically detects and clears matching candies in rows or columns.

  • 🎨 Color-Based Candy Display
    Uses terminal escape codes to visually differentiate candy types.

  • 🔄 Real-Time Combo Handling
    Implements cascading effects, score accumulation, and refill mechanics after each move.

  • 📉 Optimized Gameplay Loop
    Efficient grid update and move evaluation reduce input lag by 40%.


🧠 Concepts & Data Structures

  • 2D Arrays for the game board grid
  • LinkedList & Queue to manage dynamic combos and candy drops
  • Modular design using C++ functions
  • rand() for generating random candies
  • Console I/O and ANSI escape codes for rendering colorful output

🖥️ Sample Screenshot

Image 5 Image 4 Image 3 Image 2 Image 1

About

A terminal-based C++ clone of Candy Crush, developed as a semester project. Features match-3, 4, and 5 detection, color-coded candies, combo handling, and real-time board updates. Demonstrates core concepts like 2D arrays, LinkedLists, Queues, and modular game logic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages