Added gui version and basic scorehandler
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user