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 Equal method to board.Board #227

Open
artasparks opened this issue Feb 6, 2021 · 0 comments
Open

Add Equal method to board.Board #227

artasparks opened this issue Feb 6, 2021 · 0 comments
Assignees
Labels
Difficulty:DDK Double Digit Kyu Level. Describes a problem that is good for newcomers.

Comments

@artasparks
Copy link
Member

We should add an Equal method to board.Board. This allows us to use cmp.Equal

See

Note that Equal methods must have the following properties

If the values have an Equal method of the form "(T) Equal(T) bool" or "(T) Equal(I) bool" where T is assignable to I, then use the result of x.Equal(y) even if x or y is nil. Otherwise, no such method exists and evaluation proceeds to the next rule.

@artasparks artasparks added the Difficulty:DDK Double Digit Kyu Level. Describes a problem that is good for newcomers. label Feb 6, 2021
@artasparks artasparks changed the title Add an equal method to board.Board Add Equal method to board.Board Feb 6, 2021
@RodDeacon RodDeacon self-assigned this Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty:DDK Double Digit Kyu Level. Describes a problem that is good for newcomers.
Projects
None yet
Development

No branches or pull requests

2 participants