diff --git a/front/pages/index.tsx b/front/pages/index.tsx index 17dca58..869d6ed 100644 --- a/front/pages/index.tsx +++ b/front/pages/index.tsx @@ -18,9 +18,9 @@ interface GameState { const rankStrs = ['', 'A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']; const suitChars = ['♣', '♦', '♥', '♠']; -const rules = String.raw`Welcome to BSX!\n -
-There are only 5 simple rules!
+const rules = `Welcome to BSX! + +There are only 5 simple rules! 1. You will first be dealt 5 cards. @@ -30,7 +30,8 @@ There are only 5 simple rules!
4. If the previous player manages to flip over their claimed number of black cards, you must choose a card from your stack to give up. Otherwise, the previous player must choose one of their cards to give up. -5. If you give up all your cards, you lose! Last player remaining wins!` +5. If you give up all your cards, you lose! Last player remaining wins! +`; function useForceUpdate(){ const [value, setValue] = useState(0); @@ -86,6 +87,9 @@ export default function Game() { if (!loggedIn) { return ( <> +
+					{rules}
+				
{ @@ -131,6 +135,9 @@ export default function Game() { if (gameState.phase === 0) { return ( <> +
+					{rules}
+