alexobviously / alexobviously/bishop
Override == and hashCode for GameResults
Đang mở
style
- Ngôn ngữ chính
- Dart
- Star
- 23
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Use case: allow code like `g.result == WonGameCheckMate(winner: Bishop.white)`
Probably even more useful is `g.result.isWon(Bishop.white)` (allowing the winner to be null also, in which case it's the same as a `is WonGame` check.
cc @callumbeaney
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.