rebalance game, make bots weaker, improve leaderboard

This commit is contained in:
evanpelle
2024-10-17 21:01:10 -07:00
parent 96b4ffe649
commit 29f1b398ee
5 changed files with 35 additions and 29 deletions
+3 -5
View File
@@ -19,7 +19,7 @@ export class FakeHumanExecution implements Execution {
private rejected: Set<Player> = new Set<Player>
private isTraitor = false
private relations = new Map<Player, number>()
constructor(private playerInfo: PlayerInfo, private cell: Cell, private strength: number) {
this.random = new PseudoRandom(simpleHash(playerInfo.id))
@@ -131,10 +131,8 @@ export class FakeHumanExecution implements Execution {
handleAllianceRequests() {
for (const req of this.player.incomingAllianceRequests()) {
if (this.rejected.has(req.requestor())) {
continue
}
if (req.requestor().numTilesOwned() > this.player.numTilesOwned() * 2) {
if (req.requestor().numTilesOwned() > this.player.numTilesOwned() * 2) {
req.accept()
continue
}