Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
.....
Browse files Browse the repository at this point in the history
  • Loading branch information
reneespinosa committed Jan 1, 2024
1 parent 70abf06 commit 186ff07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contracts/task4_basic.fc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ tuple setval(tuple cmaze,int i ,int j, int val)

;; shortest path

repeat(n * m)
repeat(1000)
{
i = 0;
j = 0;
Expand Down Expand Up @@ -335,7 +335,7 @@ tuple setval(tuple cmaze,int i ,int j, int val)
stax = i;
stay = j;
cmaze = setval(cmaze,stax,stay,0);
prop = setval(prop,stax,stay,0);

}


Expand All @@ -345,29 +345,29 @@ tuple setval(tuple cmaze,int i ,int j, int val)
endx = i;
endy = j;
cmaze = setval(cmaze,endx,endy,100);
prop = setval(prop,endx,endy,100);
;;prop = setval(prop,endx,endy,100);
}

;; . 46
if( maze.at(i).at(j) == 46)
{
cmaze = setval(cmaze,i,j,100);
prop = setval(prop,i,j,100);
;; prop = setval(prop,i,j,100);
}


;; ? 63
if( maze.at(i).at(j) == 63)
{
cmaze = setval(cmaze,i,j,100);
prop = setval(prop,i,j,100);
;;prop = setval(prop,i,j,100);
}

;; X 88
if( maze.at(i).at(j) == 88)
{
cmaze = setval(cmaze,i,j,102);
prop = setval(cmaze,i,j,102);
;;prop = setval(cmaze,i,j,102);
}


Expand Down

0 comments on commit 186ff07

Please sign in to comment.