-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Too many to list really
- Loading branch information
Showing
8 changed files
with
254 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,4 +179,6 @@ | |
opacity: 0.75; | ||
margin: 1rem; | ||
font-family: 'Delius Unicase'; | ||
pointer-events: none; | ||
touch-action: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import { generateGrid, printGrid } from '../utils/grids'; | ||
import { decodeGrid, encodeGrid, generateGrid, printGrid } from '../utils/grids'; | ||
|
||
const grid = generateGrid(); | ||
printGrid(grid); | ||
const encoded = encodeGrid(grid); | ||
console.log(encoded); | ||
console.log(decodeGrid(encoded)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { z } from 'zod'; | ||
|
||
const SettingsObject = z.object({ | ||
color_blind_mode: z.boolean().default(false), | ||
show_solve_button: z.boolean().default(false), | ||
strict_controls: z.boolean().default(false), | ||
hide_time: z.boolean().default(false), | ||
hide_endorsement: z.boolean().default(false), | ||
hide_trash: z.boolean().default(false), | ||
}); | ||
|
||
type Settings = z.infer<typeof SettingsObject>; | ||
|
||
const settingsDescription: Record<keyof Settings, [string, string]> = { | ||
color_blind_mode: [ | ||
'Color Blind Mode', | ||
'Turns solved numbers blue for those who are red/green colorblind', | ||
], | ||
show_solve_button: [ | ||
'Solve Button', | ||
'Shows a CPU automatic-solve button which shows the solution the computer had in mind while making the puzzle', | ||
], | ||
strict_controls: [ | ||
'Strict Controls', | ||
'Makes it so that clicking a domino will choose that domino type instead of cycling between domino types', | ||
], | ||
hide_time: ['Hide Time', 'Hides the current solving time while solving'], | ||
hide_endorsement: [ | ||
'Hide Endorsement', | ||
'Hides the play the original link (please play the original before turning this on)', | ||
], | ||
hide_trash: ['Hide Trash', 'Hides the trash/clear board button'], | ||
}; | ||
|
||
export type { Settings }; | ||
export { settingsDescription, SettingsObject }; |