【文件属性】:
文件名称:pokemon:口袋妖怪战斗模拟器,旨在模拟Weedle vs. Agatha
文件大小:286KB
文件格式:ZIP
更新时间:2021-03-06 03:18:35
pokemon pokemon-battle-simulator pokemon-battle TypeScript
宠物小精灵
我仍然不知道这是怎么回事。
模拟与口袋妖怪之战有关的事物。
安装
npm i @mehra/pokemon
如果使用CLI命令而不使用抽象库,则通常需要进行全局安装:
npm i -g @mehra/pokemon
链接
图书馆
lib/应该已经执行了大多数规则。
要创建播放器:
const Weedle = new Player (
Players . Weedle , // The configuration for the player
// Presets are exported from players.ts.
true , // Whether the player is human;
// applies different rules
Math . random // The function to generate rando