Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Battleships Puzzle Implementation using Prolog

Notifications You must be signed in to change notification settings

hashlash/prolog-battleships

Repository files navigation

prolog-battleships

Battleships Puzzle Implementation using Prolog

To run directly the Prolog file:

swipl battleship.pl

Example query:

?- problem(1, Ships, Nrow, Ncol, Rows), battleship(Ships, Nrow, Ncol, Rows), maplist(portray_clause, Rows).

How to Run in Localhost

  • Clone this repository

git clone https://github.com/hashlash/prolog-battleships.git

  • Go inside the directory

cd prolog-battleships

  • Run the command below to start localhost server

python server.py

  • Open localhost:8000 with your browser

About

Battleships Puzzle Implementation using Prolog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published