Skip to content

Instantly share code, notes, and snippets.

View WuHoUnited's full-sized avatar

Zachary Miller WuHoUnited

View GitHub Profile
@WuHoUnited
WuHoUnited / crossword.clj
Last active December 11, 2015 00:48
Starting point for crossword/wordsearch using clojure's core.logic library.
(ns ^{:doc "Tiny library using logit programming to put words into a crossword/wordsearch style board (or vice versa)
There are lots of things it currently doesn't do such as revers or diagonal words.
Reverse words would be trivial to add. Diagonals would be harder."
:author "Zachary Miller"}
crossword.crossword
(:refer-clojure :exclude [==])
(:use clojure.core.logic))
;;;; a board will be a 2 dimensional sequence of characters
<!DOCTYPE html>
<html><head><meta charset="utf-8" content="text/html" http-equiv="Content-Type" /><meta content="FIXME: write" name="description" /><style type="text/css">/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)