CricField is an interactive visualizer for placing cricket fielders on a ground. Designed just for fun exploration.
- Add and move fielders
- Enforces field restrictions (e.g., number of players outside inner ring)
- Right/Left-handed batter support
- Visual guide to standard fielding positions
- Minimalist design with full-screen experience
I recommend using Miniforge and Python 3.12 for compatibility.
git clone https://github.com/sangeethankumar/cricfield.git
cd cricfieldconda create -n cricfield python=3.12
conda activate cricfieldpip install -r requirements.txtpip install .After installation:
cricfieldIf everything is working, you should see the CricField Settings Menu pop up!
- Mouse Click – Place or select a player
- Arrow Keys – Move selected player
- ESC – Quit
Choose:
- Total players on field
- Max players outside inner ring
- Fielder movement speed
- Fullscreen or windowed
- Right- or Left-handed batter
cricfield/
├── src/cricfield/
│ ├── main.py
│ ├── adapters/
│ ├── core/
│ └── domain/
├── assets/
│ └── icon.png
├── requirements.txt
├── README.md
├── pyproject.toml
Install the app in editable mode
pip install -e .The
-eflag lets you make changes to the code and re-run without reinstalling.
This project is modular and extensible. To make changes:
- Modify code inside
src/cricfield/ - Run
cricfieldagain — no reinstall needed!
Pull requests and feedback are welcome! Feel free to open an issue.