ye change rn
This commit is contained in:
parent
3caa7018f8
commit
0b36da038e
1 changed files with 3 additions and 3 deletions
|
@ -34,9 +34,9 @@ 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 {
|
||||
for x in 1..lenx+1 {
|
||||
// check if enough space left and right
|
||||
println!("x is {x}");
|
||||
println!("y is {y}");
|
||||
|
@ -44,7 +44,7 @@ fn main() {
|
|||
println!("width down: {}", widthdown);
|
||||
let widthleft = x >= 4;
|
||||
println!("width left: {}", widthleft);
|
||||
let widthright = (lenx - x) > 4;
|
||||
let widthright = (lenx - x) > 3;
|
||||
println!("width right: {}", widthright);
|
||||
|
||||
// search algorithm starts here
|
||||
|
|
Loading…
Reference in a new issue