You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Giocando come giocatore Random alle linee 153 e 239 della classe TablutRandomClient Random.nextInt viene chiamato con argomento pawns.size() - 1 che risulta essere 0 essendoci solo una pedina rimasta.
Questo lancia una IllegalArgumentException: bound must be positive che fa perdere la partita al giocatore.
E' un problema secondario, e non relativo alle regole del gioco, ma volevo comunque segnalarlo.
Saluti
The text was updated successfully, but these errors were encountered:
Giocando come giocatore Random alle linee 153 e 239 della classe TablutRandomClient
Random.nextInt
viene chiamato con argomentopawns.size() - 1
che risulta essere0
essendoci solo una pedina rimasta.Questo lancia una
IllegalArgumentException: bound must be positive
che fa perdere la partita al giocatore.E' un problema secondario, e non relativo alle regole del gioco, ma volevo comunque segnalarlo.
Saluti
The text was updated successfully, but these errors were encountered: