dirk94 / chessai Goto Github PK
View Code? Open in Web Editor NEWChess AI written in Python
Chess AI written in Python
When running on anaconda I got errors for there being no Board attribute of board. I corrected these errors by setting all instances of board.Board to just board however now I cannot seem to create a single valid move.
There are various issues regarding checkmate. For example, checkmate is not declared when it the user is checkmated.
Traceback (most recent call last):
File "E:###I\main.py", line 39, in
move = get_valid_user_move(board)
File "E:###\main.py", line 22, in get_valid_user_move
possible_moves = board.get_possible_moves(pieces.Piece.WHITE)
File "E:###\board.py", line 61, in get_possible_moves
moves = moves + piece.get_possible_moves(self)
File "E:###\pieces.py", line 83, in get_possible_moves
return self.get_possible_horizontal_moves(board)
File "E:###I\pieces.py", line 41, in get_possible_horizontal_moves
for i in range(1, board.Board.WIDTH - self.x):
AttributeError: 'Board' object has no attribute 'Board'
Does Kingside Castling not work? Queenside Castling works for me but not Kingside. Eg. I do E1 G1 and it only moves the king not the rook.
Hello. I am working on a python chess project myself and came across your program for ideas on how to make the AI...
Your program looks very elegant and the AI part is good, but as I ran the code, it passed some errors. And you can take take a look at my program(which is messy and unorganised because it lacks classes). I suggest using pygame for gui -which is very easy to impliment.
It also misses Pawn promotion. A filter for valid moves is missing(i guess).
But it is some good work on the whole.
Please can you add example moves to the README.
Hi
I was going to open a pull request with some docstrings for functions, so they are easier to read and debug. Would that be OK?
I implemented a GUI, some new features, and various fixes to this project for myself some time ago as a personal project. However, I think I can't publish it anywhere since the project has no license, according to GitHub's licensing help page.
My only intention is to publish my version of this amazing repo as an open-source project. Should I fork it and put the changes there? Or am I allowed to create a new repo and give credit to this project in the description?
"en passant" moves are not implemented?
I couldn't find a flag or a way to flip the AI to be white, is there a way to do it?
I found that this code can not use Castling. Have you any way?
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.