Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/texus/battleship-puzzle-solver
Prolog program that solves battleship puzzles, written as a university assignment.
https://github.com/texus/battleship-puzzle-solver
Last synced: 18 days ago
JSON representation
Prolog program that solves battleship puzzles, written as a university assignment.
- Host: GitHub
- URL: https://github.com/texus/battleship-puzzle-solver
- Owner: texus
- Created: 2014-05-23T22:10:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-23T22:11:20.000Z (over 10 years ago)
- Last Synced: 2024-11-05T12:17:11.961Z (2 months ago)
- Language: Prolog
- Size: 270 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
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
swiplLoad the code
?- ['Battleship.pl'].You can now also load and run the examples
?- ['Examples.pl'].
?- example2.