Speech, auto avoid, bug fixes, iu improments

This commit is contained in:
BOT Alex 2023-07-04 21:20:33 +02:00
parent bc45154b70
commit bb125e7c7d
8 changed files with 164 additions and 22 deletions

View file

@ -0,0 +1,28 @@
namespace LearningChineseFixed
{
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
}
}