Compare commits

..

No commits in common. "6380a9a92808ec32e0a22e4720b755bd5302d9d0" and "bc361d191afd0b7072106a083e10aed59a307b1a" have entirely different histories.

2 changed files with 102597 additions and 4569 deletions

File diff suppressed because one or more lines are too long

View file

@ -34,23 +34,22 @@ fn main() {
for y in 1..leny {
let widthup = y >= 4;
let widthdown = (leny - y) >= 4;
let widthdown = (leny - y) > 3;
for x in 1..lenx+1 {
// check if enough space left and right
println!("x is {x}");
println!("y is {y}");
println!("width up: {}", widthup);
println!("width down: {}", widthdown);
let widthleft = x >= 4;
let widthright = (lenx - x) >= 3;
println!("width left: {}", widthleft);
let widthright = (lenx - x) > 3;
println!("width right: {}", widthright);
// search algorithm starts here
// check if the char is X
// check if the char is s
if frfrvec[y][x] == 'X' {
println!("x is {x}");
println!("y is {y}");
println!("width up: {}", widthup);
println!("width down: {}", widthdown);
println!("width left: {}", widthleft);
// check if going upwards
if widthup {
if frfrvec[y - 1][x] == 'M'