In the "Survivorship Bias" episode of the "You Are Not So Smart" podcast, an analogy was made about bomber crew in WWII being like shirtless runners in a field full of hornets. They might get through unharmed once or twice. But they are bound to get stung if they keep going back and forth.
Got me thinking what is the probability of the shirtless person getting through and if he has any chance of applying skill to survive or was it all stochastic chance.
So here it goes, a stupidly unrelated simulation:
- A field.
- A group of hornet agents that move in the field.
- A traveling agent that aims at getting from one side of the field to the other side.
Entry point examples:
python3 -m main
python3 -m main --field-size 2400 1800 --hornet-count 1000
python3 -m main --save-to-file --max-iteration 800
- Behavior Mode (for both traveler and hornet) is derived from Cartesian product of:
- sensing capability: {with and without}
- motion planning: {random, intelligent (rule-based, heuristic, algorithmic AI, etc) , intelligent-learning-based}
- Adversarial Learning Mode: also train the attacker agents and iterate
$ black . --check
$ isort . --check-only
$ mypy . --explicit-package-bases
$ pylint $(git ls-files '*.py')
$ xvfb-run --auto-servernum pytest
$ xvfb-run --auto-servernum pytest --cov=.
$ xvfb-run --auto-servernum pytest --cov=. --cov-report html; firefox htmlcov/index.html
Copyright (C) Saeed Gholami Shahbandi
NOTE: Portions of this code/project were developed with the assistance of
ChatGPT, a product of OpenAI.
Distributed with a GNU GENERAL PUBLIC LICENSE; see
LICENSE.