Skip to content

mugekuskon/CSPPuzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

AquariumPuzzle

This is done as an assignment for the Artificial Intelligence course. This notebook includes an Aquarium puzzle, and a comparison of A* and CSP. OR-Tools was used in order to be able to create our cp_model. In aquarium_puzzle.py examples with different input combinations and difficulty levels can be found.

alt text

Instructions

The puzzle contains blocks called "aquariums" and our aim is to fill the aquariums with a specific level of water. The specification of the level are made by the RowConstraints and ColumnConstraints. An example of this game can be seen in the image above taken from Aquarium Puzzle.

  • Blocks is a matrix which helps us to visualize the aquarium's state.

  • RowConstraints represents the number of required cells full of water in the rows.

  • ColumnConstraints represents the number of required cells full of water in the columns.

  • inputlength is the number of cells in rows and columns.

    Written with StackEdit.

About

Solving Aquarium Puzzle using CSP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages