[Tutorial] Membuat game Tic Tac Tou menggunakan Adobe Flash CS5

[Tutorial] Membuat game Tic Tac Tou menggunakan Adobe Flash CS5

[Tutorial] Membuat game Tic-Tac-Tou menggunakan Adobe Flash CS5

Haii, sahabat RumahTips.net apa kabar nih hari ini? Semoga selalu sehat yaa.. eh eh Sahabat, pada suka kan main game?game apa aja deh, online ataopun offline. Hmm, atau paling gak pernah lah main game. Sahabat pernah gak mikir gimana gitu caranya bikin game? kok bisa jadinya begini begitu. Trus mikirnya pasti cuma orang pinter bin jenius lah yang bisa bikin game macam ini macam itu macam anu. Atau bahkan kepikiran buat bikin game sendiri? Naahh,, cocok banget RumahTips.net kali ini bakal kasih tau caranya bikin game tictactou menggunakan adobe flash cs5, gampang banget kok,gapercaya? coba aja deh ūüėÄ

Kalo sahabat berhasil, nah brarti sahabat semua ini juga orang jenius, buktinya udah bisa kan bikin game sendiri. Tapi kalo berhasil sih, juga karena rumah tips ngasih tutorialnya jelas dan benar ūüėÄ

Tenang deh semua tutorial yang di posting sudah melalui proses uji coba, jadi kalo ada kegagalan dalam proses uji coba tidak akan di posting, melainkan di perbaiki terlebih dahulu ūüėČ Ini dia cara buat game tictactou, check this out guys…..

langkah kerja

  • Pertama buka Adobe Flash CS5 punya sahabat, kemudian pilih File ==> New dan pilih ActionScript 2.0. lalu sahabat atur aja ukuran stagenya menjadi ukuran 650 x 650 px dan Frame ratenya sahabat atur menjadi 25.

screenshot_1

  • Nah, setelah itu di Adobe Flash yang dalam keadaan default, Adobe Flash tersebut hanya menyediakan 1 layer yaitu Layer 1 sahabat. Ubahlah nama layernya menjadi background yang nantinya akan digunakan menjadi layer yang akan menampung background dari game yang akan sahabat buat ūüôā

screenshot_2

  • Import deh gambar backgroundnya ke frame nomer 1 pada layer background tadi, caranya dengan memilih menu File ==> Import ==> Import to Stage dan pilih gambar sesuai keinginan sahabat.

screenshot_3

  • Jika background sudah tepasang, lalu sahabat tambahkan layer baru diatas layer background tadi, ubah nama layer barunya menjadi silang. Jangan lupa Lock layer background agar saat sahabat meng-edit layer silang, layer background tidak tergeser atau terhapus oleh sahabat. Caranya mudah sahabat, dengan meng-klik icon gembok pada layer background.

screenshot_4

  • kemudian pada layer silang tadi di frame nomer 1, import gambar silang dan usahakan gambarnya dalam bentuk .png loh sahabat, importnya di frame nomer 1 tadi, caranya sama dengan yang tadi saat import gambar background ūüėÄ Jangan lupa nama file gambarnya “silang”

screenshot_5

  • selanjutnya pilih objek yang sahabat import, terus ubah deh simbol movie clip, pilih menu Modify ==> Convert to Symbol. Lalu pilih Type Movie Clip trus beri nama “silang”

screenshot_6

  • langkah selanjutnya duplikatkan movie clip silang nya jadi 9buah objek movie clip silang dan posisiin deh kayak digambar

screenshot_7

  • trus abis diduplikat di masing-masing objek silang di panel Properties beri nama pada Instance Name dengan nama silang01, silang02 sampe silang09. usahkan urut yaa guys

screenshot_8

  • tambahin layer baru diatas layer silang. ganti nama layer barunya jadi bulat”. abis gitu Lock layer background dan silang biar waktu layer bulat di edit, layer background dan silang engga geser-geser/rusak, caranya klik icon gembok di layer background dan silang

screenshot_9

  • di layer bulat frame nomer1, import deh gambar bulat.png ke frame nomer1 di layer bulat, abis gitu pilih menu File ==> Import ==> Import to Storage trus pilih gambar

screenshot_10

  • pilih objek bulat.png nya terus ubah jadi simbol movie clip, pilih menu Modify ==> Convert to Symbol. abis gitu kasih nama bulat

screenshot_11

  • selanjutnya duplikatin movie clip bulat tadi jadi 9buah objek movie clip bulat dan posisiin kayak digambar

screenshot_12

  • trus abis diduplikat di masing-masing objek bulat di panel Properties beri nama pada Instance Name dengan nama bulat01, bulat02 sampe bulat09. usahkan urut yaa guys

screenshot_13

  • tambahin layer baru diatas layer bulat, ganti namanya jadi bidak. Lock layer background, silang dan biar waktu layer bidak di edit, layer background, silang dan bulat engga geser-geser/rusak, caranya klik icon gembok di layer background, silang dan bulat

screenshot_14

  • di layer bidak frame nomer1, import gambar bidak.jpg ke frame nomer 1 di layer bidak, pilih menu File ==> Import ==> Import to Storage trus pilih dh gambarnya

screenshot_15

  • pilih objek bidak.jpg nya terus ubah jadi simbol button, pilih menu Modify ==> Convert to Symbol. pilih Type Button terus kasi nama bidak

screenshot_16

  • duplikatin button bidak nya jadi 9buah objek button bidak posisiin kayak digambar

screenshot_17

  • abis diduplikat di masing-masing objek bidak di panel Properties beri nama pada Instance Name dengan nama bidak01, bidak02 sampe bidak09. usahkan urut yaa guys

screenshot_18

  • beri action di setiap button bidak, dari bidak01 sampe bidak09. caranya klik kanan di objek bidak trus pilih actions.

screenshot_19

  • misalkan buat bidak01 ketikin script seperti ini

screenshot_20

  • lakuin langkah diatas dimasing-masing bidak. sesuaiin scriptnya sesuai bidak, 02,03 dan seterusnya. misal: bidak02 jadi objek[1], bidak02,bulat02 dan silang02 dst

  • tambahin layer baru diatas layer bidak, ubah manya layer barunya jadi menang

screenshot_21

  • di layer menang frame nomer 1, import gambar menang.png ke frame nomer1 di layer menang, pilih menu File ==> Import ==> Import to Storage trus pilih gambar. posisiin deh kayak di gambar

screenshot_22

  • trus pilih objek menang.png nya abis gitu ganti jadi simbol movie clip, pilih menu Modify ==> Convert to Symbol. pilih Type Movie Clip trus kasih nama menang

screenshot_23

  • pada panel Properties, kasih nama objek menang.png tadi di Instance Name dengan nama menang

screenshot_24

  • tambahin lagi layer baru di atas layer menang, ganti nama layer barunya tadi jadi kalah

screenshot_25

  • di layer kalah frame nomer1, import gambar kalah.png ke frame nomer 1 di layer kalah, pilih menu File ==> Import ==> Import to Stage trus pilih gambarnya. Posisiin deh kayak di gambar

screenshot_26

  • pilih objek kalah.png tadi trus ganti jadi simbol movie clip, pilih menu Modify ==> Convert to Symbol. pilih Type Movie Clip trus kasih nama kalah

screenshot_27

  • tambahin lagi layer di atas layer kalah, ubah nama layernya jadi seri

screenshot_28

  • di layer seru frame nomer1, import gambar kalah.png ke frame nomer 1 di layer kalah, pilih menu File ==> Import ==> Import to Stage trus pilih gambarnya. Posisiin deh kayak di gambar

screenshot_29

  • trus pilih objek seri.png nya abis gitu ganti jadi simbol movie clip, pilih menu Modify ==> Convert to Symbol. pilih Type Movie Clip trus kasih nama seri

screenshot_31

  • pada panel properties, kasih nama objek seri.png di Instance Name pake nama seri

screenshot_32

  • tambahin lagi layer di atas layer seri, ubah nama layernya jadi action

screenshot_33

  • di layer action frame nomer 1, klik kanan trus pilih Actions. copy-paste’in script yang ada di bagian bawah postingan ini ya sahabat ūüôā

screenshot_34

  • tes game nya dengan cara klik menu Control ==> Test Movie ==> Test ato tekan aja Ctrl+Enter

screenshot_35

screenshot_36

screenshot_37
Naaahhhhhh game selesai dibuat ūüėÄ

 

Gimana, gampang kan cara buatnya?

tenang aja sahabat, postingan dari RumahTips.net gada yang rumit bin njelimet kok, semua pasti mudah  buat dipraktekin.

RumahTips.net usahakan akan sering-sering ngasih sahabat postingan yang bermanfaat lebih banyak lagi, bukan cuma buat info tapi juga pengetahuan ūüôā¬† Selamat mencoba ūüėÄ

[Script ]

<span style="color: #ff0000;">//////////////////////////////////////</span>
<span style="color: #ff0000;">// adapted from ajungpangi's thesis //</span>
<span style="color: #ff0000;">//      you MAY develop this        //</span>
<span style="color: #ff0000;">// BUT you MUST INCLUDE these lines //</span>
<span style="color: #ff0000;">//////////////////////////////////////</span>

<span style="color: #ff0000;">menang._visible = false;</span>
<span style="color: #ff0000;">kalah._visible = false;</span>
<span style="color: #ff0000;">seri._visible = false;</span>

<span style="color: #ff0000;">silang01._visible = false;</span>
<span style="color: #ff0000;">silang02._visible = false;</span>
<span style="color: #ff0000;">silang03._visible = false;</span>
<span style="color: #ff0000;">silang04._visible = false;</span>
<span style="color: #ff0000;">silang05._visible = false;</span>
<span style="color: #ff0000;">silang06._visible = false;</span>
<span style="color: #ff0000;">silang07._visible = false;</span>
<span style="color: #ff0000;">silang08._visible = false;</span>
<span style="color: #ff0000;">silang09._visible = false;</span>

<span style="color: #ff0000;">bulat01._visible = false;</span>
<span style="color: #ff0000;">bulat02._visible = false;</span>
<span style="color: #ff0000;">bulat03._visible = false;</span>
<span style="color: #ff0000;">bulat04._visible = false;</span>
<span style="color: #ff0000;">bulat05._visible = false;</span>
<span style="color: #ff0000;">bulat06._visible = false;</span>
<span style="color: #ff0000;">bulat07._visible = false;</span>
<span style="color: #ff0000;">bulat08._visible = false;</span>
<span style="color: #ff0000;">bulat09._visible = false;</span>

<span style="color: #ff0000;">var objek = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);</span>
<span style="color: #ff0000;">var objek_jebak = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);</span>
<span style="color: #ff0000;">kemenangan = 0;</span>

<span style="color: #ff0000;">function disableBidak()</span>
<span style="color: #ff0000;">{</span>
<span style="color: #ff0000;">    _root.bidak01.enabled = false;</span>
<span style="color: #ff0000;">    _root.bidak02.enabled = false;</span>
<span style="color: #ff0000;">    _root.bidak03.enabled = false;</span>
<span style="color: #ff0000;">    _root.bidak04.enabled = false;</span>
<span style="color: #ff0000;">    _root.bidak05.enabled = false;</span>
<span style="color: #ff0000;">    _root.bidak06.enabled = false;</span>
<span style="color: #ff0000;">    _root.bidak07.enabled = false;</span>
<span style="color: #ff0000;">    _root.bidak08.enabled = false;</span>
<span style="color: #ff0000;">    _root.bidak09.enabled = false;</span>
<span style="color: #ff0000;">}</span>

<span style="color: #ff0000;">function CekKemenangan()</span>
<span style="color: #ff0000;">{</span>
<span style="color: #ff0000;">    if (objek[0] == 1 and objek[1] == 1 and objek[2] == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = 1;</span>
<span style="color: #ff0000;">        menang._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[3] == 1 and objek[4] == 1 and objek[5] == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = 1;</span>
<span style="color: #ff0000;">        menang._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[6] == 1 and objek[7] == 1 and objek[8] == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = 1;</span>
<span style="color: #ff0000;">        menang._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[0] == 1 and objek[3] == 1 and objek[6] == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = 1;</span>
<span style="color: #ff0000;">        menang._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[1] == 1 and objek[4] == 1 and objek[7] == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = 1;</span>
<span style="color: #ff0000;">        menang._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[2] == 1 and objek[5] == 1 and objek[8] == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = 1;</span>
<span style="color: #ff0000;">        menang._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[0] == 1 and objek[4] == 1 and objek[8] == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = 1;</span>
<span style="color: #ff0000;">        menang._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[2] == 1 and objek[4] == 1 and objek[6] == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = 1;</span>
<span style="color: #ff0000;">        menang._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }            </span>
<span style="color: #ff0000;">}</span>

<span style="color: #ff0000;">function CekKekalahan()</span>
<span style="color: #ff0000;">{</span>
<span style="color: #ff0000;">    overload = 0;</span>
<span style="color: #ff0000;">    for(variabel = 0; variabel <= 8; variabel++)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[variabel] == -1 or objek[variabel] == 1) </span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            overload += 1;</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>

<span style="color: #ff0000;">    if (objek[0] == -1 and objek[1] == -1 and objek[2] == -1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = -1;</span>
<span style="color: #ff0000;">        kalah._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[3] == -1 and objek[4] == -1 and objek[5] == -1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = -1;</span>
<span style="color: #ff0000;">        kalah._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[6] == -1 and objek[7] == -1 and objek[8] == -1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = -1;</span>
<span style="color: #ff0000;">        kalah._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[0] == -1 and objek[3] == -1 and objek[6] == -1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = -1;</span>
<span style="color: #ff0000;">        kalah._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[1] == -1 and objek[4] == -1 and objek[7] == -1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = -1;</span>
<span style="color: #ff0000;">        kalah._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[2] == -1 and objek[5] == -1 and objek[8] == -1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = -1;</span>
<span style="color: #ff0000;">        kalah._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[0] == -1 and objek[4] == -1 and objek[8] == -1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = -1;</span>
<span style="color: #ff0000;">        kalah._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (objek[2] == -1 and objek[4] == -1 and objek[6] == -1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = -1;</span>
<span style="color: #ff0000;">        kalah._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }    </span>
<span style="color: #ff0000;">    else if (overload == 9)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        kemenangan = 0;</span>
<span style="color: #ff0000;">        seri._visible = true;</span>
<span style="color: #ff0000;">        disableBidak();</span>
<span style="color: #ff0000;">    }    </span>
<span style="color: #ff0000;">}</span>

<span style="color: #ff0000;">function LawanMain_JalanAcak()</span>
<span style="color: #ff0000;">{</span>
<span style="color: #ff0000;">    ii = 0;</span>
<span style="color: #ff0000;">    while (ii <= 8)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[ii] == 0)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            index_acak = ii;</span>
<span style="color: #ff0000;">            break;</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        ii++;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    if (index_acak == 0)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        objek[0] = -1;</span>
<span style="color: #ff0000;">        bidak01._visible = false;</span>
<span style="color: #ff0000;">        bulat01._visible = false;</span>
<span style="color: #ff0000;">        silang01._visible = true;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_acak == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        objek[1] = -1;</span>
<span style="color: #ff0000;">        bidak02._visible = false;</span>
<span style="color: #ff0000;">        bulat02._visible = false;</span>
<span style="color: #ff0000;">        silang02._visible = true;        </span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_acak == 2)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        objek[2] = -1;</span>
<span style="color: #ff0000;">        bidak03._visible = false;</span>
<span style="color: #ff0000;">        bulat03._visible = false;</span>
<span style="color: #ff0000;">        silang03._visible = true;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_acak == 3)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        objek[3] = -1;</span>
<span style="color: #ff0000;">        bidak04._visible = false;</span>
<span style="color: #ff0000;">        bulat04._visible = false;</span>
<span style="color: #ff0000;">        silang04._visible = true;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_acak == 4)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        objek[4] = -1;</span>
<span style="color: #ff0000;">        bidak05._visible = false;</span>
<span style="color: #ff0000;">        bulat05._visible = false;</span>
<span style="color: #ff0000;">        silang05._visible = true;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_acak == 5)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        objek[5] = -1;</span>
<span style="color: #ff0000;">        bidak06._visible = false;</span>
<span style="color: #ff0000;">        bulat06._visible = false;</span>
<span style="color: #ff0000;">        silang06._visible = true;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_acak == 6)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        objek[6] = -1;</span>
<span style="color: #ff0000;">        bidak07._visible = false;</span>
<span style="color: #ff0000;">        bulat07._visible = false;</span>
<span style="color: #ff0000;">        silang07._visible = true;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_acak == 7)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        objek[7] = -1;</span>
<span style="color: #ff0000;">        bidak08._visible = false;</span>
<span style="color: #ff0000;">        bulat08._visible = false;</span>
<span style="color: #ff0000;">        silang08._visible = true;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_acak == 8)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        objek[8] = -1;</span>
<span style="color: #ff0000;">        bidak09._visible = false;</span>
<span style="color: #ff0000;">        bulat09._visible = false;</span>
<span style="color: #ff0000;">        silang09._visible = true;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    CekKemenangan();</span>
<span style="color: #ff0000;">    CekKekalahan();</span>
<span style="color: #ff0000;">}</span>

<span style="color: #ff0000;">function LawanMain_JalanSerang()</span>
<span style="color: #ff0000;">{</span>
<span style="color: #ff0000;">    i = 0;</span>
<span style="color: #ff0000;">    while (i <= 8)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[i] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            index_serang = i;</span>
<span style="color: #ff0000;">            break;</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        i++;</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    if (index_serang == 0)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[1] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[1] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[1] = -1;</span>
<span style="color: #ff0000;">                bidak02._visible = false;</span>
<span style="color: #ff0000;">                bulat02._visible = false;</span>
<span style="color: #ff0000;">                silang02._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[3] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[3] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[3] = -1;</span>
<span style="color: #ff0000;">                bidak04._visible = false;</span>
<span style="color: #ff0000;">                bulat04._visible = false;</span>
<span style="color: #ff0000;">                silang04._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_serang == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[7] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[7] = -1;</span>
<span style="color: #ff0000;">                bidak08._visible = false;</span>
<span style="color: #ff0000;">                bulat08._visible = false;</span>
<span style="color: #ff0000;">                silang08._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[7] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_serang == 2)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[1] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[1] = -1;</span>
<span style="color: #ff0000;">                bidak02._visible = false;</span>
<span style="color: #ff0000;">                bulat02._visible = false;</span>
<span style="color: #ff0000;">                silang02._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[1] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[5] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[5] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[5] = -1;</span>
<span style="color: #ff0000;">                bidak06._visible = false;</span>
<span style="color: #ff0000;">                bulat06._visible = false;</span>
<span style="color: #ff0000;">                silang06._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_serang == 3)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[5] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[5] = -1;</span>
<span style="color: #ff0000;">                bidak06._visible = false;</span>
<span style="color: #ff0000;">                bulat06._visible = false;</span>
<span style="color: #ff0000;">                silang06._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[5] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_serang == 4)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[1] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[7] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[7] = -1;</span>
<span style="color: #ff0000;">                bidak08._visible = false;</span>
<span style="color: #ff0000;">                bulat08._visible = false;</span>
<span style="color: #ff0000;">                silang08._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[7] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[1] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[1] = -1;</span>
<span style="color: #ff0000;">                bidak02._visible = false;</span>
<span style="color: #ff0000;">                bulat02._visible = false;</span>
<span style="color: #ff0000;">                silang02._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[3] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[5] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[5] = -1;</span>
<span style="color: #ff0000;">                bidak06._visible = false;</span>
<span style="color: #ff0000;">                bulat06._visible = false;</span>
<span style="color: #ff0000;">                silang06._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[5] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[3] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[3] = -1;</span>
<span style="color: #ff0000;">                bidak04._visible = false;</span>
<span style="color: #ff0000;">                bulat04._visible = false;</span>
<span style="color: #ff0000;">                silang04._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_serang == 5)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[2] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[3] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[3] = -1;</span>
<span style="color: #ff0000;">                bidak04._visible = false;</span>
<span style="color: #ff0000;">                bulat04._visible = false;</span>
<span style="color: #ff0000;">                silang04._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[3] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_serang == 6)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[3] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[3] = -1;</span>
<span style="color: #ff0000;">                bidak04._visible = false;</span>
<span style="color: #ff0000;">                bulat04._visible = false;</span>
<span style="color: #ff0000;">                silang04._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[3] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[7] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[7] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[7] = -1;</span>
<span style="color: #ff0000;">                bidak08._visible = false;</span>
<span style="color: #ff0000;">                bulat08._visible = false;</span>
<span style="color: #ff0000;">                silang08._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_serang == 7)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[1] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[1] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[1] = -1;</span>
<span style="color: #ff0000;">                bidak02._visible = false;</span>
<span style="color: #ff0000;">                bulat02._visible = false;</span>
<span style="color: #ff0000;">                silang02._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_serang == 8)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[5] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[5] = -1;</span>
<span style="color: #ff0000;">                bidak06._visible = false;</span>
<span style="color: #ff0000;">                bulat06._visible = false;</span>
<span style="color: #ff0000;">                silang06._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[5] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[7] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[7] = -1;</span>
<span style="color: #ff0000;">                bidak08._visible = false;</span>
<span style="color: #ff0000;">                bulat08._visible = false;</span>
<span style="color: #ff0000;">                silang08._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[7] == -1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    CekKemenangan();</span>
<span style="color: #ff0000;">    CekKekalahan();</span>
<span style="color: #ff0000;">            </span>
<span style="color: #ff0000;">}</span>
<span style="color: #ff0000;">   </span>
<span style="color: #ff0000;">function LawanMain_Jalankan(index_jebak:Number)</span>
<span style="color: #ff0000;">{</span>
<span style="color: #ff0000;">    if (index_jebak == 0)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[1] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[1] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[1] = -1;</span>
<span style="color: #ff0000;">                bidak02._visible = false;</span>
<span style="color: #ff0000;">                bulat02._visible = false;</span>
<span style="color: #ff0000;">                silang02._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[3] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[3] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[3] = -1;</span>
<span style="color: #ff0000;">                bidak04._visible = false;</span>
<span style="color: #ff0000;">                bulat04._visible = false;</span>
<span style="color: #ff0000;">                silang04._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_jebak == 1)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[7] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[7] = -1;</span>
<span style="color: #ff0000;">                bidak08._visible = false;</span>
<span style="color: #ff0000;">                bulat08._visible = false;</span>
<span style="color: #ff0000;">                silang08._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[7] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_jebak == 2)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[1] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[1] = -1;</span>
<span style="color: #ff0000;">                bidak02._visible = false;</span>
<span style="color: #ff0000;">                bulat02._visible = false;</span>
<span style="color: #ff0000;">                silang02._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[1] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[5] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[5] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[5] = -1;</span>
<span style="color: #ff0000;">                bidak06._visible = false;</span>
<span style="color: #ff0000;">                bulat06._visible = false;</span>
<span style="color: #ff0000;">                silang06._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_jebak == 3)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[5] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[5] = -1;</span>
<span style="color: #ff0000;">                bidak06._visible = false;</span>
<span style="color: #ff0000;">                bulat06._visible = false;</span>
<span style="color: #ff0000;">                silang06._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[5] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_jebak == 4)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[1] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[7] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[7] = -1;</span>
<span style="color: #ff0000;">                bidak08._visible = false;</span>
<span style="color: #ff0000;">                bulat08._visible = false;</span>
<span style="color: #ff0000;">                silang08._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[7] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[1] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[1] = -1;</span>
<span style="color: #ff0000;">                bidak02._visible = false;</span>
<span style="color: #ff0000;">                bulat02._visible = false;</span>
<span style="color: #ff0000;">                silang02._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[3] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[5] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[5] = -1;</span>
<span style="color: #ff0000;">                bidak06._visible = false;</span>
<span style="color: #ff0000;">                bulat06._visible = false;</span>
<span style="color: #ff0000;">                silang06._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[5] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[3] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[3] = -1;</span>
<span style="color: #ff0000;">                bidak04._visible = false;</span>
<span style="color: #ff0000;">                bulat04._visible = false;</span>
<span style="color: #ff0000;">                silang04._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_jebak == 5)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[2] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[3] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[3] = -1;</span>
<span style="color: #ff0000;">                bidak04._visible = false;</span>
<span style="color: #ff0000;">                bulat04._visible = false;</span>
<span style="color: #ff0000;">                silang04._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[3] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_jebak == 6)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[3] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[3] = -1;</span>
<span style="color: #ff0000;">                bidak04._visible = false;</span>
<span style="color: #ff0000;">                bulat04._visible = false;</span>
<span style="color: #ff0000;">                silang04._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[3] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[7] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[7] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[7] = -1;</span>
<span style="color: #ff0000;">                bidak08._visible = false;</span>
<span style="color: #ff0000;">                bulat08._visible = false;</span>
<span style="color: #ff0000;">                silang08._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_jebak == 7)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[1] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[1] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[1] = -1;</span>
<span style="color: #ff0000;">                bidak02._visible = false;</span>
<span style="color: #ff0000;">                bulat02._visible = false;</span>
<span style="color: #ff0000;">                silang02._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[8] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[8] = -1;</span>
<span style="color: #ff0000;">                bidak09._visible = false;</span>
<span style="color: #ff0000;">                bulat09._visible = false;</span>
<span style="color: #ff0000;">                silang09._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[8] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    else if (index_jebak == 8)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[0] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[4] == 0) </span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[4] = -1;</span>
<span style="color: #ff0000;">                bidak05._visible = false;</span>
<span style="color: #ff0000;">                bulat05._visible = false;</span>
<span style="color: #ff0000;">                silang05._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[4] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[0] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[0] = -1;</span>
<span style="color: #ff0000;">                bidak01._visible = false;</span>
<span style="color: #ff0000;">                bulat01._visible = false;</span>
<span style="color: #ff0000;">                silang01._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[2] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[5] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[5] = -1;</span>
<span style="color: #ff0000;">                bidak06._visible = false;</span>
<span style="color: #ff0000;">                bulat06._visible = false;</span>
<span style="color: #ff0000;">                silang06._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[5] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[2] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[2] = -1;</span>
<span style="color: #ff0000;">                bidak03._visible = false;</span>
<span style="color: #ff0000;">                bulat03._visible = false;</span>
<span style="color: #ff0000;">                silang03._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[6] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[7] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[7] = -1;</span>
<span style="color: #ff0000;">                bidak08._visible = false;</span>
<span style="color: #ff0000;">                bulat08._visible = false;</span>
<span style="color: #ff0000;">                silang08._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else if (objek[7] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            if (objek[6] == 0)</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                objek[6] = -1;</span>
<span style="color: #ff0000;">                bidak07._visible = false;</span>
<span style="color: #ff0000;">                bulat07._visible = false;</span>
<span style="color: #ff0000;">                silang07._visible = true;</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">            else</span>
<span style="color: #ff0000;">            {</span>
<span style="color: #ff0000;">                LawanMain_JalanSerang();</span>
<span style="color: #ff0000;">            }</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        else</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            LawanMain_JalanAcak();</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">    }</span>
<span style="color: #ff0000;">    CekKemenangan();</span>
<span style="color: #ff0000;">    CekKekalahan();</span>
<span style="color: #ff0000;">}</span>

<span style="color: #ff0000;">function LawanMain(){</span>
<span style="color: #ff0000;">    if (kemenangan == 0)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        CekKemenangan();</span>
<span style="color: #ff0000;">        CekKekalahan();</span>
<span style="color: #ff0000;">    }</span>

<span style="color: #ff0000;">    iii = 0;</span>
<span style="color: #ff0000;">    while (iii <= 8)</span>
<span style="color: #ff0000;">    {</span>
<span style="color: #ff0000;">        if (objek[iii] == 1)</span>
<span style="color: #ff0000;">        {</span>
<span style="color: #ff0000;">            objek_jebak[iii] = -1;</span>
<span style="color: #ff0000;">            index_jalan = iii; </span>
<span style="color: #ff0000;">            break;</span>
<span style="color: #ff0000;">        }</span>
<span style="color: #ff0000;">        iii++;</span>
<span style="color: #ff0000;">    }</span>

<span style="color: #ff0000;">    LawanMain_Jalankan(index_jalan);</span>
<span style="color: #ff0000;">}</span>

<span style="color: #ff0000;">//////////////////////////////////////</span>
<span style="color: #ff0000;">// adapted from ajungpangi's thesis //</span>
<span style="color: #ff0000;">//      you MAY develop this        //</span>
<span style="color: #ff0000;">// BUT you MUST INCLUDE these lines //</span>
<span style="color: #ff0000;">//////////////////////////////////////</span>

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.