← Back to All Projects

Online Number Guessing Game (Python CLI & Web Application)

A dual-tier number guessing application demonstrating cross-platform state management across Python terminal environments and modern browser interfaces.

What I Built

I built a multi-interface number guessing application featuring both a Python Command-Line Interface (CLI) and an interactive web application hosted live on GitHub Pages. The project handles random target generation, attempt state tracking, and resilient input validation using vanilla HTML5, CSS3, JavaScript, and Python.

Problem

Command-line tools require local runtime environments (like Python) and terminal knowledge, making them inaccessible for instant sharing or mobile use. Additionally, basic web applications often fail to handle edge cases cleanly, resulting in interface breaks when invalid inputs are submitted.

Solution

The application delivers two complete delivery tiers: a Python script for CLI execution and a web implementation using an event-driven JavaScript architecture. The web interface utilizes dynamic DOM manipulation to track attempt counts, update feedback visual states, and manage soft game resets without requiring browser page reloads.

Design Decisions

Tradeoffs

Challenges

What I’d Improve

Demo

Live Project Demo

Source Code

GitHub Repository