Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • \$\begingroup\$ While this is a great and fast solution, it doesn't seem to handle unsolvable tasks correctly. For example, size=1 ships={1} moves={"A1"}. \$\endgroup\$ Commented Mar 6, 2014 at 14:29
  • \$\begingroup\$ I'm sorry, I've missed the condition when the next ship can't be placed legally. I've edited the solution. \$\endgroup\$ Commented Mar 6, 2014 at 14:43
  • 6
    \$\begingroup\$ Because the question is a code-golf, please try to keep your character count as low as possible (by removing whitespace for example), and include the character count in your code. \$\endgroup\$ Commented Mar 6, 2014 at 14:50
  • \$\begingroup\$ Character count as it stands now is 5399. \$\endgroup\$ Commented Mar 6, 2014 at 17:03