You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constbottomMenuText=chalk.bold(`${borderLeft}${chalk.bgBlue(`<q>`)} to quit | ${chalk.bgBlue(`<Esc>`)} to go back | ${chalk.bgBlue(`<p>`)} view progress${newArray(width-54).fill(border).join('')}${borderRight}`);
constbottomMenuText=chalk.bold(`${borderLeft}${chalk.bgBlue(`<q>`)} to quit | ${chalk.bgBlue(`<Esc>`)} to go back | ${chalk.bgBlue(`<p>`)} view progress | ${chalk.bgBlue(`<l>`)} leaderboard${newArray(width-72).fill(border).join('')}${borderRight}`);
380
388
381
389
// Save cursor position
382
390
process.stdout.write('\x1B7');
@@ -401,10 +409,6 @@ Open up the challenge in your favorite code editor and follow the instructions i
letstatement="Complete challenges to score points and climb the leaderboard!";
85
+
if(userInfo){
86
+
switch(userInfo.rank){
87
+
case1:
88
+
statement="You are the TOP DOG!";
89
+
break;
90
+
case2:
91
+
statement="You are second place!\nKeep challenging yourself and see if you can catch up to the leader!\nTry to improve the gas efficiency of your past solutions.";
92
+
break;
93
+
case3:
94
+
statement="You are third place!\nKeep challenging yourself and see if you can catch up to the leader!\nTry to improve the gas efficiency of your past solutions.";
95
+
break;
96
+
case4:
97
+
case5:
98
+
case6:
99
+
case7:
100
+
case8:
101
+
case9:
102
+
case10:
103
+
statement=`You are in the top ten!\nKeep challenging yourself and see if you can climb the leaderboard!\nTry to improve the gas efficiency of your past solutions.`;
104
+
break;
105
+
default:
106
+
statement=`You are rank ${userInfo.rank}.\nKeep challenging yourself and see if you can climb the leaderboard!`;
0 commit comments