This shows you the differences between two versions of the page.
ac-is:internal:playground [2021/09/20 22:41] ionut.pascal created |
ac-is:internal:playground [2021/11/22 15:54] (current) eduard.ciurezu |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Playground ====== | ====== Playground ====== | ||
+ | |||
+ | <hidden> <spoiler> <hidden> | ||
+ | This is how you hide a Lab | ||
+ | </hidden> </spoiler> </hidden> | ||
+ | |||
+ | All items inside internal are listed here. | ||
+ | <html> | ||
+ | <ul id="navbar"> | ||
+ | |||
+ | <li> | ||
+ | <a href="#">Laboratoare</a> | ||
+ | </html>{{indexmenu>ac-is:internal}}<html> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </html> | ||
+ | |||
This is a page where you can try different stuff | This is a page where you can try different stuff | ||
Line 35: | 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)** |