added console application

This commit is contained in:
KäseToatz
2024-11-05 19:01:21 +01:00
parent d1bfecbfef
commit 754db562af
15 changed files with 292 additions and 26 deletions

20
Memory.Logic/Card.cs Normal file
View File

@ -0,0 +1,20 @@
namespace Memory.Logic
{
public class Card(int id)
{
public int ID { get; } = id;
public bool IsChoice1 { get; set; } = false;
public bool IsChoice2 { get; set; } = false;
public bool Completed { get; set; } = false;
public bool Matches(Card card)
{
return ID == card.ID;
}
public bool Selected()
{
return IsChoice1 || IsChoice2;
}
}
}