Frontend: pridavanie botov v lobby

Hostitel prida na volne sedadlo bota (+ Bot = heuristika, + AI bot =
natrenovana siet) alebo bota odoberie; boti maju vlastnu ikonu a flag
is_bot v rosteroch. Surove ucty bot:<kind>-<n> sa vsade zobrazuju cez
displayName ako "Bot 2" / "AI bot 1" (stol, kopka, tabulky, historia).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
tim
2026-07-07 18:51:14 +02:00
co-authored by Claude Fable 5
parent 23de3ae3ac
commit b1010ae008
9 changed files with 68 additions and 11 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { useState } from 'react';
import type { PlayerInfo } from '../types';
import { computeTotal } from '../lib/standings';
import { displayName } from '../lib/names';
interface Props {
standings: number[][][];
@@ -62,7 +63,7 @@ export default function Standings({ standings, guesses = [], players, myOrder, d
}`}
style={{ fontSize: fz.head }}
>
{p.name}
{displayName(p.name)}
</div>
))}
</div>