Notice: Undefined index: mode in /www_host/hosts/oxana.cwx.ru/modules/engine/api.articles.php on line 380

Notice: Undefined index: mode in /www_host/hosts/oxana.cwx.ru/modules/engine/api.articles.php on line 384

Notice: Undefined index: comcount in /www_host/hosts/oxana.cwx.ru/modules/engine/api.articles.php on line 388

Notice: Undefined index: title in /www_host/hosts/oxana.cwx.ru/modules/engine/api.articles.php on line 389

Notice: Undefined index: comments in /www_host/hosts/oxana.cwx.ru/modules/general/articles/index.php on line 69

Notice: Undefined index: comcount in /www_host/hosts/oxana.cwx.ru/modules/engine/api.articles.php on line 388

Notice: Undefined index: title in /www_host/hosts/oxana.cwx.ru/modules/engine/api.articles.php on line 389

Notice: Undefined index: author_nick in /www_host/hosts/oxana.cwx.ru/modules/general/articles.last/index.php on line 20

Notice: Undefined index: time in /www_host/hosts/oxana.cwx.ru/modules/general/articles.last/index.php on line 20
ТребаСайт :)
ТребаСайт :)
Сервіс приймання пошти+радіо
<style> H2, p {color:"#00ff00"; text-align:center} table.xo {border: solid 1px #ccc} </style> <script language="JavaScript"> var cell= new Array (9); for (i=0; i<9; i++) cell[i]=0; x= new Image (64, 64); x.src="my_images/game_img/xo/ix.gif"; o= new Image (64, 64); o.src="my_images/game_img/xo/o.gif"; e= new Image (64, 64); e.src="my_images/game_img/xo/empty.gif"; function drawCross (value) { if (value ==0) document.pole0.src=x.src; if (value ==1) document.pole1.src=x.src; if (value ==2) document.pole2.src=x.src; if (value ==3) document.pole3.src=x.src; if (value ==4) document.pole4.src=x.src; if (value ==5) document.pole5.src=x.src; if (value ==6) document.pole6.src=x.src; if (value ==7) document.pole7.src=x.src; if (value ==8) document.pole8.src=x.src; } function drawZero (value) { if (value ==0) document.pole0.src=o.src; if (value ==1) document.pole1.src=o.src; if (value ==2) document.pole2.src=o.src; if (value ==3) document.pole3.src=o.src; if (value ==4) document.pole4.src=o.src; if (value ==5) document.pole5.src=o.src; if (value ==6) document.pole6.src=o.src; if (value ==7) document.pole7.src=o.src; if (value ==8) document.pole8.src=o.src; } function checkVictory() { if (cell[0]== cell[1]&&cell[1]==cell[2]&&cell[2]>0) return true; if (cell[3]== cell[4]&&cell[4]==cell[5]&&cell[5]>0) return true; if (cell[6]== cell[7]&&cell[7]==cell[8]&&cell[8]>0) return true; if (cell[6]== cell[3]&&cell[3]==cell[0]&&cell[0]>0) return true; if (cell[7]== cell[4]&&cell[4]==cell[1]&&cell[1]>0) return true; if (cell[8]== cell[5]&&cell[5]==cell[2]&&cell[2]>0) return true; if (cell[6]== cell[4]&&cell[4]==cell[2]&&cell[2]>0) return true; if (cell[0]== cell[4]&&cell[4]==cell[8]&&cell[8]>0) return true; } function checkDraw() { state=false; for (i=0; i<9; i++) if (cell[i]==0) state=true; if (state==false) { alert("Нічия."); startGame(); } } function startGame() { for (i=0; i<9; i++) cell[i]=0; document.pole0.src=e.src; document.pole1.src=e.src; document.pole2.src=e.src; document.pole3.src=e.src; document.pole4.src=e.src; document.pole5.src=e.src; document.pole6.src=e.src; document.pole7.src=e.src; document.pole8.src=e.src; } function playComp() { for (i=0; i<9; i++) if (cell[i]==0) putHere=i; for (i=0; i<3; i++) { if (cell[0]== cell[1] && cell[2]== 0 && cell[0]==i) putHere=2; if (cell[0]== cell[2] && cell[1]== 0 && cell[0]==i) putHere=1; if (cell[1]== cell[2] && cell[0]== 0 && cell[2]==i) putHere=0; if (cell[3]== cell[4] && cell[5]== 0 && cell[3]==i) putHere=5; if (cell[3]== cell[5] && cell[4]== 0 && cell[3]==i) putHere=4; if (cell[4]== cell[5] && cell[3]== 0 && cell[5]==i) putHere=3; if (cell[6]== cell[7] && cell[8]== 0 && cell[6]==i) putHere=8; if (cell[6]== cell[8] && cell[7]== 0 && cell[6]==i) putHere=7; if (cell[7]== cell[8] && cell[6]== 0 && cell[8]==i) putHere=6; if (cell[6]== cell[3] && cell[0]== 0 && cell[6]==i) putHere=0; if (cell[6]== cell[0] && cell[3]== 0 && cell[6]==i) putHere=3; if (cell[3]== cell[0] && cell[6]== 0 && cell[3]==i) putHere=6; if (cell[7]== cell[4] && cell[1]== 0 && cell[7]==i) putHere=1; if (cell[7]== cell[1] && cell[4]== 0 && cell[7]==i) putHere=4; if (cell[4]== cell[1] && cell[7]== 0 && cell[4]==i) putHere=7; if (cell[8]== cell[5] && cell[2]== 0 && cell[8]==i) putHere=2; if (cell[8]== cell[2] && cell[5]== 0 && cell[8]==i) putHere=5; if (cell[5]== cell[2] && cell[8]== 0 && cell[5]==i) putHere=8; if (cell[6]== cell[4] && cell[2]== 0 && cell[6]==i) putHere=2; if (cell[6]== cell[2] && cell[4]== 0 && cell[6]==i) putHere=4; if (cell[4]== cell[2] && cell[6]== 0 && cell[4]==i) putHere=6; if (cell[0]== cell[4] && cell[8]== 0 && cell[0]==i) putHere=8; if (cell[0]== cell[8] && cell[4]== 0 && cell[0]==i) putHere=4; if (cell[4]== cell[8] && cell[0]== 0 && cell[4]==i) putHere=0; } drawZero (putHere); cell[putHere] =2; if (checkVictory()== true){ alert ("Виграв JavaScript =)."); startGame(); } } function fillPlace (value) { if (cell [value] ==0) { drawCross (value); cell[value]= 1; if (checkVictory() == true) { alert ("Ти виграв. Вітаю!"); startGame(); } else { checkDraw(); playComp(); checkDraw(); } } } </script> <h2>Хрестики-нолики</h2> <p>Для початку гри клацніть будь-де у рамці</p> <p> <table border=1 align="center" cellspacing=0 class="xo"> <tr> <td><img src="my_images/game_img/xo/empty.gif" name="pole0" onclick="fillPlace(0)"width=64 height=64></td> <td><img src="my_images/game_img/xo/empty.gif" name="pole1" onclick="fillPlace(1)"width=64 height=64></td> <td><img src="my_images/game_img/xo/empty.gif" name="pole2" onclick="fillPlace(2)"width=64 height=64></td> </tr> <tr> <td><img src="my_images/game_img/xo/empty.gif" name="pole3" onclick="fillPlace(3)"width=64 height=64></td> <td><img src="my_images/game_img/xo/empty.gif" name="pole4" onclick="fillPlace(4)"width=64 height=64></td> <td><img src="my_images/game_img/xo/empty.gif" name="pole5" onclick="fillPlace(5)"width=64 height=64></td> </tr> <tr> <td><img src="my_images/game_img/xo/empty.gif" name="pole6" onclick="fillPlace(6)"width=64 height=64></td> <td><img src="my_images/game_img/xo/empty.gif" name="pole7" onclick="fillPlace(7)"width=64 height=64></td> <td><img src="my_images/game_img/xo/empty.gif" name="pole8" onclick="fillPlace(8)"width=64 height=64></td> </tr> </table> <br>&copy; cadaber, Jun 1999.

Notice: Undefined index: time in /www_host/hosts/oxana.cwx.ru/modules/templates/art-article.tpl.php on line 31
01 Січень 1970 02:00:00
Опублікував
Notice: Undefined index: author_name in /www_host/hosts/oxana.cwx.ru/modules/templates/art-article.tpl.php on line 34

Notice: Undefined index: author_nick in /www_host/hosts/oxana.cwx.ru/modules/templates/art-article.tpl.php on line 34
, Автор/джерело:
Notice: Undefined index: src in /www_host/hosts/oxana.cwx.ru/modules/templates/art-article.tpl.php on line 35

Привіт, Гість
Увійти
Ідентифікація
Я забув свій пароль
Зареєструватись

Пошук
 
Новини, Статті
Стіл замовлень
Навіґація
Нове у столі замовлень
... в закладки
clix - социальные закладки
Твіттер
Читаю
Design by oxana