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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user