mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2025-01-24 10:34:03 +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>
|
</div>
|
||||||
<div class="button-bar">
|
<div class="button-bar">
|
||||||
<button type="button" (click)="joinRound()">Join Round</button>
|
<button type="button" (click)="joinRound()">Join Game</button>
|
||||||
<hr/>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,6 +31,8 @@ public class PlayerService {
|
|||||||
String id = createPlayer("SamplePlayer-" + i, null);
|
String id = createPlayer("SamplePlayer-" + i, null);
|
||||||
for (int j = 0; j < 3; j++)
|
for (int j = 0; j < 3; j++)
|
||||||
recordGame(id, r.nextInt(4) + 1);
|
recordGame(id, r.nextInt(4) + 1);
|
||||||
|
for (int j = 0; j < 10; j++)
|
||||||
|
recordGame(id, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user