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

Implement chess #53

Open
JonBergland opened this issue Jul 16, 2024 · 3 comments
Open

Implement chess #53

JonBergland opened this issue Jul 16, 2024 · 3 comments

Comments

@JonBergland
Copy link
Collaborator

Have the chess be playable and have an workable opponent to play against

@JonBergland
Copy link
Collaborator Author

The chess is made so that always the whites are on the bottom and the blacks on the top. Whoever starts always moves the white ones first.

@JonBergland
Copy link
Collaborator Author

Skjermbilde 2024-07-16 131156
Here the bot starts so when the player tries to move the same pieces (white) it is marked as an invalid move.
image
Made the player move the black pieces and the test passed.

Also changed the gametype from Tic-tac-toe into Chess to fix the weird actions
image

@JonBergland
Copy link
Collaborator Author

image
After running the previous test (testLetBotMoveSeveralTime) and checking the resulting board I found no changes to the board. Tested it twice with the same result. The bot-type is "Random" so the white pieces should be in a different place. Maybe the error is in here?

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

1 participant