Ure_screeps_AI_rollup is an AI for screeps which is a game.
You will need:
- Node.JS (10.x)
- A Package Manager (Yarn or npm)
- Rollup CLI (Optional, install via
npm install -g rollup
)
Download the latest source here and extract it to a folder.
Open the folder in your terminal and run your package manager to install the required packages and TypeScript declaration files:
# npm
npm install
# yarn
yarn
if there is an error such as "can't find the package" when installing by npm install, try to switch the source of npm by using the npm command below:
npm i nrm -g
nrm ls
then the source list should be shown. you can choose another source by:
# name is any source name on the list above.
nrm use name
then the install command should work.
It will run when you do a commit, and you could get some test data after the github action is done.
An useful test tool called as Screeps-Profiler is used. Some data files would being generated after finishing integration test. You can watch the callgrind graph by using the Qcachegrind/Kcachegrind and open these files in the software. The cpu statistical data are included.