Open udayakumarswamy opened 8 years ago
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
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!
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.