Git Product home page Git Product logo

kakuro-game-implementation's Introduction

A Prolog Exercise / Project

This is a Prolog project from my early days as a Computer Science student

This programm was created for the fifth semester class Logic Programming and it is one of the final projects necessary to pass the class

Description of project

A script that implements a solution for the game Kakuro by assigning a variable to each empty square.

Implementation of project

  1. Define the line-2 predicate such that if a numeric list L sums to N and satisfies Kakuro's limit that numbers 1, 2,. . . , 9 can only be displayed only once.
  2. Define the solve-1 predicate that calculates a list that is the solution to the problem. That is, the list [A, B, C, E, ..., P] is a solution if all rows and columns meet the relevant conditions.
  3. Define the solve-0 predicate that calculates and prints the list.

About this project

  • The solution to the game Kakuro and extra information can be found at www.kakuro.net
  • The comments to make the code understandable, are within the .pl archive
  • This repository was created to show the variety of the work I did and experience I gained as a student

kakuro-game-implementation's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.