mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2025-01-18 10:23:58 +08:00
Give sample players lower scores so real players show up on leaderboard
This commit is contained in:
parent
a5cd5e1c21
commit
98c9fdbfe9
@ -20,9 +20,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="button-bar">
|
||||
<button type="button" (click)="joinRound()">Join Round</button>
|
||||
<button type="button" (click)="joinRound()">Join Game</button>
|
||||
<hr/>
|
||||
<button id="hostButton" type="button" (click)="hostRound()" data-loading-text="Connecting..." autocomplete="off">Host Round</button>
|
||||
<button id="hostButton" type="button" (click)="hostRound()" data-loading-text="Connecting..." autocomplete="off">Host Games</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -31,6 +31,8 @@ public class PlayerService {
|
||||
String id = createPlayer("SamplePlayer-" + i, null);
|
||||
for (int j = 0; j < 3; j++)
|
||||
recordGame(id, r.nextInt(4) + 1);
|
||||
for (int j = 0; j < 10; j++)
|
||||
recordGame(id, 4);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user