Skip to content

A* algorithm implementation into a C program calling a Rust library.

Notifications You must be signed in to change notification settings

jean553/c-rust-a-star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Rust A*

A graphical C program showing A* paths resolution using a Rust library.

The used Rust library has been developed for the project and can be found here: https://github.com/jean553/a-star-rs.

Image 1

Requirements

The following tools are required:

  • cargo (Rust nightly),
  • gcc

Install sub-module (Rust A-Star library)

git submodule init
git submodule update

Compile

The following command compiles both of the C program and the Rust library.

make

Run

./c_rust_a_star 10 10 5 6 12 8

The options are (in order):

  • map width (in nodes),
  • map height (in nodes),
  • departure node index,
  • arrival node index
  • walls indices list (optional, here 12 and 8)

Remove previous compilation data

make clean

About

A* algorithm implementation into a C program calling a Rust library.

Resources

Stars

Watchers

Forks

Packages

No packages published