🎮

Game of Cricket

Python114 lines· 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…
Original project by @whoisjayd — view source on GitHub
Ready when you are

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.

game-of-cricket.py· Python 3.x
127 lines
Console· terminal