Initial crossword addition and arcade redesign
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m41s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m41s
This commit is contained in:
parent
611a585757
commit
5bec95fb30
32 changed files with 1635 additions and 56 deletions
22
src/lib/arcade/crosswordTestData.ts
Normal file
22
src/lib/arcade/crosswordTestData.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import type { NormalizedCrosswordPack } from "@/types/arcade";
|
||||
|
||||
function letters(index: number) {
|
||||
return `${String.fromCharCode(65 + Math.floor(index / 26))}${String.fromCharCode(65 + (index % 26))}`;
|
||||
}
|
||||
|
||||
export function crosswordTestPack(): NormalizedCrosswordPack {
|
||||
return {
|
||||
schemaVersion: 1,
|
||||
type: "crossword",
|
||||
name: "Test Crossword",
|
||||
settings: { allowInstantCheck: false, allowHints: true },
|
||||
content: Array.from({ length: 80 }, (_, index) => ({
|
||||
id: `entry-${index + 1}`,
|
||||
answer: `STUDY${letters(index)}WORD`,
|
||||
displayAnswer: `Study ${letters(index)} Word`,
|
||||
clue: `Test clue ${index + 1}`,
|
||||
alternateClue: `Alternate test clue ${index + 1}`,
|
||||
explanation: `Explanation ${index + 1}`,
|
||||
})),
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue