Skip to content

Instantly share code, notes, and snippets.

@buvinghausen
Created May 25, 2021 20:16
Show Gist options
  • Save buvinghausen/e8750dea70da9e8b7613bb608570766b to your computer and use it in GitHub Desktop.
Save buvinghausen/e8750dea70da9e8b7613bb608570766b to your computer and use it in GitHub Desktop.
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