Coder Social home page Coder Social logo

infersudoku's Introduction

InferSudoku is a Coffeescript project to solve Sudoku puzzles using human-level inference. It was written as a final project for COMP360 - Topics in Artificial Intelligence at Wesleyan University in the Spring 2011 semester. The following are instructions that were provided to the instructor when the project was submitted for a grade.


This project is written in Coffeescript, a language which compiles to javascript.

The original source (in coffeescript) is included along with compiled javascript files which will run in a web browser; both types of files are included in the js/ directory.

The coffeescript source files are also viewable in a pretty annotated source format (via Docco) in HTML documents in the docs/ directory; these should be viewable if you navigate a web browser to these HTML files.

The CSS for the HTML page was written in SASS, a language which compiles to CSS. The compiled CSS and the source SASS are both provided in the css/ directory.

To view the app, navigate to html/sudoku.html in a web browser (preferrably Chrome, the app was tested solely in Chrome and I did not have time to test it in other browsers, so it may look funny or do funny things).

Both Coffeescript and SASS have the ability to be compiled by the browser instead of beforehand, but it involves including the appropriate compiler javascript files. If the grader would prefer this so the source code can be tinkered with without recompiling each time, then let me know and I can set up with this model instead.

The bookmarklet used to gather sudoku data was as follows: javascript:(function(){var s="";for(i=0;i<9;i++){for(j=0;j<9;j++){var v=document.getElementById('f'+i+j).value;s+=v==""?".":v}s+="\n";}var pre=document.createElement('pre');pre.innerHTML=s;var body=document.getElementsByTagName('body')[0];body.insertBefore(pre,body.children[0]);})()

infersudoku's People

Contributors

jeffinitelyjeff avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.