Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public MustInherit Class Piece
- MustOverride Function CalculateMove(UsedBoard As Board, SourceSquare As Point) As List(Of Point)
- Protected Function CheckWithinArray(Destination As Point) As Boolean
- If (Destination.X >= 0 And Destination.X <= 7) And (Destination.Y >= 0 And Destination.Y <= 7) Then
- Return True
- End If
- Return False
- End Function
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement