Chengke
Chengke
能否考虑以网页的形式展示输出结果?相信网页展示相比于终端有以下优势 - 界面美观 - 可以隐藏一部分信息使得输出详略得当 (需要的时候在网页上点击展开相关内容) - 结果可以更加直观地显示(比如,给危险牌添加红色的 background-color ) 我能想到的一种实现方法: 在函数 `func (d *roundData) analysis() error`,收集需要在网页展示的信息,并将其作为一个状态保存在 `mjHandler struct`。客户端可以定期(比如500ms)查询这个状态;也可以通过 websocket 或 server-sent events 让服务器发现状态更新时主动 push 给客户端。
目前完成度:  已知的 bug: - [x] 在鸣牌的时候显示有可能会出错 - [ ] 数据结构的读写因为没有加锁,可能会少显示一些内容 - [ ] 雀魂使用的是 https,还没有做雀魂的适配
关于颜色,现在的方案是设置几个关键点的颜色(见下面的代码),关键点之间的颜色用 linear-gradient 计算(这里用的是 RGB color space。我也尝试过 HSL,但是效果并不是很好) ```js let gradient = [ { risk: 0.0 , color: [255, 255, 255] }, // 绝安,白色 { risk: 1e-5 , color: [131, 179,...
Same issue. I have a GCLB cookie for www.overleaf.com but not for overleaf.com. I replace `self._cookie["GCLB"]` with the cookie value copied from chrome and ols works. ``` # olclient.py 165...
1. Visit the online demo https://d180cf.github.io/ 2. Place the black and white stones on the board. Make sure that these exists "a thick wall" enclosing the stones being captured. Checkout...
Good point. However, my concern is that [1:3] in your example is hard-coded at compile time. Suppose a user wants to print the first n but no more than 10...
> Currently, we need to manually select a block using `v` to interact with. Can we auto-select a block based on the tree-sitter context? We can use the [incremental_selection feature](https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#incremental-selection)...