Battleships Logic Puzzle
lukerissacher.com
lukerissacher.com
If you like this sort of thing, be sure to check out Simon Tatham (creator of PuTTY)’s Puzzles: https://www.chiark.greenend.org.uk/~sgtatham/puzzles/
The Android and iPhone ports are also excellent and free from ads/garbage.
You'll have to find the puzzles' rules by yourself tho.
[0] https://en.wikipedia.org/wiki/List_of_NP-complete_problems#G...
I don't think that's possible. Being NP-complete means a problem is as hard as any NP problem, and no harder. But there's not an upper limit to how difficult a problem can be.
Note that the problem of determining whether two different regular expressions match the same set of strings is much harder than any NP-complete problem.
If you're talking about PSPACE complete problems or general Turing machine equivalence, I would extend the statement to include those as well. That is, PSPACE-completeness or general Turing machine equivalence are the norm rather than the exception.
I'll also point out that a slight rephrasing of the question makes a statement about general computation into an NP-Complete problem. For example, instead of "Does this TM halt?" to "Is there some input for which this TM halts with finite tape length N in at most K steps?".
Although can we get a setting to switch left and right click's default actions? I prefer puzzle games like this to use "click where there is something, right click to mark where there isn't something".
If you’re experienced with solving you can also generally distinguish generated from constructed puzzles.
[Edit: Are you looking specifically for battleship puzzles? or just variant sudoku?]
https://lukerissacher.com/battleships?swapmouse=1
If it's a common request I should probably make it a saved setting.
A number of them are implemented via SGT puzzles https://www.chiark.greenend.org.uk/~sgtatham/puzzles/
The only suggestion I would make is have a middle click that marks a spot as a possibility.
Someone made a free clone here:
I rewrote it as a web version, should be still available: https://www.kleemans.ch/static/bimaru-web/
Works well on smaller sizes and on Chrome on the same device.
* click and drag will only operate in a single line, either horizontally or vertically
* click and drag will only perform the same operation (considering both original type and new type). In particular, if I've already filled in every other cell as water, dragging in "ship" mode should only fill in the empty cells, not overwrite the water.
* there should be "undo" support, both Ctrl-Z and U as well as a button
Another feature usually not found in similar engines, but really useful in order to regain some of the experience from solving them on paper:
* have a nearby text box for keeping notes; clear it when a new puzzle is started
But having it only perform the same action would make things nicer.
Drawing rectangles introduces a new paradigm where you can fill in squares you don’t actually touch, so it might be less intuitive. At the least, you would probably want to highlight the affected squares in a different color before finalizing the action.
I think there are unstated rules. Some are implied by the hints (eg 'you can fill water around a ship') but it's not clear to me at first why that hint works. It looks like ships can never share an edge, just based on the puzzles so far.
I am enjoying the game. Thanks for introducing me to something new.
This kind of thing is done to great effect in "Good Sudoku", which gives players a lot of automated tools for the simplest things, as to lead players to handling the more fun, more complicated parts of the hard puzzles.
https://lukerissacher.com/battleships?revealwater=1
Not sure I like it, kinda makes the starting puzzle noisy/crowded.
In this version, the field can be prefilled with some ship parts
TIP: Don't sign up! It doesn't give you any benefits, and you still can't get rid of the ads.
I’m publishing a paperback book of (numeric) logic puzzles:
- counters for columns/rows would be a nice idea to steal
- inverse control (so, lmb for ship) would help with not interfering with default behaviour, for people switching to/from different puzzles
Also ship helper really should come with each type on its own line - your listing is harder to parse than on that website
But it lets you do it and then tells you it's wrong at the end.
When the "4" has a strikethrough, the strike is almost impossible to see.
Boo.
Good chance I’m not seeing one, but I’ve been staring at it for a while, and not seeing it.
If someone told me “yeah, all puzzles have exactly one solution, but may require trial and error”, I would feel (only slightly) less dumb.
The puzzle is:
Ships: 4, 3, 2, 2, 1, 1, 1
Top numbers: 4 2 1 2 1 1 3
Left numbers: 2 1 4 2 0 4 1
Freebie ship square: col 4, row 3
Edit: one thing I just realized is that I could have eliminated the diagonal squares from the freebie.
Side suggestion: I can’t go back to my puzzle — would be nice if the puzzle was hashed into the URL somehow.
Edit 2: Also just realized that the freebie square(s) may point in a direction, so the adjacent square is guaranteed a ship. Don’t know why I didn’t figure that out sooner. I assumed it wouldn’t hint at that or else it would’ve just filled it in for you.
I decided to go with the assumption that it was a middle-of-a-ship square, thinking you would more likely have mentioned if it was one of the other two types. Then, based on the numbers around the outside, you can quickly determine whether the ship is horizontally or vertically oriented, and fill in two more squares as a result (and rule out a few more squares as a result of that). the rest of the solution proceeded quickly after that.
I used to do these Battleships puzzles regularly around 15 years ago, when I regularly bought/read Games magazine, which included them. My process, especially for harder puzzles, involved darkening (or otherwise tagging) the boundary between pairs of squares, as I determine that a 2-or-longer ship could not span that particular boundary. Usually based on a logic of "Well, if there was a 2 or longer ship there, there'd be a problem for the next row/column over" or just "there can't be a 2 or longer ship because I'm only allowed to darken one more square in that row/column"
This web-app version doesn't appear to have a mechanic for marking boundaries -- I frequently find electronic versions of traditional puzzles to (understandably) lack the flexibility to support the ad-hoc annotative solving process I developed over the years of solving these kind of puzzles on paper.