Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F1H43C - EEJYN9 Torpedó konzolos játék #34

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

htothmartin
Copy link

@htothmartin htothmartin commented Dec 4, 2024

Torpedó konzolos játék
Issue

Copy link
Contributor

@webmaster442 webmaster442 left a comment

Choose a reason for hiding this comment

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

Szép munka

private IPlayer HumanPlayer;
private IPlayer AIPlayer;

public static GameManager Instance
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmm... Singleton...

if (string.IsNullOrWhiteSpace(username))
throw new ArgumentException("Username cannot be empty", nameof(username));

ValidateAndApplyDefaults(preferences);
Copy link
Contributor

Choose a reason for hiding this comment

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

Validáció 👍

}

public void ValidateAndApplyDefaults(GamePreferences preferences)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Mivel ez JSON akár egy JSON Schema alapú validációval is megoldható lenne. Egyetlen baj, hogy a .NET beépített megoldást még nem tartalmaz JSON Schema olvasására.

- A kiszámolt statisztikákat elmentjük és megjelenítjük a konzolon


### Játék indítása
Copy link
Contributor

Choose a reason for hiding this comment

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

Dokumentáció 👍

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.

3 participants