﻿<xml xmlns="https://developers.google.com/blockly/xml">
  <variables>
    <variable id="u4)zMH^MtUpJ9`I7bV3D">traffic</variable>
    <variable id="]KnHb[1{0rMq`iR4D+g1">myList</variable>
    <variable id="04rtukeAAn=.ny;!r:F8">n</variable>
    <variable id=":v%ZZ24K)R(#GZ[hmPsU">flag</variable>
    <variable id="#|hvxdO-nS!K]D@e?;;W">car</variable>
    <variable id="qn:7S*+;/#whH[a3JmRQ">init</variable>
  </variables>
  <block type="events_start_here" id="DI_start_here" deletable="false" movable="false" x="25" y="33">
    <next>
      <block type="random" id="A`Td(8%-X@).LM7^8e#[">
        <next>
          <block type="webtypeanything" id="*,DRSqJ@_U|inmm)v0|C">
            <value name="stuff">
              <shadow type="textinline" id="SpzX/A~WlF[$$MI}TZa?">
                <field name="text">import numpy as np</field>
              </shadow>
            </value>
            <next>
              <block type="variables_set" id="fEvd+64Cilkn9xZ%@AEz">
                <field name="VAR" id="04rtukeAAn=.ny;!r:F8">n</field>
                <field name="NAME">=</field>
                <value name="varset">
                  <shadow type="textinline" id="w9PhODS2$3{:7NP5u!T]">
                    <field name="text">50</field>
                  </shadow>
                </value>
                <next>
                  <block type="create_list" id=",2/|Pj?FK~^1|64{cOX#">
                    <field name="list" id="u4)zMH^MtUpJ9`I7bV3D">traffic</field>
                    <value name="text">
                      <shadow type="textinline" id="`s+A{m9;aZTHkI1v})H-">
                        <field name="text">[0 for i in range(n)], [0 for i in range(n)]</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="variables_set" id="3oX09CJq:kaEaVI:=O;?">
                        <field name="VAR" id="qn:7S*+;/#whH[a3JmRQ">init</field>
                        <field name="NAME">=</field>
                        <value name="varset">
                          <shadow type="textinline" id=":v?BDj}Ffc)2nk!Whpt4">
                            <field name="text">0</field>
                          </shadow>
                          <block type="webint" id="s,yXbsrw+R*.g~0h/X0i">
                            <value name="bool">
                              <shadow type="textinline" id="+vt$I)G/Ex,Ce{ludRdY">
                                <field name="text">1</field>
                              </shadow>
                              <block type="input_web" id="Oj+,p^6d2U0F0vv+[Q)3">
                                <value name="NAME">
                                  <shadow type="stringinline" id="_p6{c.I+Y;7B{%xypc(A">
                                    <field name="text">Initial state (%) ?</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="webdefine" id="6Z7D5#L9)4UsAX(e~+{c">
                            <value name="1">
                              <shadow type="textinline" id="g02UtK7VIr=#V2%FwDZ}">
                                <field name="text">car</field>
                              </shadow>
                            </value>
                            <value name="2">
                              <shadow type="textinline" id="G6L[hfwmhH;P[Ukjng{q">
                                <field name="text"/>
                              </shadow>
                            </value>
                            <statement name="DO">
                              <block type="webifinline" id="=X]msM;ShgH.-L*KfuJR">
                                <value name="iftext">
                                  <shadow type="textinline" id="%7J-4kD8`bba2*,H%~6S">
                                    <field name="text">True</field>
                                  </shadow>
                                  <block type="webinternal" id="M|3oAHcODsP,N(}DB2m`">
                                    <field name="choose">&lt;=</field>
                                    <value name="first">
                                      <shadow type="textinline" id="Uy?rKo4hJ=J:,y:L3NDk">
                                        <field name="text">0</field>
                                      </shadow>
                                      <block type="random_randint" id="+JK|104@/zY#mxe88t#/">
                                        <value name="text">
                                          <shadow type="textinline" id="_g`n5-)[Ze@Sxtis?5N9">
                                            <field name="text">1, 100</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="last">
                                      <shadow type="textinline" id="OH;q(fRuR],F`g$-)^sf">
                                        <field name="text">init</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <statement name="ifstate">
                                  <block type="variables_set" id="4qi~2^z.!SFb3d5H0TRU">
                                    <field name="VAR" id="#|hvxdO-nS!K]D@e?;;W">car</field>
                                    <field name="NAME">=</field>
                                    <value name="varset">
                                      <shadow type="textinline" id="1lqT7373AbpEZltInn=X">
                                        <field name="text">1</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="webelse" id="%3a_Q}XRF6RzVH)G1{pw">
                                    <statement name="DO">
                                      <block type="variables_set" id="eMwf,yF)xigN/[,Y(Y%G">
                                        <field name="VAR" id="#|hvxdO-nS!K]D@e?;;W">car</field>
                                        <field name="NAME">=</field>
                                        <value name="varset">
                                          <shadow type="textinline" id="H(d]bFr|](OdeJF%FAeC">
                                            <field name="text">0</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="webreturn2" id="sjhDB^f(MlrhUvp4kK}b">
                                        <value name="return">
                                          <shadow type="textinline" id="]g48@S#@kzffg0`/:sbn">
                                            <field name="text">car</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="webdefine" id="G?LCJp)PA/a`qzj5,S%m">
                                <value name="1">
                                  <shadow type="textinline" id="`$w~oLAO)([vd6JqN^bd">
                                    <field name="text">unit</field>
                                  </shadow>
                                </value>
                                <value name="2">
                                  <shadow type="textinline" id="vc[JZe*@}kFxxm2slFYs">
                                    <field name="text"/>
                                  </shadow>
                                </value>
                                <statement name="DO">
                                  <block type="global" id="*1~g7sYWjrD]^h0kRt7J">
                                    <value name="text">
                                      <shadow type="textinline" id="^#`Mm5$HGtGk8sF1HH@5">
                                        <field name="text">n, traffic</field>
                                      </shadow>
                                    </value>
                                    <next>
                                      <block type="webfor" id="gDZY.W8ypBrc9BURj-Xu">
                                        <value name="letter">
                                          <shadow type="textinline" id="r`2UXNilqwL#N@);cIy5">
                                            <field name="text">i</field>
                                          </shadow>
                                        </value>
                                        <value name="no">
                                          <shadow type="textinline" id="@D(d5qqlrV,stmj0:8St">
                                            <field name="text">n - 2, -1,  -1</field>
                                          </shadow>
                                        </value>
                                        <statement name="DO">
                                          <block type="webifinline" id="#`MGf`Q?!K6[Pt{X!7L-">
                                            <value name="iftext">
                                              <shadow type="textinline" id="w;gHR=C8;xl2UWWJyfK,">
                                                <field name="text">traffic[0][i + 1] == 0</field>
                                              </shadow>
                                            </value>
                                            <statement name="ifstate">
                                              <block type="webtypeanything" id="UQxtxT7Ikq$awmm^06Wl">
                                                <value name="stuff">
                                                  <shadow type="textinline" id="RfJ:}#6abb{m+FHhy^r3">
                                                    <field name="text">traffic[1][i + 1] = traffic[0][i]</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="webtypeanything" id="lx/W]w*uk7r+~j}^NliD">
                                                    <value name="stuff">
                                                      <shadow type="textinline" id="JbRp9qgWyZ;33:=tdbI9">
                                                        <field name="text">traffic[1][i] = 0</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="webelse" id="Tq@+S-a!X%L%G#oCJ*;G">
                                                <statement name="DO">
                                                  <block type="webtypeanything" id="1E|858Jpm]Nd)S*@wT^|">
                                                    <value name="stuff">
                                                      <shadow type="textinline" id="r(1GxjCUlkc0o%m{bL~F">
                                                        <field name="text">traffic[1][i] = traffic[0][i]</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="webtypeanything" id="[`Hg~AQ8$B--a2@6t[A~">
                                            <value name="stuff">
                                              <shadow type="textinline" id="ET!1oM`PNb0Jqi,?2}$F">
                                                <field name="text">traffic[1][0] = traffic[0][n - 1]</field>
                                              </shadow>
                                            </value>
                                            <next>
                                              <block type="webvarprint" id=".3[r}UVVjjnN!H-+04n$">
                                                <value name="var">
                                                  <shadow type="textinline" id="Ay:NnY_$DY%y-:g$spu4">
                                                    <field name="text">traffic[0]</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="webdefine" id="(6,Dad^J=YIku`GkBWv3">
                                    <value name="1">
                                      <shadow type="textinline" id="h]hQNo1*OTIIrW3N1Fq]">
                                        <field name="text">next</field>
                                      </shadow>
                                    </value>
                                    <value name="2">
                                      <shadow type="textinline" id="dDd{Ts@OYhHAP*oORz`5">
                                        <field name="text"/>
                                      </shadow>
                                    </value>
                                    <statement name="DO">
                                      <block type="global" id="WMVOV2?np|jKcxx}o?=(">
                                        <value name="text">
                                          <shadow type="textinline" id="Boe^boC!wVn(VtC}18,Z">
                                            <field name="text">n, traffic</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="webfor" id="b?mK+7d4M=l)e{REUj6=">
                                            <value name="letter">
                                              <shadow type="textinline" id="E8r75(fssN?g%KmH2*it">
                                                <field name="text">i</field>
                                              </shadow>
                                            </value>
                                            <value name="no">
                                              <shadow type="textinline" id="B9^Z,$Avu1rvnRG_7nq[">
                                                <field name="text">n</field>
                                              </shadow>
                                            </value>
                                            <statement name="DO">
                                              <block type="webtypeanything" id="Qq/3yTvQJB?=Zb;v^IOi">
                                                <value name="stuff">
                                                  <shadow type="textinline" id="%_)e9q,ZFxc/$+3ZCsC^">
                                                    <field name="text">tmp = traffic[0][i]</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="webtypeanything" id="0F{@f*b{8HmT!qvMlSSt">
                                                    <value name="stuff">
                                                      <shadow type="textinline" id="k@z,gE[39a:yF)fm}7k3">
                                                        <field name="text">traffic[0][i] = traffic[1][i]</field>
                                                      </shadow>
                                                    </value>
                                                    <next>
                                                      <block type="webtypeanything" id="=Xk=QDmz`DDf6yL|?JuX">
                                                        <value name="stuff">
                                                          <shadow type="textinline" id="l6WA=12q*_4Jg+oUm4@}">
                                                            <field name="text">traffic[1][i] = tmp</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="webfor" id="?6*Qn@p/KCWHsC]9pI_3">
                                        <value name="letter">
                                          <shadow type="textinline" id="}Rh_ry,j02Veo2bRq=)i">
                                            <field name="text">i</field>
                                          </shadow>
                                        </value>
                                        <value name="no">
                                          <shadow type="textinline" id="Ho2mXMIX`!WX8|ydr|yV">
                                            <field name="text">n</field>
                                          </shadow>
                                        </value>
                                        <statement name="DO">
                                          <block type="webtypeanything" id="d(5uoDMf:6{9G}E.gy)U">
                                            <value name="stuff">
                                              <shadow type="textinline" id="(cv*DNoK]Gq`|qB.UjPl">
                                                <field name="text">traffic[0][i] = car()</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="webfor" id="I.01Vo4*ys$iszTq4lVy">
                                            <value name="letter">
                                              <shadow type="textinline" id=",b0fkd]:i-,f7oFJ^gTL">
                                                <field name="text">i</field>
                                              </shadow>
                                            </value>
                                            <value name="no">
                                              <shadow type="textinline" id="L/7$*]/pbc?0JiHnx$rf">
                                                <field name="text">30</field>
                                              </shadow>
                                            </value>
                                            <statement name="DO">
                                              <block type="webtypeanything" id=":vOY0uns9c]Xq:WUW|A0">
                                                <value name="stuff">
                                                  <shadow type="textinline" id="?M#^RK-rb_-2_~]5F`k-">
                                                    <field name="text">unit()</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="webtypeanything" id="sQ^zIu_K4/i#woG3G8@g">
                                                    <value name="stuff">
                                                      <shadow type="textinline" id="_HG(uRWWpdxc-IFo|?f~">
                                                        <field name="text">next()</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
[]
</xml>