Skip to content

Commit

Permalink
Migrate puzzles into JSON files (#18)
Browse files Browse the repository at this point in the history
Also add a `.nvmrc` configuration file for the required node version.
  • Loading branch information
kflorence authored Feb 14, 2024
1 parent b55f7a9 commit f1d664c
Show file tree
Hide file tree
Showing 32 changed files with 2,002 additions and 1,267 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
!.gitattributes
!.gitignore
!.github
!.nvmrc
dist
node_modules
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.11.0
60 changes: 0 additions & 60 deletions src/puzzles/001.js

This file was deleted.

108 changes: 108 additions & 0 deletions src/puzzles/001.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"layout": {
"tiles": [
[
{
"items": [
{
"color": "blue",
"openings": [
null,
null,
null,
{
"on": true,
"type": "Beam"
},
null,
null
],
"type": "Terminus"
}
],
"modifiers": [
{
"type": "Lock"
}
],
"type": "Tile"
},
{
"type": "Tile"
}
],
[
{
"type": "Tile"
},
{
"type": "Tile"
},
{
"type": "Tile"
}
],
[
{
"items": [
{
"color": "red",
"openings": [
null,
{
"on": true,
"type": "Beam"
},
null,
null,
null,
null
],
"type": "Terminus"
}
],
"modifiers": [
{
"type": "Lock"
},
{
"type": "Toggle"
}
],
"type": "Tile"
},
{
"items": [
{
"color": "blue",
"openings": [
{
"type": "Beam"
},
null,
null,
null,
null,
null
],
"type": "Terminus"
}
],
"modifiers": [
{
"type": "Lock"
}
],
"type": "Tile"
}
]
],
"type": "even-r"
},
"solution": [
{
"amount": 1,
"type": "Connections"
}
]
}
60 changes: 0 additions & 60 deletions src/puzzles/002.js

This file was deleted.

109 changes: 109 additions & 0 deletions src/puzzles/002.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"layout": {
"tiles": [
[
{
"items": [
{
"color": "blue",
"openings": [
null,
null,
null,
{
"on": true,
"type": "Beam"
},
null,
null
],
"type": "Terminus"
}
],
"modifiers": [
{
"type": "Lock"
}
],
"type": "Tile"
},
{
"type": "Tile"
}
],
[
{
"type": "Tile"
},
{
"type": "Tile"
},
{
"type": "Tile"
}
],
[
{
"items": [
{
"color": "red",
"openings": [
null,
{
"on": true,
"type": "Beam"
},
null,
null,
null,
null
],
"type": "Terminus"
}
],
"modifiers": [
{
"type": "Lock"
},
{
"clockwise": false,
"type": "Rotate"
}
],
"type": "Tile"
},
{
"items": [
{
"color": "blue",
"openings": [
{
"type": "Beam"
},
null,
null,
null,
null,
null
],
"type": "Terminus"
}
],
"modifiers": [
{
"type": "Lock"
}
],
"type": "Tile"
}
]
],
"type": "even-r"
},
"solution": [
{
"amount": 1,
"type": "Connections"
}
]
}
Loading

0 comments on commit f1d664c

Please sign in to comment.