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)
|
||||
{
|
||||
|
6
Memory.Logic/IScoreHandler.cs
Normal file
6
Memory.Logic/IScoreHandler.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace Memory.Logic
|
||||
{
|
||||
public interface IScoreHandler
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user