Skip to content

Implement the Inspect protocol #60

@alecho

Description

@alecho

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions