+
{player.id === room.hostId && (
)}{" "}
@@ -419,6 +438,11 @@ export function MultiplayerRoom({ id }: { id: string }) {
>
| {player.rank} |
+
+ );
const seed = [...id].reduce(
(value, char) => (value * 31 + char.charCodeAt(0)) >>> 0,
0,
@@ -32,7 +54,7 @@ export function PlayerAvatar({ id }: { id: string }) {
const shirt = ["#68876a", "#697e91", "#a68a50", "#8b6e7f"][(seed >>> 5) % 4];
return (
|