Giter Site home page Giter Site logo

chessai's People

Contributors

dirk94 avatar phi12ip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chessai's Issues

Cannot create a valid move

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.

Check and Checkmate

There are various issues regarding checkmate. For example, checkmate is not declared when it the user is checkmated.

Got this error on the chess AI. No idea how to fix it. Please help!

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'

KingSide Castling

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.

Some thoughts.

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.

Moves

Please can you add example moves to the README.

Docstrings

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?

Adding a license to the project

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

"en passant" moves are not implemented?

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.