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