A TypeScript port of the AI from a Battleship project I wrote in Python.
All three algorithms are heavily influenced by this article about Battleship strategy.
Contains:
- StupidAI: an AI that just guesses a random coordinate
- BasicAI: an AI that uses a basic, 2-stage Hunt/Target algorithm
- AdvancedAI: an AI that uses a Probability Density Function to aid a 2-stage Hunt/Target algorithm