Replace target sum with binary
Replaced the target sum with the binary representation once the game is won.
This commit is contained in:
parent
9f4af91d47
commit
f0dd65eae0
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ const BinaryNumberGame = () => {
|
||||||
<CardContent className="p-6 text-center">
|
<CardContent className="p-6 text-center">
|
||||||
<h3 className="text-lg font-semibold text-muted-foreground mb-2">Target Sum</h3>
|
<h3 className="text-lg font-semibold text-muted-foreground mb-2">Target Sum</h3>
|
||||||
<div className="text-4xl font-bold text-primary">
|
<div className="text-4xl font-bold text-primary">
|
||||||
{hasGameStarted ? targetNumber : "🎯"}
|
{!hasGameStarted ? "🎯" : isGameWon ? targetNumber.toString(2) : targetNumber}
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue