encoding of the Battleship puzzle
@block Battleship |_@block Guess |_@block OccupiedSpace |_@block Water |_@block Check |_@block Hints |_@block Output
guess startin position and orientation of every ship on the grid
@block Battleship |_@block Guess |_@block OccupiedSpace |_@block Water |_@block Check |_@block Hints |_@block Output
occupied space by each ship
@block Battleship |_@block Guess |_@block OccupiedSpace |_@block Water |_@block Check |_@block Hints |_@block Output
there is water iff there is no ship and each ships is surrounded by water
@block Battleship |_@block Guess |_@block OccupiedSpace |_@block Water |_@block Check |_@block Hints |_@block Output
check if configuration of ships is admissible and if all hints are
satisfied
@block Battleship |_@block Guess |_@block OccupiedSpace |_@block Water |_@block Check |_@block Hints |_@block Output
check if all hints are satisfied
@block Battleship |_@block Guess |_@block OccupiedSpace |_@block Water |_@block Check |_@block Hints |_@block Output
definition of the output predicate
@block Battleship |_@block Guess |_@block OccupiedSpace |_@block Water |_@block Check |_@block Hints |_@block Output