🧠 自己摸索学玩游戏 · 强化学习直播🧠 Learn the Game by Trial and Error · Reinforcement Learning LIVE

这次没有老师、没有示范、也没有图。机器人只知道游戏的奖励:吃到金币 +10,撞到障碍 −12。它靠自己一局一局试出来。打开链接就能自己训,不用服务器。No teacher, no demos, no pictures — only rewards: coin +10, hit −12. It learns by trying, one game at a time. Open the link and train it yourself — runs entirely in your browser, no server.

正在加载 Python 环境……加载好后点"开始训练"。Loading Python in your browser…

📈 分数爬坡 · 它在变厉害吗?📈 Score Climb · Is It Getting Better?

每个点是一局的得分(灰点);粗线是最近 25 局的平均分。线往上走,就是学到了。Each dot is one game's score (grey); the thick line is the average of the last 25 games. If the line goes up, it is learning.

第Game 0 / 500 局/ 500 games  ·  最近 25 局平均Last-25 average —  ·  本局This game —

🕹️ 实况:它正在玩🕹️ Live Play

画面是机器人刚玩完那局的回放(真实走位)。一开始横冲直撞,后来越来越会躲、会吃金币。This is a replay of the game the agent just played (its real moves). At first it blunders around; later it dodges and collects coins more and more.

分数:Score:0
生命:Lives:♥♥♥
金币:Coins:0
第几局:Game:—
老师满分 250 · 专家 expert = 250
重量级模型 SmolVLA = 241.1
Teacher's perfect score: 250
Heavyweight model SmolVLA = 241.1

🎲 探索率:它还在乱试吗?🎲 Exploration Rate: Is It Still Guessing?

探索率 ε = 每一步随机乱走的概率。一开始 100%(全靠蒙),越学越低,最后只留 5% 的好奇心。Exploration rate ε = the chance of moving randomly at each step. It starts at 100% (pure guessing), falls as it learns, and keeps just 5% curiosity at the end.

ε = 100%

🧾 经验表:机器人脑子里记得什么?🧾 Value Table: What Does It Remember?

每个格子是一个局面的"值多少分"—— 机器人对局面的记忆。绿色越深越觉得好,红色是觉得糟。数字会随着训练变。Each cell is how much a situation is "worth" — the agent's memory of situations. Darker green means better, red means bad. The numbers change as it trains.

局面固定为:金币在右边中等距离,人在中间车道。行=障碍有多近,列=障碍在哪个方向。Fixed situation: the coin is at medium distance on the right, the player is in the middle lane. Rows = how near the obstacle is, columns = which direction it is in.

一个局面,三种走法的值:One situation, three moves, three values:

障碍在正前方很近,金币在右边,人在中间车道。机器人现在觉得哪种走法最好?The obstacle is very near straight ahead, the coin is on the right, the player is in the middle lane. Which move does the agent think is best now?