Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ac-is:internal:playground [2021/09/20 23:03]
ionut.pascal
ac-is:internal:playground [2021/11/22 15:54] (current)
eduard.ciurezu
Line 51: Line 51:
     endmodule     endmodule
 </​code>​ </​code>​
 +
 +== Exemplu input pentru un labirint 8x8 ==
 +
 +Coltul din stanga sus are indicii (0,0)
 +<file input>
 +starting_row = 1
 +starting_col = 1
 +
 +   0 1 2 3 4 5 6 7
 +   ​_______________
 +0 |1 1 1 1 1 1 1 1
 +1 |1 0 1 0 0 0 0 0
 +2 |1 0 1 0 1 1 1 1
 +3 |1 0 0 0 1 1 0 1
 +4 |1 1 0 1 1 0 0 1
 +5 |1 1 1 1 1 0 1 1
 +6 |1 1 0 0 0 0 1 1
 +7 |1 1 1 1 1 1 1 1
 +</​file>​
 +
 +== Exemplu output pentru un labirint 8x8 ==
 +
 +<file output>
 +   0 1 2 3 4 5 6 7
 +   ​_______________
 +0 |1 1 1 1 1 1 1 1
 +1 |1 2 1 2 2 2 2 2
 +2 |1 2 1 2 1 1 1 1
 +3 |1 2 2 2 1 1 0 1
 +4 |1 1 2 1 1 0 0 1
 +5 |1 1 1 1 1 0 1 1
 +6 |1 1 0 0 0 0 1 1
 +7 |1 1 1 1 1 1 1 1
 +
 +</​file>​
 +
 +Ruta folosind algoritmul Wall Follower:
 +**(1,1)** -> (2,1) -> (3,1) -> (3,2) -> (4,2) -> (3,2) -> (3,3) -> (2,3) -> (1,3) -> (1,4) -> (1,5) -> (1,6) -> **(1,7)**
ac-is/internal/playground.1632168230.txt.gz · Last modified: 2021/09/20 23:03 by ionut.pascal
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0