Skip to content

Commit

Permalink
Add Tourist rank (4000+)
Browse files Browse the repository at this point in the history
  • Loading branch information
meooow25 committed Sep 28, 2024
1 parent 18bcddd commit de280df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion carrot/src/background/predict-response.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Rank from './rank.js';
import { Rank } from './rank.js';

class PredictResponseRow {
constructor(delta, rank, performance, newRank, deltaReqForRankUp, nextRank) {
Expand Down
5 changes: 3 additions & 2 deletions carrot/src/background/rank.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Encapsulates a Codeforces rank.
*/
export default class Rank {
export class Rank {
constructor(name, abbr, low, high, colorClass) {
this.name = name;
this.abbr = abbr;
Expand Down Expand Up @@ -34,5 +34,6 @@ Rank.RATED = [
new Rank('International Master', 'IM', 2300, 2400, 'user-orange'),
new Rank('Grandmaster', 'GM', 2400, 2600, 'user-red'),
new Rank('International Grandmaster', 'IGM', 2600, 3000, 'user-red'),
new Rank('Legendary Grandmaster', 'LGM', 3000, Infinity, 'user-legendary'),
new Rank('Legendary Grandmaster', 'LGM', 3000, 4000, 'user-legendary'),
new Rank('Tourist', 'T', 4000, Infinity, 'user-4000'),
];

0 comments on commit de280df

Please sign in to comment.