I write about software on my personal website.
Recent posts:
♟️ A chess engine with alpha-beta pruning, piece-square tables, move ordering, and command-line UI.
Home Page: https://healeycodes.com/building-my-own-chess-engine/
License: MIT License
I write about software on my personal website.
Recent posts:
When i try and do this it returns the error
[03/26/23 08:24:36] INFO Backing off play_game(...) for 106.1s (chess.engine.EngineTerminatedError: engine process died unexpectedly (exit code: 255))
Andoma does not play when a FEN position is given. It only plays from the initial starting position ..
Whenever I try to add it to cute chess it says cannot run engine and doesn't add it why does this error comes .. I use python main.py in the command dialogue box and the directory of bot files in working directory dialogue box.. if anyone can help me fix this ASAP it would be really helpful
When you take a new board and for example just play the move "e2e4" and afterwards call evaluate_board, it returns a value of -25, which means black is slightly favoured. That would not make sense, because white just moved a pawn to a better square and nothing else happend.
Code used:
from evaluate import evaluate_board
board = chess.Board()
board.push(chess.Move.from_uci("e2e4"))
evaluate_board(board)
# output: -25
After a bit of digging I noticed that the for-loop in evaluate_board
for square in chess.SQUARES
is equivalent to for square in range(64)
.
This means the first square is 0 and therefore would be the first entry in one of the piece-square-tables for example pawnEvalWhite
which is square a8.
But if you call board.piece_at(0)
you get the piece at square a1 instead.
Am I missing something or should the piece-square tables be reversed?
i managed to let Andoma play in CuteChess by the command python ./main.py, however your documentation states the command python run ./main.py should execute the program :
python3: can't open file 'run': [Errno 2] No such file or directory
now it's unclear to me how to help .. here are my gathered Python engines, maybe you could try to add one of those to CuteChess and see if same error occurs :
Originally posted by @tissatussa in #25 (comment)
Any ideas how I can add the engine through command line into the app I am struggling with this error from yesterday idk what to do.please help me somehow... Also I'll try to add other python engines also..
🔧
./movegeneration.py:3:1: F401 'sys' imported but unused
./movegeneration.py:10:11: E221 multiple spaces before operator
./movegeneration.py:11:17: E222 multiple spaces after operator
./movegeneration.py:25:14: E712 comparison to True should be 'if cond is True:' or 'if cond:'
./movegeneration.py:81:1: C901 'minimax' is too complex (13)
./communication.py:20:1: C901 'command' is too complex (14)
./test/test_engine.py:155:128: E501 line too long (212 > 127 characters)
2 C901 'command' is too complex (14)
1 E221 multiple spaces before operator
1 E222 multiple spaces after operator
1 E501 line too long (212 > 127 characters)
1 E712 comparison to True should be 'if cond is True:' or 'if cond:'
1 F401 'sys' imported but unused
hi, i just discovered your Andoma chess engine. Although it's made with Python, i should be able to run it in CuteChess, but it fails .. see screenshots .. i think your UCI protocol is not fully compatible with CuteChess .. i can send you the logs, but you can easily test it in CuteChess yourself .. it seems Andoma is not connecting properly, it performs one move and stops listening to the "CuteChess master" - same with Andoma playing White
[ i use Xubuntu 20.04 ]
Hey, I know that this is not a very active project, but I found it to be the most friendly chess engine to work with, since I needed just a simple "heres my move, what is yours" type of chess engine, which this was very simple to adapt to.
I was wondering if you know an estimate ELO of your chess engine? Both for the default depth of 3 and how it would change if we went deeper or less deep.
Thanks!
hi, since your Andoma works in my CuteChess, i played some games with it .. i know, it's just a simple UCI engine, it even gives pieces for no reason now and then .. nevermind .. i guess your python code is also meant to experiment .. so, i have some questions.
in CuteChess, Andoma plays always very fast, within a second, whatever the time setting .. is this a bug ? Or does it just have a max depth ? The CuteChess settings pane for Andoma is empty ..
in the CuteChess info window, besides the spent thinking time also the eval value could be shown ? I guess this value is somewhere in the code for deciding "best move" ?
and those files in /test : how to use / include them ?
The bot is stronger when playing as Black.
It appears to make blunders when playing as White that it shouldn't make per design.
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.