@@ -66,7 +66,8 @@ public function calculate(User $user): int
6666 /**
6767 * Calculate the total points of the solution events.
6868 *
69- * 每位同學基本經驗值500點,成功解一題獲得經驗值增加。易:10點、中:20點、難:30點
69+ * Successfully solving a problem increases experience points.
70+ * Easy: 10 points, Medium: 20 points, Hard: 30 points.
7071 *
7172 * @param User $user The user to calculate the points for
7273 *
@@ -87,7 +88,7 @@ protected function calculateSolutionQuestionPoints(User $user): int
8788 /**
8889 * Calculate the points if the user is the first solver of a question.
8990 *
90- * 第一位解題成功者加10點。
91+ * The first person to solve the problem gets 10 points.
9192 *
9293 * @throws InvalidArgumentException
9394 */
@@ -150,6 +151,12 @@ function (ItemInterface $item) use ($group, $question) {
150151 );
151152 }
152153
154+ /**
155+ * Calculate the points of the solution video events.
156+ *
157+ * Each student will lose experience points for watching a solution video.
158+ * Easy: 6 points, Medium: 12 points, Hard: 18 points.
159+ */
153160 protected function calculateSolutionVideoPoints (User $ user ): int
154161 {
155162 /**
@@ -189,6 +196,11 @@ protected function calculateHintOpenPoints(User $user): int
189196 /**
190197 * Calculate the weekly solved question punish points.
191198 *
199+ * You need to solve at least 5 problems each week.
200+ * For each problem you fall short, you will lose 20 experience points.
201+ *
202+ * @param User $user The user to calculate the points for
203+ *
192204 * @return int The punish points, negative value
193205 */
194206 protected function calculateWeeklySolvedPunishPoints (User $ user ): int
0 commit comments