Closed tissatussa closed 2 months ago
btw. the book file VICEbook.bin
seems needed when running the engine, not performance.bin
..
Thank you for your message! The engine is producing illegal moves because the magic bitboards aren't working properly yet. I took a bit of a hiatus from developing it and will get back to it soon to debug it. I apologise for not saying so on my page, as I didn't expect people to use it. The “performance.bin" part was something I forgot to change in the makefile, which was careless of me. "VICEbook.bin" is correct. I'm new to git/github so I'm not sure how to remove CMakeFile and stuff without just deleting them locally. I have gitignore but it doesn't seem to do anything about those. I didn't add tinycthreads.c to the makefile as I haven't implemented multithreading yet, so it's not needed for building it.
Anyway, thank you for taking the time to test it out and building it on Linux. I work on Windows and I barely know anything about making it work on Linux. Appreciate the feedback.
The engine is producing illegal moves because the magic bitboards aren't working properly yet...
well, then it's clear ..
The “performance.bin" part was something I forgot to change in the makefile, which was careless of me. "VICEbook.bin" is correct.
OK, that's what i thought ..
I'm new to git/github so I'm not sure how to remove CMakeFile and stuff without just deleting them locally. I have gitignore but it doesn't seem to do anything about those.
i understand .. i don't create any program using GitHub, i just find (chess engine) sources and try to compile / use them .. while doing so, i learn a lot and (simple) engines are fun .. authors use different programming languages & module versions and those need their own compilation methods .. i'm only using Linux, but i worked with Window$ for many years .. using GitHub to develop a program is not easy, i know .. some time ago someone showed me how it works and what can be done with it, but i forgot most of it .. if you want to learn -like i do, also now- don't hesitate to contact other programmers, they can easily point you to proper info or even take the time to explain things themself .. maybe you can just ignore that "..removing CMakeFile and stuff.." while developing, only adjust all files when a next working version is ready ?
I didn't add tinycthreads.c to the makefile as I haven't implemented multithreading yet, so it's not needed for building it.
sounds fair, never mind ..
..thank you for taking the time to test it out and building it on Linux. I work on Windows and I barely know anything about making it work on Linux. Appreciate the feedback.
i'm following projects like yours & get notifications by email .. when a new version arrives i will try and test it. Many programmers only use Windows and they don't create 'universal' code which runs on any OS, or they aren't able to test it .. i think it's possible in C to create code which runs anywhere, but it must be hard .. many programmers switch to Rust, which is modern and also gives fast binaries (i think), maybe you'd consider that .. why do you use C and not C++ ? I guess C is fastest though (but hard to code) .. anyway, you should try to use methods & constructs which suit most OS / versions (except 32-bit nowadays).
i can test on Linux anytime, to develop your code - you're welcome .. we'll both learn!
final words for now : you should update the README in any case, not just for users (like me) but also to make things clear for yourself - writing history / changes etc. will help all of us and it clears the mind ..
hi, i see you created v0.26 but there's no CMakeLists.txt ? Normally we run just cmake .
: it will use that CMakeLists.txt to fully compile a custom binary, Linux in my case.
weird, did .gitignore make it disappear from the repo? I have CMakeLists.txt on my local directory.
should be in release folder. see if it works
@TampliteSK as far as i know cmake works like this :
/build < is created by cmake, and/or is empty
/.cache < is not needed (leftover from your own installation ?)
/CMakeFiles < is created by cmake (leftover from your own installation ?)
/Release < is created by cmake and/or empty
/Source < should not contain a makefile, that is (re)created by cmake
/.vscode < on Linux i don't use this
CMakeCache.txt < leftover from your own installation ?
cmake_install.cmake < leftover from your own installation ?
CMakeLists.txt <<<<< i expect this file here, but it isn't
.gitignore
LICENSE
README.md
Pushed a commit, but it looks like /build is some sort of CMake cache. It will generate it every time CMake runs.
to compile your source, i think terminal should be in the root of your package, then first thing cmake .
does is removing files and folder of a previous build, like emptying /build and deleting /CMakeFiles, but maybe i'm wrong.
..but maybe i'm wrong
i mean, i don't know how cmake uses that Cache ..
cmake . just seems to create even more cache files :((
i just discovered your engine and i was able to compile it on Linux, but i had to change several things in your code (files) :
CMakeFiles
shouldn't exist, it's created bycmake
on the computer of the user regarding the concerning custom folder - i removed it.build
should be empty for the same reason (it contains YOUR createdcmake
files & folders)..vscode
and.cache
- there's no need for those.CMakeLists.txt
, so i removed the filesCMakeCache.txt
andcmake_install.cmake
- they were created by YOURcmake
.due to
cmake
error messages i discovered the compilation must be done inside thebuild
folder .. i did :but then
cmake
complained itCannot find source file
s :so i copied the book file
VICEbook.bin
into thatSource
folder and renamed it toperformance.bin
. when looking into the fileCMakeLists.txt
(although we should normally not edit it!) and comparing it to the code files, i found you included a file which isn't there and you also forgot some :after these changes the compilation went well (doing
cmake ../
and thenmake
) and i get a working binary of 112.8 Kb. NOTE: amakefile
in/Source
exists, but it's not needed - it can also be removed.then i let this v0.25 play games against another engine (in CuteChess GUI), but it fails immediately by making an illegal move .. this happened with White and Black :
log tail :
log tail :
[ i'm on Xubuntu 22.04 ]