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

Add prelude/chess #26

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Add prelude/chess #26

merged 1 commit into from
Feb 9, 2023

Conversation

fizruk
Copy link
Contributor

@fizruk fizruk commented Feb 9, 2023

This is a very primitive implementation of chess using only Prelude. Correctness of moves is not checked. End of game is not checked. But, it is playable, in the sense that it visualises the board after every move :)

Scholar's Mate:

@simonmichael simonmichael merged commit ff598ed into haskell-game:main Feb 9, 2023
@simonmichael
Copy link
Contributor

Wow! Reminds me of https://en.wikipedia.org/wiki/1K_ZX_Chess.

@simonmichael
Copy link
Contributor

I pushed a couple of fixes. Also the script is currently 11 lines (but it looks easy to fix eg by using a runghc shebang.)

@fizruk fizruk deleted the fizruk-chess branch February 10, 2023 04:36
@fizruk
Copy link
Contributor Author

fizruk commented Feb 10, 2023

Indeed, I did not count the shebang for some reason!

@fizruk
Copy link
Contributor Author

fizruk commented Feb 10, 2023

Wow! Reminds me of https://en.wikipedia.org/wiki/1K_ZX_Chess.

I wonder how feasible it is to implement full chess (with an AI) under this challenge (without resorting to something like https://hackage.haskell.org/package/chessIO).

@simonmichael
Copy link
Contributor

It sounds impossible.. and yet 80x10 is not far off 1K..

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

Successfully merging this pull request may close these issues.

2 participants