Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build puzzleData. #8

Open
udayakumarswamy opened this issue Feb 10, 2016 · 2 comments
Open

How to build puzzleData. #8

udayakumarswamy opened this issue Feb 10, 2016 · 2 comments

Comments

@udayakumarswamy
Copy link

Hi,

i liked your your crossword thing, i have list of questions with answers to make crossword puzzle. so, how i can generate puzzleData which is you prepared in script.js file.

@HoldOffHunger
Copy link

Hey, udayakumarswamy,

I had the same question!

Just from looking at the file, "script.js", it looks like it was human-produced data, not machine-produced. I was hoping for something to completely randomize the puzzle. I'm uncertain that this project was designed to do this.

So, I coded up something to do that: https://github.com/HoldOffHunger/jquery-crossword-puzzle-generator

Completely different implementation, as you can see in the results: http://www.earthfluent.com/crossword-puzzle-demo.html

@bradzo
Copy link

bradzo commented Feb 27, 2021

I was looking to do the same:

Here's some test JSON:

    var puzzleData = [
        {
            clue: "my first name",
            answer: "brad",
            position: 1,
            orientation: "across",
            startx: 1,
            starty: 1
        },
        {
            clue: "my wife's first name",
            answer: "nottellingyou",
            position: 2,
            orientation: "across",
            startx: 6,
            starty: 1
        },
        {
            clue: "opposite of above",
            answer: "below",
            position: 1,
            orientation: "down",
            startx: 1,
            starty: 1
        },
    
    ] 

Just make sure that the "position" values line up, and the characters at the intersection of orientations equate equally.

I'm looking for a generator too, so good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants