feat: modalità amichevole e fix URL remoti in dev (WSL2)

- Aggiunge modalità "Amichevole" in config: i set si vincono normalmente
  ma la partita non termina mai automaticamente (checkVittoriaPartita
  restituisce false), consentendo di giocare set illimitati
- Dev server ora espone su tutte le interfacce (vite --host)
- printServerInfo mostra Display + Controller per dispositivi remoti
- Su WSL2 getNetworkIPs() interroga PowerShell per ottenere gli IP
  Windows reali invece degli IP interni WSL (172.x)
This commit is contained in:
2026-06-20 15:42:57 +02:00
parent 38703116ff
commit 87ce0e26b8
4 changed files with 34 additions and 16 deletions
+1
View File
@@ -46,6 +46,7 @@ export function checkVittoria(state) {
}
export function checkVittoriaPartita(state) {
if (state.modalitaPartita === 'amichevole') return false
const setsToWin = state.modalitaPartita === "2/3" ? 2 : 3
const sv = setVinti(state.sp.striscia)
return sv.home >= setsToWin || sv.guest >= setsToWin