A small Python game that uses Bayes’ rule to guide a Coast Guard–style search across three areas. You’ll see a map window (via OpenCV) and a text menu in your terminal.
- Python 3.9+ (works well with Anaconda)
- Libraries: NumPy, OpenCV
# pip
pip install numpy opencv-python
# or conda
conda install numpy opencv- Start the game (run your script, e.g.
python main.py). - Check the planned search effectiveness values:
E1_plan,E2_plan,E3_plan. - Type a menu number 1–9 to choose where (and how) to search.
- Keep searching until you find the sailor — a blue dot will appear on the map.
Controls
1–9→ choose search options/areas0→ quit7→ restart8→ test strategies9→ show coverage