{"ScriptPreparationCode":"var directions = [0, 2, 4, 8];\r\nvar current = -1;","TestCases":[{"Name":"Check","Code":"for (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n\tvar rCursor = Math.floor(Math.random() * directions.length);\r\n \tvar rIndex = Math.floor(Math.random() * directions.length);\r\n \tif(rCursor == 0 \u0026\u0026 rIndex != current) {\r\n \tcurrent = rIndex;\r\n } else if(rCursor == 1 \u0026\u0026 rIndex != current) {\r\n \tcurrent = rIndex;\r\n } else if(rCursor == 2 \u0026\u0026 rIndex != current) {\r\n \tcurrent = rIndex;\r\n } else if(rCursor == 3 \u0026\u0026 rIndex != current) {\r\n \tcurrent = rIndex;\r\n }\r\n}","IsDeferred":false},{"Name":"Assignation","Code":"for (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n\tvar rCursor = Math.floor(Math.random() * directions.length);\r\n \tvar rIndex = Math.floor(Math.random() * directions.length);\r\n \tif(rCursor == 0) {\r\n \tcurrent = rIndex;\r\n } else if(rCursor == 1) {\r\n \tcurrent = rIndex;\r\n } else if(rCursor == 2) {\r\n \tcurrent = rIndex;\r\n } else if(rCursor == 3) {\r\n \tcurrent = rIndex;\r\n }\r\n}","IsDeferred":false}]}