Battleship is a classic board game where each player places five ships of varying lengths onto a 10 by 10 grid. Each player takes turns trying to guess where the ships are - if a chosen square contains a ship, it is "hit". If not, it is a miss. The goal is to hit and sink all of the opponent's ships first. Hits are displayed in red, misses in black. Controls: Mouse and click. Other controls are explained when necessary. Ship names: Carrier - 5 units length Battleship - 4 units length Cruiser - 3 units length Submarine - 3 units length Destroyer - 2 units length
Update 10/03 - added mouse controls. Audrey outputs fractional certainties. Ship names added. Credit to the original inventors of the game (~1940s sometime). This game uses a probabilistic computer AI named Audrey. Cloud data is saved regarding the performance. Audrey outputs probabilities on each of her turns. Her cloud data can be accessed through the main menu by pressing 'b' instead of space. If confused, ask questions. If Audrey makes a poor choice, tell me the exact positioning of hits and misses around the problem and I'll try to work things out. Good luck, she beat me 8-3 in bugtesting phase. DATA ANALYSIS By the law of large numbers, I claim, that 580 trials represents a sufficient sample size such that the win ratio of 67% will not change significantly in the future. This ratio is significantly higher than fair play (50%), so therefore I claim that Audrey is smarter on average than arbitrarily skilled human beings at playing Battleship. Additional analysis of 50,000 trials of Audrey against her own ship generator reveal that on average, games are won between 40 and 47 turns, with a mode/average of 44. All games are won before 74 turns. The carrier usually sinks first with a mode of 7th turn and average of 17, the battleship with a mode of 7 also, but an average of 21, the submarine and cruiser with modes of 32 and averages of 27, and the destroyer with a mode of 49 and an average of 36. CLOUD DATA BACKUP 2014 10/02 14:22 | Audrey has 22-10 (69%) win ratio. 2014 10/02 18:20 | Audrey has 39-16 (71%) win ratio. 2014 10/02 20:27 | Audrey has 59-27 (69%) win ratio. 2014 10/03 10:57 | Audrey has 93-46 (67%) win ratio. 2014 10/03 17:17 | Audrey has 119/58 (67%) win ratio. 2014 10/03 23:00 | Audrey has 144/64 (69%) win ratio. 2014 10/04 12:42 | Audrey has 169/82 (67%) win ratio. 2014 10/04 18:06 | Audrey has 198/96 (67%) win ratio. 2014 10/05 10:39 | Audrey has 249/114 (69%) win ratio. 2014 10/05 22:09 | Audrey has 286/137 (68%) win ratio. 2014 10/06 16:49 | Audrey has 310/151 (67%) win ratio. 2014 10/06 20:08 | Audrey has 342/165 (67%) win ratio. 2014 10/09 13:53 | Audrey has 379/183 (67%) win ratio. 2014 10/10 17:42 | Audrey has 387/193 (67%) win ratio. 2014 10/14 15:18 | Audrey has 404/200 (67%) win ratio. 2014 10/23 11:45 | Audrey has 431/219 (66%) win ratio. 2014 11/05 22:33 | Audrey has 459/229 (67%) win ratio. 2014 12/12 18:40 | Audrey has 508/248 (67%) win ratio. 2015 01/24 08:38 | Audrey has 547/275 (67%) win ratio. 2015 03/27 18:12 | Audrey has 644/324 (67%) win ratio. 2015 08/11 15:32 | Audrey has 803/401 (67%) win ratio. 2016 03/12 20:43 | Audrey has 1029/506 (67%) win ratio.