Skip to content

rnistuk/A-Star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A-Star

A* pathfinding algorithm with SDL2 visualization.

Overview

An interactive implementation of the A* pathfinding algorithm with real-time visualization using SDL2. Based on OneLoneCoder's tutorial, this project lets you create obstacles and watch the algorithm find optimal paths.

Features

  • Interactive node grid with clickable obstacles
  • Adjustable start and end positions (Shift+click / Ctrl+click)
  • Visual feedback showing searched nodes and final path
  • Handles unreachable destinations gracefully

Prerequisites

  • macOS (tested on Catalina 10.15.4+)
  • SDL2 (brew install sdl2)
  • CMake 3.17+
  • C++17 compiler

Build

mkdir build && cd build
cmake ..
make

Run

./build/a-star/a-star

Controls

Action Control
Add obstacle Click on node
Move start Shift + Click
Move end Ctrl + Click

Tests

Tests are not yet implemented.

License

CC0 1.0 Universal - see LICENSE

Author

Rich Nistuk - rnistuk

Acknowledgments

About

My implementation of the A-star search algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors