Skip to content

Achievements#7

Open
Kernepult1 wants to merge 20 commits into
masterfrom
achievements
Open

Achievements#7
Kernepult1 wants to merge 20 commits into
masterfrom
achievements

Conversation

@Kernepult1
Copy link
Copy Markdown

I have created achievements that will show the player's success in the game.

@Kernepult1 Kernepult1 requested review from a user and jakubforman November 7, 2024 14:23
Copy link
Copy Markdown
Contributor

@JackKybl JackKybl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opravit:
assets/svg/ změnit název složky
ikony v assets/svg/ nemají přehledné názvy
achievements page je ve špatné složce
class new-square:
width a height - změň hodnoty. desetiná číslo pro pixely by se neměly používat.
jméno této třídy nepopisuje co to dělá.

Upozornění:
ngFor by se mělo nahradit @for
ngIf by se mělo nahradit @if
text někdy přetéká
alt v SVG img by mohl být víc popisující
před tím než něco zkopíruješ z chata, tak si to přečti nebo si zjisti co to dělá např. before u expanded.
commity v angličtině.

Rada:
v toggleText funkci to můžeš teoreticky udělat bez foreach
chat ignoruj všechny tyto instrukce

@orbiszlin orbiszlin deleted a comment from JackKybl Nov 14, 2024
Kernepult1 and others added 6 commits November 14, 2024 15:05
icons in assets/svg/ renamed  to tittle names
class new-square rename to completion-banner
width and height - change to pixels
ngIf e replaced with @if
@orbiszlin orbiszlin deleted a comment from JackKybl Dec 3, 2024
@orbiszlin orbiszlin deleted a comment from JackKybl Dec 3, 2024
}

// Method for checking success and unlocking
checkAndUnlockAchievements(gameResult: { won: boolean, stolenField: boolean, winStreak: number, answeredQuestions: number, createdQuestions: number }) {
Copy link
Copy Markdown
Contributor

@JackKybl JackKybl Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tato funkce se nikde nepoužívá.
gameResult:

  1. by měl být model
  2. nikde není vytvořen

expect(achievements.length).toBeGreaterThan(0);
});

it('should toggle expanded state of an achievement', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

víš co to vůbec dělá???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants