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,6 +1,4 @@
using Memory.Logic;
using System;
using System.Reflection;
namespace Memory.Cmd
{
@ -52,14 +50,14 @@ namespace Memory.Cmd
}
else if (i == Game.GRIDSIZE / 2 && j > 1 && j < cardWidth - 2)
{
if (card.Selected())
{
//if (card.Selected())
//{
Console.Write(num[j - 2]);
}
else
{
Console.Write('*');
}
//}
//else
//{
// Console.Write('*');
//}
}
else
{
@ -70,8 +68,9 @@ namespace Memory.Cmd
}
}
public void Render()
public void Redraw()
{
Console.Clear();
for (int i = 0; i < game.Cards.Count; i++)
{
Card card = game.Cards[i];