@ -4,8 +4,47 @@ using namespace std;
double levelToSpeed(int level) {
double speed = 0;
if (level >= 0 && level <= 12) {
static const double table[] = { 0.0, 0.3, 1.6, 3.4, 5.5, 8.0, 10.8, 13.9, 17.2, 20.8, 24.5, 28.5, 32.6 };
speed = table[level];
switch (level) {
case 1:
speed = 0.3;
break;
case 2:
speed = 1.6;
case 3:
speed = 3.4;
case 4:
speed = 5.5;
case 5:
speed = 8.0;
case 6:
speed = 10.8;
case 7:
speed = 13.9;
case 8:
speed = 17.2;
case 9:
speed = 20.8;
case 10:
speed = 24.5;
case 11:
speed = 28.5;
case 12:
speed = 32.7;
}
else if (level == 13) {
speed = 35.8;