Advertisement
Just_Tom

Untitled

Mar 24th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VisualBasic 0.40 KB | Source Code | 0 0
  1. Public MustInherit Class Piece
  2.     MustOverride Function CalculateMove(UsedBoard As Board, SourceSquare As Point) As List(Of Point)
  3.     Protected Function CheckWithinArray(Destination As Point) As Boolean
  4.         If (Destination.X >= 0 And Destination.X <= 7) And (Destination.Y >= 0 And Destination.Y <= 7) Then
  5.             Return True
  6.         End If
  7.         Return False
  8.     End Function
  9. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement