(false)
const initCases: CaseInfo[][] = []
@@ -54,16 +56,6 @@ function Game(props: GameProps) {
setCases((prev) => [...prev.slice(0, activeLine), currentLine, ...prev.slice(activeLine+1)])
}
- const win = valid ? Congratulations ! you won in {activeLine+1} try(s) !
: Trys : {activeLine}
;
- const lose = !valid && activeLine >= props.nLines ? You lost !
-
Combination was :
-
- {props.combination.map(
- (color, idx) => )
- }
-
-
: null;
-
return (
<>
@@ -86,8 +78,25 @@ function Game(props: GameProps) {
}
- {win}
- {lose}
+
+ = props.nLines)}>
Trys : {activeLine}
+
+ Congratulations ! you won in {activeLine+1} try(s) !
+
+ = props.nLines)}>
+
+
Combination was :
+
+ {props.combination.map(
+ (color, idx) => )
+ }
+
+
+
>
)
}