public static LocationModel get_Checker_Location_By_(int board_position, int roll_position) {
    LocationModel result = new LocationModel();
    if (board_position
        == 0) // وقتی موقعیت بردپوزیشن صفر باشه یعنی میخوایم مکان هیت شده های سفید رو بهمون بده
    {
      result.x = 335;
      result.y = 80;
      return result;
    }
    if (board_position
        == -1) // وقتی موقعیت بردپوزیشن منهای یک باشه یعنی میخوایم مکان هیت شده های سیاه رو بهمون
    // بده
    {
      result.x = 335;
      result.y = 292;
      return result;
    }

    if (board_position == 101) {
      result.x = 711;
      result.y = (12 - 10) + (roll_position * 10);
      return result;
    }
    if (board_position == 100) {
      result.x = 711;
      result.y = (404) - (roll_position * 10);
      return result;
    }

    result.board_Postion = board_position;
    result.roll_Position = roll_position;
    if (board_position <= 12) {
      int ydec = 30;
      int c = 1;
      result.x = 683 - (board_position * 50);
      result.y = 406 - (roll_position * ydec);
      if (board_position > 6) result.x -= 50;
    }
    if (board_position > 12) {
      int ydec = 30;
      int c = 1;
      result.x = -17 + ((board_position - 12) * 50);
      result.y = -15 + (roll_position * ydec);
      if (board_position > 18) result.x += 50;
    }
    return result;
  }
  public static LocationModel get_MoveHighlight_Location_By_(byte rc) {
    LocationModel res = new LocationModel();
    if (rc >= 100) {
      if (rc == 101) {
        res.x = 710;
        res.y = 12;
      } else if (rc == 100) {
        res.x = 710;
        res.y = 237;
      }
      return res;
    }

    int xx = 680;
    int yy = 240;
    int diff = 50;
    if (rc <= 6) {
      res.x = (xx - (diff * rc));
      res.y = yy;
      return res;
    }
    if (rc <= 12) {
      res.x = (xx - (diff * rc));
      res.y = yy;
      res.x = res.x - 50;
      return res;
    }
    xx = -20;
    yy = 15;
    if (rc <= 18) {
      res.x = (xx + (diff * (rc - 12)));
      res.y = yy;
      return res;
    }
    if (rc <= 24) {
      res.x = (xx + (diff * (rc - 12)));
      res.y = yy;
      res.x = res.x + 50;
      return res;
    }
    return res;
  }