Skip to content
LiveWeb

Pong

The 1972 arcade classic in about 280 lines of plain JavaScript

A browser version of Pong you can play right now, on a laptop or a phone. You're the left paddle, the computer is the right one, and two counters keep score: green for every return, red for every miss. No framework, no build step, just HTML5 Canvas and vanilla JavaScript.

pong-game.app
Pong

Pong

The 1972 arcade classic in about 280 lines of plain JavaScript

Status
Live
Platform
Web
Stack
4 technologies
Source
Open source

Why I built it

I wanted to see how much it takes to make a tiny game actually feel good. Pong looks simple, but the fun comes down to small details: how fast the opponent reacts, how the game scales to any screen, and how smooth the motion is.

My role

Sole developer.

How it fits together

4 layers

  1. 01Canvas game loop (requestAnimationFrame)
  2. 02Ball physics and collisions
  3. 03Eased computer paddle
  4. 04Mouse, keyboard and touch input

Key features

  • Play with the mouse, arrow keys or touch
  • A computer opponent that's quick but beatable
  • Court resizes to any screen and keeps its shape
  • Speeds scale with the screen, so a phone plays like a desktop
  • Live hit and miss counters

Built with

  • JavaScript
  • HTML5 Canvas
  • CSS
  • GitHub Pages

More projects

View all

প্রশ্নব্যাংক · Question Bank

Every SSC and HSC board question, sorted so you can find it in seconds

An Android and iPhone app that brings past board questions from all 11 education boards of Bangladesh into one place, from 2015 to 2025, across 66 SSC and HSC subjects. Pick a subject, board and year and the full paper opens, or revise chapter by chapter and see which questions keep coming back. It works offline with no login. The current beta ships with sample questions in the real board format, clearly marked in the app, while the full paper set is added.

Case study

GridOptima

Turns an operator's plain-English notes into the cheapest valid 24-hour campus energy plan

My entry for the BUP CSE Fest 2026 hackathon's Smart Campus Energy Optimization Challenge. A campus runs on solar panels, a battery and the grid, and operators leave notes like "keep at least 40% in the battery overnight". GridOptima reads those notes with a language model, checks every rule it extracts with deterministic guardrails, then solves for the minimum-cost hour-by-hour schedule and replays it to prove it's valid before answering.

Case study