note4973 님의 블로그

  • 홈
  • 태그
  • 방명록

2025/04/08 1

20250408 TIL A* 알고리즘

public class AstarNode{ public Tile tile; public AstarNode parent; public int gCost; // 시작부터 현재까지의 누적 비용 public int hCost; // 휴리스틱 (목표까지 예상 거리) public int fCost => gCost + hCost; public int astarCost => tile != null ? tile.AstarCost : int.MaxValue; // 현재 타일의 이동 비용 (Tile의 AstarCost를 복사) public AstarNode(Tile tile) { this.tile = tile; } ///..

카테고리 없음 2025.04.08
이전
1
다음
더보기
프로필사진

note4973 님의 블로그

note4973 님의 블로그 입니다.

  • 분류 전체보기 (51)

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/04   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바