MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / solve_tour

Method solve_tour

src/backtracking/knight_tour.rs:101–121  ·  view source on GitHub ↗

Recursively solves the Knight's Tour problem. # Arguments `x` - The current x-coordinate of the knight. `y` - The current y-coordinate of the knight. `move_count` - The current move count. # Returns A boolean indicating whether a solution was found.

(&mut self, x: isize, y: isize, move_count: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

find_tourMethod · 0.80

Calls 3

size_xMethod · 0.80
size_yMethod · 0.80
is_safeMethod · 0.45

Tested by

no test coverage detected