File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,16 @@ import lifespan from "$lib/assets/life-game-rules/lifespan.js?raw";
22import probabilistics from "$lib/assets/life-game-rules/probabilistics.js?raw" ;
33
44export type RuleExplanation = {
5+ name : {
6+ ja : string ;
7+ en : string ;
8+ } ;
9+ description : {
10+ ja : string ;
11+ en : string ;
12+ } ;
513 code : string ;
6- ja : string ;
7- en : string ;
814} ;
9-
1015export const rulesExplanation = {
1116 lifespan : {
1217 name : {
Original file line number Diff line number Diff line change 236236 <button
237237 class =" card bg-base-100 shadow-md hover:shadow-lg transition-shadow cursor-pointer text-left flex-shrink-0 w-64"
238238 onclick ={() => {
239- selectRule (ruleData . name as RuleExplanation );
239+ selectRule (ruleData as RuleExplanation );
240240 ruleDrawerOpen = false ;
241241 }}
242242 >
You can’t perform that action at this time.
0 commit comments