ygocore-interface
WIP ygopro-core(https://github.com/moecube/ygopro-core) api wrapper
Install
npm install ygocore-interfacenpm install ygocore # for core engine
How to use
;;;// initialize the engine, see http://github.com/ghlin/node-ygocore//// engine.registerCard(/* ... */);// engine.registerScript(/* ... */);// create the duel;while true
Constants defined in ocgcore/common.h
are also exported:
;// e.g. LOCATION.HAND => LOCATION_HAND (in common.h)
TODOs
- A playable demo
- Handle response time-out
- TAG duel
- Parse replay file (.yrp)
- Type definitions for user response
- Documentation?