X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=uppaal%2F2.xml;h=dcbd6c3fa8407b0143f20d8c60941afcf1ccc383;hb=ed285902eb72f2b491b64c82c3bed5a24a50b3b0;hp=ad68966fea13047224d99da561d55db5d1098904;hpb=36c699606f794bcbe31bf2a1fd5eeaa7d97226d7;p=mc1516the.git diff --git a/uppaal/2.xml b/uppaal/2.xml index ad68966..dcbd6c3 100644 --- a/uppaal/2.xml +++ b/uppaal/2.xml @@ -2,64 +2,263 @@ // Place global declarations here. +// Intermediate +//const int N=13; +// Advanced +//const int N = 7; +//hard from website 1 +const int N=13; +//hard from website 2 +//const int N=9; -const int N = 13; -typedef int[0,N-1] id_c; +typedef int[0, N-1] id_c; -chan up[N], down[N], left[N], right[N]; +broadcast chan up[N], down[N], left[N], right[N], start, leftRed, rightRed; + +chan reg, finish; + +bool grid[6][6]; + + // Place template instantiations here. + + + +//easy test puzzle +/* +RED = RedCar(0,2); +V1 = VertCar(2, 1, 4, 3); +V2 = VertCar(3, 2, 5, 2); +system RED, V1, V2, Player; +*/ + +// Intermediate puzzle + H1 = HorzCar(2, 0, 0, 5); H2 = HorzCar(2, 1, 2, 5); V3 = VertCar(2, 2, 4, 4); @@ -67,15 +266,65 @@ V4 = VertCar(2, 3, 2, 3); V5 = VertCar(3, 4, 5, 2); V6 = VertCar(2, 5, 1, 3); H7 = HorzCar(2, 6, 3, 4); -H8 = HorzCar(2, 7, 3, 2); +RED = RedCar(7, 2); //RED V9 = VertCar(3, 8, 0, 0); HA = HorzCar(2, 9, 1, 0); VB = VertCar(2, 10, 3, 0); HC = HorzCar(2, 11, 4, 1); HD = HorzCar(2, 12, 4, 0); -// List one or more processes to be composed into a system. -system H1, H2, V3, V4, V5, V6, H7, H8, V9, HA, VB, HC, HD; - +system H1, H2, V3, V4, V5, V6, H7, RED, V9, HA, VB, HC, HD, Player; + + +// Advanced puzzle +/* +H1 = HorzCar(2, 0, 0, 5); +V2 = VertCar(2, 1, 2, 4); +V3 = VertCar(3, 2, 3, 3); +V4 = VertCar(3, 3, 0, 2); +RED = RedCar(4, 1); +H6 = HorzCar(3, 5, 1, 2); +H7 = HorzCar(3, 6, 3, 0); +system H1, V2, V3, V4, RED, H6, H7, Player; +*/ + +//Hard from website 1 +//Can not be solved +/* +V1 = VertCar(2, 0, 0, 3); +V2 = VertCar(2, 1, 1, 0); +V3 = VertCar(2, 2, 2, 1); +V4 = VertCar(2, 3, 3, 4); +V5 = VertCar(3, 4, 4, 3); +V6 = VertCar(3, 5, 5, 3); +H7 = HorzCar(2, 6, 0, 2); +H8 = HorzCar(3, 7, 0, 5); +H85= HorzCar(3,12, 1, 4); +H9 = HorzCar(2, 8, 2, 0); +RED = RedCar(9, 2); +HB = HorzCar(2,10, 4, 0); +HC = HorzCar(2,11, 4, 1); +system V1, V2, V3, V4, V5, V6, H7, H8, H85, H9, RED, HB, HC, Player; +*/ + +//Hard from website 2 +/* +V1 = VertCar(2, 0, 0, 0); +V2 = VertCar(3, 1, 2, 3); +V3 = VertCar(3, 2, 3, 0); +V4 = VertCar(3, 3, 5, 3); +H5 = HorzCar(2, 4, 1, 1); +RED = RedCar(5, 3); +H7 = HorzCar(2, 6, 3, 5); +H8 = HorzCar(2, 7, 4, 0); +H9 = HorzCar(2, 8, 4, 2); +system V1, V2, V3, V4, H5, RED, H7, H8, H9, Player; +*/ + + E<> Player.done == 1 + + + +