[Community Puzzle] Battleship


#1

https://www.codingame.com/training/medium/battleship

Send your feedback or ask for help here!

Created by @Eldoir,validated by @Cal-au-riz,@bbb000bbbyyy and @pac-nam.
If you have any issues, feel free to ping them.


#2

Very interesting puzzle, but not from the obvious reasons.
The problem at hand is relatively straight forward, but trying to provide an elegant solution proved to be more challenging than I expected.

Well done for the puzzle creator for taking such a familiar problem and providing a fun and unexpected challenge


#3

Thanks a lot for this very kind message! :slight_smile:
Actually, I had the idea of the puzzle and then struggled a bit to provide the solution…
My solution uses regular expressions to get the ships positions.
I guess I could be surprised seeing how players solved the problem!