Renamed project to CCharLearn

This commit is contained in:
BOT Alex 2023-07-07 19:41:56 +02:00
parent a6f55347b8
commit 591c3307a9
233 changed files with 16 additions and 17 deletions

View file

@ -0,0 +1,28 @@
namespace CCharLearn
{
public class CCharStats
{
public CChar cchar { get; set; }
public int NumOfCorrects { get; set; } = 0;
public int NumOfWrongs { get; set; } = 0;
public int TotalAnswers { get => NumOfCorrects + NumOfWrongs; }
public float Accuracy
{
get
{
return (float)NumOfCorrects / (float)TotalAnswers;
}
}
public CCharStats(CChar cchar)
{
this.cchar = cchar;
}
}
public enum StatType
{
NumOfCorrects,
NumOfWrongs
}
}