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 the Inspect protocol #60

Open
alecho opened this issue Oct 13, 2021 · 0 comments
Open

Implement the Inspect protocol #60

alecho opened this issue Oct 13, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@alecho
Copy link
Owner

alecho commented Oct 13, 2021

When debugging or viewing the game state in logs with inspect it would be easier for humans to see a game board representation as opposed to a struct.

Describe the solution you'd like
Implement the Inspect protocol for %Chex.Game{}

A to_string function would work as well and could be implemented at the same time.

Additional context
https://hexdocs.pm/elixir/1.12/Inspect.html

@alecho alecho added the enhancement New feature or request label Oct 13, 2021
@alecho alecho self-assigned this Oct 13, 2021
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