Git Product home page Git Product logo

go-crossword-maker's Introduction

go-crossword-maker

A crossword maker written in Go (also known as a crossword grid compiler, setter, creator, generator or composer). Solves the constraint satisfaction problem related to building crosswords from a list of words.

This code is currently work in progress. You can run go test -v . and that's about it.

building and running tests

To run the tests

go test -v ./grid ./words ./generate .

To run the code

go build
./go-crossword-maker --wordlist ukacd.txt --size 4

motivation for writing this in Go

I need a crossword maker which will perform reasonably well with a small wordlist. I'm building a crossword with a very specific theme. It's a hard problem to solve manually and I found a bunch of academic papers on this topic but not much usable code.

So I figured I'll implement my own piece of code and see how far I can get.

I picked Go because I want the end-result to be a command line tool that can run across multiple different platforms. Go makes cross-compiling easy.

I also figured that Go enables writing efficient parallel processing code and that it will be easier to keep all the cores busy. The box I'm planning to run this has multiple CPUs with 10 cores each.

other ideas

  • how hard would it be to make this run on a GPU?

go-crossword-maker's People

Contributors

alokmenghrajani avatar nzen 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.