added console application
This commit is contained in:
20
Memory.Logic/Card.cs
Normal file
20
Memory.Logic/Card.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user