Speech, auto avoid, bug fixes, iu improments
This commit is contained in:
parent
bc45154b70
commit
bb125e7c7d
8 changed files with 164 additions and 22 deletions
28
LearningChineseFixed/Classes/CCharStats.cs
Normal file
28
LearningChineseFixed/Classes/CCharStats.cs
Normal 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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue