X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=uppaal%2F2.xml;h=29e4e8f5da335c65c2f3d26d0da9e875a48ea584;hb=53484c4fd63f80db558d9c0a4f00b3e8e61f2db2;hp=ad68966fea13047224d99da561d55db5d1098904;hpb=528a1a39272f8d30c30a2ce2f0660384a018cd07;p=mc1516the.git diff --git a/uppaal/2.xml b/uppaal/2.xml index ad68966..29e4e8f 100644 --- a/uppaal/2.xml +++ b/uppaal/2.xml @@ -2,64 +2,218 @@ // Place global declarations here. - +// Intermediate const int N = 13; +// Advanced +//const int N = 7 + 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. + +// Intermediate puzzle H1 = HorzCar(2, 0, 0, 5); H2 = HorzCar(2, 1, 2, 5); V3 = VertCar(2, 2, 4, 4); @@ -67,15 +221,35 @@ 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); +H8 = 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); +system H1, H2, V3, V4, V5, V6, H7, H8, 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); +H5 = HorzCar(2, 4, 1, 3); +H6 = HorzCar(3, 5, 1, 2); +H7 = HorzCar(3, 6, 3, 0); +system H1, V2, V3, V4, H5, H6, H7 +*/ + // 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; + + + E<> Player.done == 1 + + + +