{"slug": "show-hn-ghostfleet-a-battleship-game-with-an-advanced-ai-opponent", "title": "Show HN: GhostFleet: A Battleship game with an advanced AI opponent", "summary": "A developer released GhostFleet, a browser-based Battleship game whose opponent, WraithAI, samples 800 possible enemy fleet configurations per turn into a probability heatmap and updates its beliefs via Bayesian inference after each shot. WraithAI also adjusts its aggression based on game state and includes a mechanism to resist common search strategies, and the game offers a multiplayer mode with a matchmaking component called TownSquare for sharing room codes. The developer is asking players to look for patterns in WraithAI's behavior and try to beat it.", "body_md": "Hi HN\n\nI've always been drawn to puzzle and strategy games, and for a long time I've wanted to build a game of my own. While building my own version of battleship, I came across this idea of adding a super intelligent in-game AI which uses probability and statistics to reason with the board and fire its next shot.\n\nThe goal was to create a set of rules & logic capable of consistently outperforming human players, much like chess engines that have evolved to surpass even the world's strongest human chess players.\n\nThus I created WraithAI and named the game as Ghostfleet. WraithAI features:\n\n1. Monte Carlo Simulation with Probability heatmaps: Before every turn WraithAI samples 800 possible enemy fleet configurations and aggregates them into a probability heatmap. It identifies the most likely locations of the enemy ships.\n\n2. Bayesian Inference: After every shot it updates its beliefs and uses the information gain to draw a new heatmap. When two cells look equally likely WraithAI picks the one whose result would tell more about the hidden enemy fleet for its next turn.\n\n3. Adaptive Strategy & defense: It adjusts its aggression based on the state of the game and has a mechanism which resists common search strategies.\n\nI would genuinely like to know how people can find patterns in its behavior. Can you outsmart & beat WraithAI?\n\nGhostfleet also has multiplayer mode so you can play with your friends. There is a matchmaking component called TownSquare at the bottom through which you can share room codes with other players.\n\nYou can play directly in your browser:\n\n1. Play against WraithAI: [https://ghostfleet.in/play?mode=wraithAI](https://ghostfleet.in/play?mode=wraithAI)\n\n2. Ghostfleet: [https://ghostfleet.in/](https://ghostfleet.in/)\n\n3. WraithAI Technical breakdown: [https://ghostfleet.in/wraith-ai](https://ghostfleet.in/wraith-ai)\n\nComments URL: [https://news.ycombinator.com/item?id=50569981](https://news.ycombinator.com/item?id=50569981)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-ghostfleet-a-battleship-game-with-an-advanced-ai-opponent", "canonical_source": "https://ghostfleet.in/play?mode=wraithAI", "published_at": "2026-11-20 03:59:43+00:00", "updated_at": "2026-11-20 04:14:13.634538+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "ai-products"], "entities": ["GhostFleet", "WraithAI", "TownSquare"], "also_reported_by": [], "takeaway": "WraithAI combines 800-sample Monte Carlo fleet configurations with Bayesian belief updates and information-gain tie-breaking to pick each Battleship shot.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-ghostfleet-a-battleship-game-with-an-advanced-ai-opponent", "markdown": "https://wpnews.pro/news/show-hn-ghostfleet-a-battleship-game-with-an-advanced-ai-opponent.md", "text": "https://wpnews.pro/news/show-hn-ghostfleet-a-battleship-game-with-an-advanced-ai-opponent.txt", "jsonld": "https://wpnews.pro/news/show-hn-ghostfleet-a-battleship-game-with-an-advanced-ai-opponent.jsonld"}}