Skip to content

Commit

Permalink
[#24] Made it so the game restarts after a win
Browse files Browse the repository at this point in the history
  • Loading branch information
Monkey-bored committed Feb 1, 2024
1 parent 06b3f3a commit 67e40bc
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions development/code/Game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function endTurn() {
setTimeout(() => {
if (winner !== '') {
showWinningAlert(winner);
window.location.reload();
}
}, 10);
}
Expand Down
2 changes: 1 addition & 1 deletion development/code/logic/rules/CoupRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ export class CoupRule extends BaseRule {

super(description, isRevealed, condition, onTrigger);
}
}
}
2 changes: 1 addition & 1 deletion development/code/logic/rules/EmptyPocketsRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ export class EmptyPocketsRule extends BaseRule {

super(description, isRevealed, condition, onTrigger);
}
}
}
2 changes: 1 addition & 1 deletion development/code/logic/rules/ExperienceOnKillRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export class ExperienceOnKillRule extends BaseRule {

super(description, isRevealed, condition, onTrigger);
}
}
}
2 changes: 1 addition & 1 deletion development/code/logic/rules/FirstBloodRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export class FirstBloodRule extends BaseRule {

super(description, isRevealed, condition, onTrigger);
}
}
}
2 changes: 1 addition & 1 deletion development/code/logic/rules/FriendlyFireRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export class FriendlyFireRule extends BaseRule {

super(description, isRevealed, condition, onTrigger);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export class PiecesCanFallOffTheBoardRule extends BaseRule {

super(description, isRevealed, condition, onTrigger);
}
}
}
2 changes: 1 addition & 1 deletion development/code/logic/rules/WithAgeComesWisdomRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export class WithAgeComesWisdomRule extends BaseRule {

super(description, isRevealed, condition, onTrigger);
}
}
}

0 comments on commit 67e40bc

Please sign in to comment.