nonameShijian
nonameShijian
# Bug Report ## Problem When I use ServiceWorker, the browser gives an error: `TypeError: Failed to register a ServiceWorker for scope ('https://localhost/') with script ('https://localhost/service-worker.js'): An unknown error occurred...
以Dialog为例: 创建testDialog.vue: 内容就是初始dom模板和其Dialog的构造函数,其的其他方法由原先的类js中获取 ```vue import { Dialog } from "/noname/library/element/dialog.js"; import { ref, onMounted } from "/game/vue.esm-browser.js"; import { AI as ai } from '/noname/ai/index.js'; import { Get as get...
按三国杀游戏规则来说,每名角色的AI逻辑在固定模式的固定身份中是一致的。而卡牌是游戏规则中的一部分,所以,Player和Card的AI代码应该是写死的,然后通过Player的技能来拦截,修改对应的AI策略。 而技能的AI逻辑,无名杀实现的是,通过执行js代码得到一个数字,来作为进行此次选择的逻辑,这样虽然简单,但是ai因此并不能考虑其他的事情。我认为技能的AI应该是让AI懂得这个技能是什么效果,用了这个技能会有什么连锁反应。 所以,要使AI更聪明,应该将框架修改为AI推演
1.使用同一个html文件来保证配置一定 2.创建新的运行时,可通过“文件链接”来保证部分或所有素材一致 3.每个运行时的config不应该一致 4.提供删除某一运行时的功能
**加入新写法依旧兼容老写法** ### 事件异步形式: 一系列的创建事件函数将默认返回Promise对象 使用await或then来获取事件的执行结果(即原先的事件对象) 最简单的例子: ```js console.log(player.draw()) // Promise console.log(await player.draw()) // GameEvent ``` 复杂事件例子: (注: await一般只能在async function中使用) ```js const event = player.chooseBool('是否发动【xx】?'); console.log(event) //Promise // 以下几种方法获取事件的result(结果): event.then(({result})=>console.log(result)); const...
设备: 安卓14小米澎湃 在这个配置的情况下  app单独使用android.permission.REQUEST_INSTALL_PACKAGES 权限不能获取到已安装的chrome的包信息,必须使用queries明确指定chrome才行 但是系统给app这个权限默认是允许的(仅运行时允许)  
```java Map fixFileHeaders = new HashMap(); fixFileHeaders.put(fileHeader.getFileName(), newName); zipFile.extractAll(filePath, fixFileHeaders); ```
I am using version 2.11.5 of net.lingala.zip4j:zip4j to unzip a ZIP file. This ZIP file was compressed using the WinRAR software on the Windows 10 system, so its default encoding...
以避免侵权问题。 ## 检查清单 - [x] 此问题没有在其他issue(议题)中出现 - [x] 我已将无名杀本体更新为最新版本 - [x] 我已将所有扩展更新为最新版本 - [x] 我填写了上面所有必要的信息