Counting possible positions in the board game Battleship, regular and hexagonal | Hacker News Reader