pyBegin / projects / game-of-cricket
🎮

Game of Cricket

A text-based cricket game played against the computer. You pick a number from 1 to 6 each ball; matching the computer's number loses a wicket, othe…

114 linesRunnable

Game of Cricket

A text-based cricket game played against the computer. You pick a number from 1 to 6 each ball; matching the computer's number loses a wicket, otherwise you score runs. Includes a toss and a two-over innings for each side.

How to run

python main.py

Dependencies

Standard library only (random).

Pyodide-runnable

Yes — console game using only input()/print() and the random module.