项目作者: norbjd

项目描述 :
Logic games solver (Sudoku, Fubuki, Garam) using choco-solver
高级语言: Java
项目地址: git://github.com/norbjd/logic-games-csp.git
创建时间: 2017-12-21T11:58:12Z
项目社区:https://github.com/norbjd/logic-games-csp

开源协议:

下载


Logic games solving with Constraint Programming

This repository aims to present Constraint Programming (CP) by modeling
and solving small and easy logic games. This is used as an introduction to
CP.

Logic games, represented as CSP (Constraint Satisfaction Problem), are
solved using Choco Solver, in Java.
Currently, the logic games solved are :

Code duplication and architecture duplication between each module
are deliberate, since the focus is done on CP, and over-designing by
abstracting may have cluttered up reading. The main goal here by doing
this is that each module can be read separately.

Classes ending with CSP are the main classes to read for CP examples.
For the same readability reasons previously stated, each step of CP (variables
initialization, constraints initialization, model solving) are defined
in the same class.