python + javascript 强化学习
游戏 = 渲染 + 逻辑.
使用 javascript 构建游戏引擎. 在 python 中使用 mini-racer 嵌入 v8 引擎解析游戏核心逻辑. 使用 python 将其封装为 gymnasium 环境用于训练模型.
训练后的模型导出为 ONNX, 使用 web-onnx-runtime 在浏览器导入模型, 然后使用同一套游戏逻辑引擎. 配合 html, css, javascript 构建渲染逻辑.
- Title: python + javascript 强化学习
- Author: Ivan
- Created at : 2026-11-15 00:00:00
- Updated at : 2026-11-15 17:50:20
- Link: https://ivanfan-van.github.io/2026/11/15/note-1-inbox-418a839ce557ac07/
- License: This work is licensed under CC BY-NC-SA 4.0.