veloce / capacitor-stockfish Goto Github PK
View Code? Open in Web Editor NEWStockfish chess engine plugin for Ionic Capacitor.
License: GNU General Public License v3.0
Stockfish chess engine plugin for Ionic Capacitor.
License: GNU General Public License v3.0
Trying to build via ios xcode Plugin project, getting an error that
CapacitorStockfish/CapacitorStockfish-Swift.h file not found
is this autogenerated? Cannot seem to find it.
Is there any guidance on how to build & test the plugin on ios? I'm new to the lichobile tech stack but hoping to get up to speed quickly!
Hello! i'm trying to use your plugin, but can't build the app du to the error. I even tryed to download that file from https://tests.stockfishchess.org/nns and included in the src tree, but still have an error. Could you please help ne with that?
Hi, just trying to get this project building on osx. I'm seeing the following:
$ npm run build
> [email protected] build /Users/adamklein/Developer/capacitor-stockfish
> npm run clean && tsc && rollup -c rollup.config.js
> [email protected] clean /Users/adamklein/Developer/capacitor-stockfish
> rimraf ./dist
src/web.ts:12:9 - error TS2416: Property 'getMaxMemory' in type 'StockfishWeb' is not assignable to the same property in base type 'StockfishPlugin'.
Type '() => Promise<number>' is not assignable to type '() => Promise<{ value: number; }>'.
Type 'Promise<number>' is not assignable to type 'Promise<{ value: number; }>'.
Type 'number' is not assignable to type '{ value: number; }'.
12 async getMaxMemory(): Promise<number> {
~~~~~~~~~~~~
Found 1 error.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `npm run clean && tsc && rollup -c rollup.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.../.npm/_logs/2021-10-04T17_45_57_377Z-debug.log
Could this be an issue with my typescript version?
$npm tsc -v
6.14.15
make -C node_modules/capacitor-stockfish/stockfish/src/ build
...
main.cpp:49:8: error: no member named 'loop' in namespace 'Stockfish::UCI'
UCI::loop(argc, argv);
~~~~~^
1 error generated.
make[1]: *** [main.o] Error 1
make: *** [build] Error 2
I'm not sure how this happened, but it appears UCI::loop
was renamed UCI::command
, but is still expected to be the latter:
capacitor-stockfish/stockfish/src/uci.cpp
Lines 225 to 231 in 9bdcefe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.