checkAdjacent(dot1, dot2) {
    let rowDiff = Math.abs(dot1.row - dot2.row);
    let columnDiff = Math.abs(dot1.column - dot2.column);

    if (rowDiff + columnDiff === 1)
      return true;

    if (dot1.row % 2 === 0) {
      if (dot2.column === dot1.column - 1 && rowDiff === 1)
        return true;
    }
    else {
      if (dot2.column === dot1.column + 1 && rowDiff === 1)
        return true;
    }

    return false;
  }
// Returns true if these dots are next to each other on the hex grid
Returns true if these dots are next to each other on the hex grid
Returns true if these dots are next to each other on the hex grid
checkAdjacent(dot1, dot2) {
    let rowDiff = Math.abs(dot1.row - dot2.row);
    let columnDiff = Math.abs(dot1.column - dot2.column);
    if (rowDiff + columnDiff === 1)
      return true;
    if (dot1.row % 2 === 0) {
      if (dot2.column === dot1.column - 1 && rowDiff === 1)
        return true;
    }
    else {
      if (dot2.column === dot1.column + 1 && rowDiff === 1)
        return true;
    }
    return false;
  }
checkAdjacent ( dot1 , dot2 ) { let rowDiff = Math . abs ( dot1 . row - dot2 . row ) ; let columnDiff = Math . abs ( dot1 . column - dot2 . column ) ; if ( rowDiff + columnDiff === 1 ) return true ; if ( dot1 . row % 2 === 0 ) { if ( dot2 . column === dot1 . column - 1 && rowDiff === 1 ) return true ; } else { if ( dot2 . column === dot1 . column + 1 && rowDiff === 1 ) return true ; } return false ; }
Returns true if these dots are next to each other on the hex grid
Returns true if these dots are next to each other on the hex grid