This repo contains TypeScript typings for yare.io, a programming game where you use Javascript to control your game units (called "spirits") and try to kill the enemy base.
The recommended way to use these typings is via a Git submodule:
- First, in the root of your project, run
git submodule add https://github.com/Jules-Bertholet/yareio-typescript-typings typings
. - Second, update your
tsconfig.json
so thattypeRoots
is set to["./typings", "./node_modules/@types"]
(you can add additional directories to the list in front oftypings
if you have your own types you want to have take precedence).
These typings are designed to allow writing a bot that can play any shape. If you always play the same shape, you can add a declaration to make your life easier:
declare const my_spirits: CircleSpirit[];