- 题目页:这节课同班做对的人多就说「全班已经 N 个人做对了」、都卡着就安慰、第一个做对的夸一句; 通过率不到三成的题错了说「本来就难」、高于七成的说「再看看题」;AI 提示开了没用就提一句; 做对了还有挑战就问敢不敢;流程图分低、拿 S 各有话 - 常点「太难了」的学生错了换软话;这周交得多、例子跑得少的念一句;卡住却从不举手的劝举手; 这周要提示多的劝先自己想 - 首页(这节课没要做的时)每次戳随机说一件:知识点差几道升级、周榜差几道超过前一名、 今天明天的比赛、三天内的新公告;两周以上没来说「好久不见」,只说一回 - 排名页第一名、差前一名几道;成就页差一点的;自学没全对的练一练;专题差最后一道拿奖章 - 运行例子、自己输入、举手也记进 mascot_event(trial、help),GET /mascot/profile 多给「太难了」次数和这一周交、跑例子、举手、要提示的次数 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
81ef4dca6b
commit
aa7e0a6eb8
12 files changed
+296
-25
No files matched your search
@@ -280,7 +280,13 @@ useMascotGuide(() => {
|
||||
const el = document.querySelector('.track-card .entry.me, .track-card .prow.me, .track-card .tag.me')
|
||||
el?.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
||||
}
|
||||
return { situation: 'rank', actions: listed ? [{ label: '我在哪', run: findMe }] : [] }
|
||||
const actions = listed ? [{ label: '我在哪', run: findMe }] : []
|
||||
const { me: mine, ahead } = board.value
|
||||
if (mine?.solved && mine.rank === 1) return { situation: 'rank.top', actions }
|
||||
// 同分按先做到排,追平还在后面,所以要比前一名多做 1 道
|
||||
const gap = mine && ahead ? ahead.solved - mine.solved : null
|
||||
if (gap !== null && gap <= 5) return { situation: 'rank.gap', n: gap + 1, actions }
|
||||
return { situation: 'rank', actions }
|
||||
})
|
||||
|
||||
function open(username: string) {
|
||||
|
||||
Reference in new issue
Block a user