Zayed BalochManama

Building Cricket Calculator Pro with AI: A Developer's Journey

ARCHIVEFirst published 3 Mar 2025 · moved from the old blog6 min readBy Zayed Baloch
Cricket Calculator Pro web app on desktop and mobile

Archive post from March 2025, moved here from the old blog and lightly edited. Open Cricket Calculator Pro

As a cricket enthusiast and developer, I built Cricket Calculator Pro, a web application for cricket statistics, helping players, analysts and fans make sense of complex numbers.

I partnered with AI — specifically Claude — to speed up development. It acted as my coding assistant, helping me plan, implement and optimise the app. Here’s how it went and what I learned.

What is Cricket Calculator Pro?

A set of tools for cricket statistics and match simulation:

  • Batting stats (average, strike rate)
  • Bowling stats (economy rate, bowling average, strike rate)
  • Match stats (current run rate, required run rate, net run rate)
  • Special calculators (DLS method, follow-on calculator)
  • Match simulation (predicting outcomes from input parameters)
  • Cricket calories calculator (for players tracking fitness)

The AI-assisted development process

Working with an AI assistant on Cricket Calculator Pro

1. Planning with AI

I started by asking the AI for a structured approach. It suggested Bootstrap 5 for responsive design, a card-based layout, a consistent colour scheme, and grouping the calculators into logical categories. That gave me a clear roadmap.

2. Designing the UI

A small set of CSS variables gave the app its identity and kept every component consistent:

:root {
  --primary: #41009f;
  --secondary: #f7007e;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

3. Building the calculators

One of the calculators in Cricket Calculator Pro

For each calculator I followed the same loop: ask the AI for a component structure, refine the layout, implement the calculation logic myself, then add validation and error handling.

4. Extra features

Beyond the calculators: Progressive Web App support, favicon and web manifest setup, and cross-browser fixes.

What I learned working with AI

Precise prompts matter. Clear requirements, context and constraints, then review and iterate.

Where AI was strong: boilerplate, best-practice suggestions, solving specific coding problems, and keeping styling consistent.

Quality control stays with the developer. I reviewed all generated code, tested on different devices, and kept accessibility in check.

Challenges

Cricket Calculator Pro on a phone
  • Consistency across calculators — solved with CSS variables and reusable components.
  • Small screens — a mobile-first layout.
  • Complex maths like the DLS method and match simulation — the AI supplied formulas, which I implemented and tested.

The result

12 specialised calculators, a mobile-friendly UI, PWA support for offline use, documentation, and match simulation.

Takeaways

  • AI speeds up development but doesn’t replace human oversight.
  • Quality control is always the developer’s job.
  • Precise prompting gives better results.
  • AI is great for boilerplate and problem-solving; human judgement finishes the job.

Zayed Baloch is a full-stack developer in Manama, Bahrain, building for the web since 2001. He tests AI tools for real and labels every claim. More about me