A Solver for a Game about Squares
This repository has been archived on 2026-05-09. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2015-01-04 00:34:38 -06:00
doc restructured code 2015-01-03 21:24:51 -06:00
src/solver_of_squares make heap fns repl-friendly 2015-01-04 00:34:38 -06:00
test/solver_of_squares restructured code 2015-01-03 21:24:51 -06:00
.gitignore Initial commit 2014-09-27 23:22:25 -05:00
LICENSE Initial commit 2014-09-27 23:22:25 -05:00
project.clj Initial commit 2014-09-27 23:22:25 -05:00
README.md restructured code 2015-01-03 21:24:51 -06:00

A Solver of Squares

This is a small, interactive Clojure application that allows you to design new levels or solve existing ones in the style of [Game About Squares] (http://gameaboutsquares.com).

This project is intended to provide a small playground for learning about Clojure, particularly the use and value of transients.

Usage

The program is built to be interactive with a REPL. Simply jump into the REPL and type the following to find the solution to level 11:

(in-ns 'solver-of-squares.core)
(solve level11)

I have only provided the problem definitions for levels 11 and 21 (although I have tested the algorithm with all the problems). After all, you should try to solve them yourself first! Or, design your own levels!

Be sure to check out the docs for information on how to create levels and what algorithms were used (and sometimes discarded) in developing this application

License

Copyright © 2014-2015 Chad Taylor

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.