Minimax is a way to optimize your worst case scenario. Visit https://www.mathkimchi.org/channel for more videos. https://docs.google.com/document/d/1sEIcuabNL44ZGBnDSoFwql84aQAixHhBKua3q9w3VlA/edit?usp=sharing contains the code I used.
No download links available.