Created
May 25, 2021 20:16
-
-
Save buvinghausen/e8750dea70da9e8b7613bb608570766b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
bool bishopAndPawn(string bishop, string pawn) => | |
Math.Abs(bishop[0] - pawn[0]) == Math.Abs(bishop[1] - pawn[1]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment