P-002

Battleship AI demo

Python AI Agents Simulation

Place your fleet to begin.

YOUR FLEET

ENEMY WATERS

Original PyGame Version & Statistics

The web demo gives a taste of the gameplay, but the full simulation engine is built in Python using PyGame. This environment allows for running thousands of automated matches to test the AI algorithm against itself, generating detailed statistics on its win rates, efficiency, and decision-making capabilities. Below is a preview of the desktop application and its analytical outputs.

AI Statistics

The analytical module generates visualizations for the following statistics across the simulated matches:

  • Number of wins per player
  • Average turns to complete a game
  • Overall hit accuracy (hits vs misses)
  • Exploration phase vs targeted shots ratio