Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: get moves for piece #11

Closed
DarthChucks opened this issue Jan 10, 2012 · 1 comment
Closed

Request: get moves for piece #11

DarthChucks opened this issue Jan 10, 2012 · 1 comment

Comments

@DarthChucks
Copy link

I'd like to get a list of possible moves the piece on a particular space. Right now the "moves" function returns all possible moves for every piece of the color taking the turn. I can filter that list down to the piece I'm interested in, however it seems fairly inefficient to build the full list and then pare it back down.

User Story: As a player, I want to see all possible moves for the piece I've selected so that I can choose where to move the piece.

@jhlywa
Copy link
Owner

jhlywa commented Dec 14, 2012

Added in 9d2489a. See https://github.com/jhlywa/chess.js#moves-options- for more info.

@jhlywa jhlywa closed this as completed Dec 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants