From b3c8cd70fe71c333a449d1b3262a6165c41ecb18 Mon Sep 17 00:00:00 2001 From: Andy Aylward Date: Sun, 7 Sep 2025 14:35:34 -0400 Subject: [PATCH] [golf] only display celebratory emoji to the winner --- src/components/GolfGame.tsx | 42 ++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/src/components/GolfGame.tsx b/src/components/GolfGame.tsx index f873dd6..73002c4 100644 --- a/src/components/GolfGame.tsx +++ b/src/components/GolfGame.tsx @@ -17,7 +17,7 @@ interface GolfGameProps { const GolfGame = ({ onGameIdChange, onPlayerIdChange, onPlayerNameChange, onConnectionChange }: GolfGameProps) => { const [showRules, setShowRules] = useState(false) - + const { gameState, roomCode, @@ -95,9 +95,9 @@ const GolfGame = ({ onGameIdChange, onPlayerIdChange, onPlayerNameChange, onConn Join Game - -

How to Play Golf

- +

Goal

Get the lowest score by the end of the game. Lower is better!

- +

Setup

- +

Your Turn

- +

Card Values

- +

Ending the Game

{winner && (
-
🎉 🎊 🎉
+ {currentPlayer?.name === winner ? ( +
🎉 🎊 🎉
+ ) : ( +
+ )}
{currentPlayer?.name === winner ? ( <> @@ -258,14 +262,14 @@ const GolfGame = ({ onGameIdChange, onPlayerIdChange, onPlayerNameChange, onConn Lower scores win • Pairs cancel out
- -