Skip to content

Commit

Permalink
cosmetic: fix code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jan 1, 2025
1 parent 3216557 commit 6add8a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/services/CardDeck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import Slot from './enum/Slot'
export default class CardDeck {

private _pile : Card[]
private _grade2 : Card[]
private readonly _grade2 : Card[]
private _leftMajoritySlot? : Card
private _rightMajoritySlot? : Card
private _slots : CardSlot[]
private _discard : Card[]
private _availableSlots : Slot[]
private _difficultyLevel : DifficultyLevel
private readonly _availableSlots : Slot[]
private readonly _difficultyLevel : DifficultyLevel

public constructor(pile : Card[], grade2 : Card[], leftMajoritySlot : Card|undefined, rightMajoritySlot : Card|undefined,
slots : CardSlot[], discard : Card[], availableSlots : Slot[], difficultyLevel : DifficultyLevel) {
Expand Down
6 changes: 3 additions & 3 deletions src/services/LunaState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export default class LunaState {
private static readonly HELIUM_SLOT_A_TRESHOLD = 8
private static readonly RESEARCH_SLOT_E_TRESHOLD = 4

private _cardDeck : CardDeck
private readonly _cardDeck : CardDeck
private _heliumCount : number
private _researchSteps : number
private _heliumCardTresholds : number[]
private _researchCardTresholds : number[]
private readonly _heliumCardTresholds : number[]
private readonly _researchCardTresholds : number[]

public constructor(cardDeck : CardDeck, heliumCount : number, researchSteps : number, difficultyLevel : DifficultyLevel) {
this._cardDeck = cardDeck
Expand Down

0 comments on commit 6add8a5

Please sign in to comment.