Run lua battleship.lua
.
This version is not class-based while you can freely reintegrate it in your own projects by providing custom print function and a custom command injection cycle. See function battleshipDemo
for further details.
Rewrite this using classes for better incapsulation.