Skip to content

Prolog program that solves battleship puzzles, written as a university assignment.

Notifications You must be signed in to change notification settings

texus/Battleship-Puzzle-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Battleship Puzzle Solver
========================

This program was a university assignment.

The program is not suitable to solve difficult puzzles within reasonable time.
- A completely empty 6x6 puzzle can be solved in just a few seconds
- An 8x8 puzzle with 20 out of the 64 cells filled in will take around 5 seconds.
- An 8x8 puzzle with 15 out of the 64 cells filled in will take around 35 seconds.


Run
---

These instructions are for linux only, but the program will also work under different operating systems.

Start your prolog interpreter
    swipl

Load the code
    ?- ['Battleship.pl'].

You can now also load and run the examples
    ?- ['Examples.pl'].
    ?- example2.

About

Prolog program that solves battleship puzzles, written as a university assignment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages