Add TODO about collisions
This commit is contained in:
parent
5e9e4a14d5
commit
a8dd06590a
|
@ -211,6 +211,7 @@ func (b *Board) movePawn(position string) error {
|
||||||
// * 2 moves from start position
|
// * 2 moves from start position
|
||||||
// * 1 move otherwise
|
// * 1 move otherwise
|
||||||
// * diagonal if attacking
|
// * diagonal if attacking
|
||||||
|
// * no collision with other pieces
|
||||||
|
|
||||||
return fmt.Errorf("no pawn found that can move to %s", position)
|
return fmt.Errorf("no pawn found that can move to %s", position)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue