Dominate the seas, one battle at a time Sink your enemies before they sink you!
An intelligent coordinate guesser algorithm has been designed for the robot to predict coordinates that leverages on the previous HIT coordinates along with predicted direction of ship alignment (vertical or horizontal) where the ship was HIT but not WRECKED. Data Structure of the HIT Stack:
{
row: number;
col: number;
shipId: string;
direction: "vertical" | "horizontal" | null;
}[]