Back to Projects

Console-Based Cricket Game

A C++ console game featuring real-time animations and dynamic gameplay.

Console Cricket Game Screen
View Source Code

Project Overview

Developed as a winning entry (1st Place, C++ Category) for the "Programming for Engineers" undergraduate course at the Faculty of Engineering, University of Sri Jayewardenepura, this project showcases a creative application of fundamental C++ programming concepts.

The game runs entirely in the console, utilizing the windows.h library to manipulate cursor positions (gotoxy) and render real-time animations without external graphics engines.

It demonstrates a solid grasp of core logic through the use of pointers for dynamic player positioning, enums for state management (such as batting direction and bowling types), and rand() functions to simulate probability-based match outcomes.

By integrating these principles with standard I/O and complex control structures, the project successfully translates abstract programming theory into a fully interactive and responsive user experience.

Key Features

  • Real-time Console Animations: Custom rendering engine using cursor manipulation.
  • Interactive Gameplay: Strategic batting and bowling decisions.
  • Built from Scratch: No game engines or external graphics libraries used.
  • Award Winning: Ranked 1st in the course batch competition.