Skip to content

Create Chess environment #1

@thomasfortin1

Description

@thomasfortin1

Research/setup virtual chess environment. https://pypi.org/project/gym-chess/ seems like a good library to use. It apparently comes with an AlphaZero board encoding already so we may not have to translate the chess board state into that grid we learned about today since the library may do it for us already.
Here is a rough list of requirements for the simulation, I may have to add more later as I think of them:

  • Check if current position is checkmate/stalemate/draw by insufficient material
  • Get all possible moves from current position
  • Alter current position by making a move
  • Display current position in a nice way for debugging purposes
    Like I said, I think the library does all those things so it's just a matter of reading the documentation and then making some examples to show everyone how to use it.🙂
  • Count repetitions and 50 move rule (not sure if the library does this already. It probably does but if not it wouldn't be too hard to implement)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions