Game/Board/Coords.cs
/// <summary>
/// Finds out if coordinate tile is white
/// </summary>
/// <param name="coords"></param>
/// <returns></returns>
Finds out if coordinate tile is white
Finds out if coordinate tile is white
public static bool IsWhiteTile(this Coords coords)
        {
            bool reverseTile = coords.Row() % 2 != 0;
            bool whiteTile = coords.Column() % 2 == 0;
            return reverseTile ? !whiteTile : whiteTile;
        }
public static bool IsWhiteTile ( this Coords coords ) { bool reverseTile = coords . Row ( ) % 2 != 0 ; bool whiteTile = coords . Column ( ) % 2 == 0 ; return reverseTile ? ! whiteTile : whiteTile ; }
Finds out if coordinate tile is white
Finds out if coordinate tile is white
None
Coords
this
coords
None