Added gui version and basic scorehandler

This commit is contained in:
KäseToatz
2024-11-06 17:40:40 +01:00
parent 754db562af
commit 23ae45ba91
11 changed files with 171 additions and 40 deletions

View File

@ -1,10 +1,11 @@
namespace Memory.Logic
{
public class Game
public class Game(IScoreHandler scoreHandler)
{
public const int DECKSIZE = 10;
public const int GRIDSIZE = 5;
public List<Card> Cards { get; } = CreateDeck(DECKSIZE);
public IScoreHandler ScoreHandler { get; } = scoreHandler;
private static List<Card> CreateDeck(int pairs)
{