GithubHelp home page GithubHelp logo

chrisbutner / chesscoach Goto Github PK

View Code? Open in Web Editor NEW
441.0 8.0 19.0 69.85 MB

Neural network-based chess engine capable of natural language commentary

Home Page: https://chrisbutner.github.io/ChessCoach/

License: GNU General Public License v3.0

Batchfile 0.12% Python 3.77% C++ 83.34% C 7.22% Meson 0.19% Shell 0.19% NASL 3.07% Pawn 0.07% Dockerfile 0.06% CSS 0.11% JavaScript 1.22% HTML 0.65% Makefile 0.01%
alphazero chess chess-engine commentary-generation cpp gpu keras lichess-bot nlg tensorflow

chesscoach's Issues

ninja: build stopped: subcommand failed.

I am trying to install on Ubuntu 22.10

setup.sh:had to replace the following line
#sudo apt-get install -y --no-install-recommends qt5-default
sudo apt-get install -y --no-install-recommends qtbase5-dev qtchooser qt5-make qtbase5-dev-tools

then all fine until (problem: see end of text)

(venv) heinzl@Tower:~/Downloads/ChessCoach-main$ sudo ./build.sh release install
++ dirname ./build.sh

  • pushd .
    /home/heinzl/Downloads/ChessCoach-main /home/heinzl/Downloads/ChessCoach-main
  • [[ 2 -eq 0 ]]
  • case $1 in
  • BUILD_TYPE=release
  • shift
  • BUILD_DIRECTORY=build/gcc/release
  • '[' '!' -f build/gcc/release/build.ninja ']'
  • ninja -C build/gcc/release install
    ninja: Entering directory `build/gcc/release'
    [1/11] Compiling C++ object libstockfish.a.p/cpp_Stockfish_syzygy_tbprobe.cpp.o
    FAILED: libstockfish.a.p/cpp_Stockfish_syzygy_tbprobe.cpp.o
    c++ -Ilibstockfish.a.p -I. -I../../.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Werror -std=c++17 -O3 -march=native -O2 -DNDEBUG -flto -Wl,--start-group -lstdc++fs -Wl,--end-group -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx2 -mpopcnt -mbmi2 -DNO_PREFETCH -DUSE_POPCNT -DUSE_PEXT -DIS_64BIT -Wall -Wextra -Wpedantic -Wno-unknown-pragmas -Wno-sign-compare -fPIC -MD -MQ libstockfish.a.p/cpp_Stockfish_syzygy_tbprobe.cpp.o -MF libstockfish.a.p/cpp_Stockfish_syzygy_tbprobe.cpp.o.d -o libstockfish.a.p/cpp_Stockfish_syzygy_tbprobe.cpp.o -c ../../../cpp/Stockfish/syzygy/tbprobe.cpp
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp: In member function ‘void {anonymous}::TBTables::clear()’:
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp:451:15: error: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘{anonymous}::TBTables::Entry’ {aka ‘class std::tuple<long unsigned int, {anonymous}::TBTable<::WDL>, {anonymous}::TBTable<::DTZ>>’} with no trivial copy-assignment; use assignment instead [-Werror=class-memaccess]
    451 | memset(hashTable, 0, sizeof(hashTable));
    | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/include/c++/12/mutex:38,
    from ../../../cpp/Stockfish/syzygy/tbprobe.cpp:30:
    /usr/include/c++/12/tuple:609:11: note: ‘{anonymous}::TBTables::Entry’ {aka ‘class std::tuple<long unsigned int, {anonymous}::TBTable<::WDL>, {anonymous}::TBTable<::DTZ>>’} declared here
    609 | class tuple : public _Tuple_impl<0, _Elements...>
    | ^~~~~
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp: In function ‘int Tablebases::probe_dtz(Position&, ProbeState*)’:
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp:1462:22: error: loop variable ‘move’ of type ‘const Move&’ binds to a temporary constructed from type ‘const ExtMove’ [-Werror=range-loop-construct]
    1462 | for (const Move& move : MoveList(pos))
    | ^~~~
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp:1462:22: note: use non-reference type ‘const Move’ to make the copy explicit or ‘const ExtMove&’ to prevent copying
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp: In instantiation of ‘Tablebases::WDLScore {anonymous}::search(Position&, Tablebases::ProbeState*) [with bool CheckZeroingMoves = false]’:
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp:1407:25: required from here
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp:1193:22: error: loop variable ‘move’ of type ‘const Move&’ binds to a temporary constructed from type ‘const ExtMove’ [-Werror=range-loop-construct]
    1193 | for (const Move& move : moveList)
    | ^~~~
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp:1193:22: note: use non-reference type ‘const Move’ to make the copy explicit or ‘const ExtMove&’ to prevent copying
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp: In instantiation of ‘Tablebases::WDLScore {anonymous}::search(Position&, Tablebases::ProbeState*) [with bool CheckZeroingMoves = true]’:
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp:1439:32: required from here
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp:1193:22: error: loop variable ‘move’ of type ‘const Move&’ binds to a temporary constructed from type ‘const ExtMove’ [-Werror=range-loop-construct]
    ../../../cpp/Stockfish/syzygy/tbprobe.cpp:1193:22: note: use non-reference type ‘const Move’ to make the copy explicit or ‘const ExtMove&’ to prevent copying
    cc1plus: all warnings being treated as errors
    ninja: build stopped: subcommand failed.

[Un]grounded truth

I played a single game but the commentary contains complete nonsense.

9... b4: "Black moves his knight to g4 attacking my LB at g3."

Nonsensical. Blacked moved their knight to h5, White had recently moved their knight to h1

22... gxf4: "White is now down a piece, but he has a strong pawn center, and the bishop pair. White is in trouble. The position is still lost, but black has a strong pawn center and the white king is very exposed."

Factually incorrect. White doesn't have a bishop pair, in fact there are no bishops on the board!

Run ChessCoach without high end graphics card.

I want to try ChessCoach but I don't have a high end graphics card.
I know I can't run Lela chess engine, ore it is very weak on my PC.
Stockfish 16 is very strong on my Windows 11 PC from 10 years old.
I don't want to install everyting to find out it is not working on my PC like it should.
Are there any updates planned so ChessCoach can be used wouthout high end graphics cards?

prebuilt binaries

hi, I appreciate if you could provide prebuilt binaries for windows as the installation steps you mentioned is very technical

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.