flipflipflip/src/front/services/initialData.ts
2026-05-31 18:51:31 +02:00

90 lines
2.7 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createRandomId } from "../utils/utils.js";
import { AppData } from "./DataStore.js";
import { scheduler } from "./Scheduler.js";
export function getInitialData(): AppData {
const deckId = createRandomId();
return {
decks: [
{
id: deckId,
name: "exemple de paquet 🃏",
frequency: "medium",
},
],
cards: [
{
id: createRandomId(),
deckId,
front:
"quelle carte du tarot de marseille ne porte pas de nom, uniquement un numéro ?",
back: "la lame XIII, qui représente la mort",
scheduling: scheduler.newScheduling(),
},
{
id: createRandomId(),
deckId,
front:
"dans un jeu de cartes classique, quel est le nom de la dame de cœur ?",
back: "Judith",
scheduling: scheduler.newScheduling(),
},
{
id: createRandomId(),
deckId,
front:
"dans un tirage de tarot de marseille, comment interpréter la maison dieu ?",
back: "à lendroit : changement, remise en question, reconstruction\n\nà lenvers : échec, rupture, illusion",
scheduling: scheduler.newScheduling(),
},
{
id: createRandomId(),
deckId,
front:
"quelles sont les 4 enseignes dun jeu de carte traditionnel allemand ?",
back: "gland\nfeuille\ncœur\ngrelot",
scheduling: scheduler.newScheduling(),
},
{
id: createRandomId(),
deckId,
front:
"quels sont les 3 jeux mentionnés sur la plupart des paquets de carte à jouer ?",
back: "poker\nbridge\ncanasta",
scheduling: scheduler.newScheduling(),
},
{
id: createRandomId(),
deckId,
front: "donner les combinaisons du poker dans lordre de valeur",
back: "carte isolée\n\npaire\n\ndouble paire\n\nbrelan\n\nsuite\n\ncouleur\n\nfull\n\ncarré\n\nquinte flush\n\nquinte flush royale",
scheduling: scheduler.newScheduling(),
},
{
id: createRandomId(),
deckId,
front:
"de quand et où viennent les cartes à jouer les plus anciennes ?",
back: "chine, XIIIe siècle",
scheduling: scheduler.newScheduling(),
},
{
id: createRandomId(),
deckId,
front:
"au black jack, le croupier tire des cartes jusquà atteindre quelle valeur minimale ?",
back: "17",
scheduling: scheduler.newScheduling(),
},
{
id: createRandomId(),
deckId,
front:
"dans le jeu de la dame de pique, combien de points vaut cette dame ?",
back: "13 points",
scheduling: scheduler.newScheduling(),
},
],
};
}