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

Smart contract to verify game outcome #9

Open
kchalkias opened this issue Dec 20, 2018 · 1 comment
Open

Smart contract to verify game outcome #9

kchalkias opened this issue Dec 20, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@kchalkias
Copy link
Collaborator

At the moment the game rules are checked from chess.js at client-side. For a complete and fair cordapp, this should happen at the smart contract's verify function.

@kchalkias kchalkias added the enhancement New feature or request label Dec 20, 2018
@kchalkias
Copy link
Collaborator Author

Note that the check should include:
a) Move is valid
b) original FEN + move = final FEN (to ensure the final FEN is valid)
c) final FEN is a checkmate state.

Similar logic (changing step c) should apply when checking for stalemate: #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant