Gönderen Konu: Guzel bir zeka oyun portal icin  (Okunma sayısı 2111 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
Guzel bir zeka oyun portal icin
« : Ağustos 03, 2008, 22:57:00 ÖS »
arkdaslar bunuda sizlerle paylasmak istedim sitenize kp den blok yarat html olarak sitenize kodlar ekleyin iste size gizel bir oyun.TESKUR ETMENIZE GEREK YOK
Kod: [Seç]
<table cellSpacing="1" cellPadding="1" width="12%" border="0" id="table1592">
<tr>
<td class="blocks">
<table id="table1593" cellSpacing="0" cellPadding="0" width="108" border="0">
<tr>
<td class="td_menu" vAlign="top" align="left" width="108" bgColor="#ffffff">
<font color="#3f5569" size="1">
<span style="BACKGROUND-COLOR: #ffffff"><!-- puzzle baslangic -->
<SCRIPT language=javascript>

var max = 3;

var score = 0;

var moves = 0;

var ex = 3;

var ey = 3;

function getElement15(form, name) {

var k;

var elements = form.elements;

for (k = 0; k < elements.length; k++) {

if (elements[k].name == name) return elements[k];

}

}

function press15(form, button) {

name = button.name;

x = name.substring(0,1);

y = name.substring(2,3);

play15(form, (x-1+1), (y-1+1));

}

function shuffle15(form, num) {

for (i = 0; i < num; i++) {

x = Math.floor(Math.random(4) * 4);

if (x == 0) { toggle15(form, ex, ey, ex + 1, ey); }

else if (x == 1) { toggle15(form, ex, ey, ex - 1, ey); }

else if (x == 2) { toggle15(form, ex, ey, ex, ey + 1); }

else if (x == 3) { toggle15(form, ex, ey, ex, ey - 1); }

}

}

function play15(form, x, y) {

if (Math.abs(ex - x) + Math.abs(ey - y) == 1) {

done = toggle15(form, x, y, x+1, y);

if (!done) { done = toggle15(form, x, y, x-1, y); }

if (!done) { done = toggle15(form, x, y, x, y+1); }

if (!done) { done = toggle15(form, x, y, x, y-1); }

moves++;

if (check15(form)) {

alert('Kazandiniz ' + moves + ' harekette!');

resetboard15(form);

}

}



}



function showrules15() {

rules = 'Puzzle  nn'

+ 'Oyunun oynanis sekli n'

+ 'blokta 1 den 15 kadar sayilar var n'

+ 'bos olan button u tiklayarakn'

+ 'numaralarin yerlerini degistirin.n'

+ '1 den 15 e kadar sirasiyla yapabildiginiz taktirden'

+ 'oyun bitmis olucak n'

+ 'oyun ilk acilista siralidir karistir tusuna basiniz.'

+ 'nn .';

alert(rules);

}



function resetboard15(form) {

for (i = 0; i < 4; i++) {

for (j = 0; j < 4; j++) {

val = 1 + i + (4*j);

if (val == 16) {

getElement15(form,i + '_' + j).value = ' ';

} else {

getElement15(form,i + '_' + j).value = val;

}

}

}

score = 0;

moves = 0;

ex = 3;

ey = 3;

}



function toggle15(form, x, y, x1, y1) {

if (x < 0 || y < 0 || x > max || y > max) {

return false;

}

if (x1 < 0 || y1 < 0 || x1 > max || y1 > max) {

return false;

}



name = x + '_' + y;

button = getElement15(form,name);

name = x1 + '_' + y1;

button1 = getElement15(form,name);

if (button.value == ' ' || button1.value == ' ') {

tmp = button.value;

button.value = button1.value;

button1.value = tmp;

if (button.value == ' ') {

ex = x;

ey = y;

} else {

ex = x1;

ey = y1;

}

return true;

}

return false;

}



function check15(form) {

score = 0;

for (i = 0; i < 4; i++) {

for (j = 0; j < 4; j++) {

val = 1 + i + (4*j);

if (val < 16) {

if (getElement15(form,i + '_' + j).value == val) {

score++;

}

}

}

}

return score == 15;

}

</SCRIPT>
</span></font>
<table id="table1594" cellSpacing="0" cellPadding="1" width="92%" border="0">
<form>
<tr align="middle">
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="javascript:press15(this.form, this);" type="button" value="1" name="0_0"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="javascript:press15(this.form, this);" type="button" value="2" name="1_0"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="3" name="2_0"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="4" name="3_0"></font></td>
</tr>
<tr align="middle">
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="5" name="0_1"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="6" name="1_1"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="7" name="2_1"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="8" name="3_1"></font></td>
</tr>
<tr align="middle">
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="9" name="0_2"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="10" name="1_2"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="11" name="2_2"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="12" name="3_2"></font></td>
</tr>
<tr align="middle">
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="13" name="0_3"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="14" name="1_3"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value="15" name="2_3"></font></td>
<td bgColor="#ffffff">
<font color="#ffffff" size="1">
<input class="submit" style="WIDTH: 25px; BACKGROUND-COLOR: #ffffff" onclick="press15(this.form, this);" type="button" value=" " name="3_3"></font></td>
</tr>
<tr>
<td bgColor="#ffffff" colSpan="2">
<font color="#ffffff" size="1">
<font color="#ffffff">
<input class="submit" style="WIDTH: 100%; BACKGROUND-COLOR: #ffffff" onclick="resetboard15(this.form);" type="button" value="Reset"></font><span style="BACKGROUND-COLOR: #ffffff">
</span></font></td>
<td bgColor="#ffffff" colSpan="2">
<font color="#ffffff" size="1">
<font color="#ffffff">
<input class="submit" style="WIDTH: 100%; BACKGROUND-COLOR: #ffffff" onclick="showrules15();" type="button" value="Kural"></font><span style="BACKGROUND-COLOR: #ffffff">
</span></font></td>
</tr>
<tr>
<td bgColor="#ffffff" colSpan="4">
<font color="#ffffff" size="1">
<font color="#ffffff">
<input class="submit" style="BACKGROUND-COLOR: #ffffff" onclick="shuffle15(this.form,150);" type="button" value="Kar&#305;&#351;t&#305;r"></font><span style="BACKGROUND-COLOR: #ffffff">
</span></font></td>
</tr>
<tr>
<td style="FONT-SIZE: 10px; FONT-FAMILY: Verdana" bgColor="#ffffff" colSpan="4" height="2">&nbsp;</td>
</tr>
</form>
</table>
<font color="#ffffff" size="1">
<span style="BACKGROUND-COLOR: #ffffff"><!-- puzzle son  -->
</span></font></td>
</tr>
</table>
</td>
</tr>
</table>
« Son Düzenleme: Ağustos 03, 2008, 23:01:44 ÖS Gönderen: isabey »
Konuyu Paylaş:
  delicious  facebook  twitter  google

Çevrimdışı ReaLMeR

  • İleti: 46
  • Puan: 26
-Guzel bir zeka oyun portal icin
« Yanıtla #1 : Ağustos 06, 2008, 16:54:52 ÖS »
İSA ABİM ÇOK ÇOK TŞK LER İŞİMİZE YARIYOR.SAOLASIN

Çevrimdışı ReaLMeR

  • İleti: 46
  • Puan: 26
-Guzel bir zeka oyun portal icin
« Yanıtla #2 : Ağustos 25, 2008, 11:00:45 ÖÖ »
Abi sağol varol.bende arıyordum böyle birşey. :"3 :'1

Çevrimdışı brsm

  • İleti: 11
  • Puan: 0
    • hisseanaliz
-Guzel bir zeka oyun portal icin
« Yanıtla #3 : Eylül 18, 2008, 11:35:21 ÖÖ »
teşekkürler :"3

Çevrimdışı EGD42

  • İleti: 13
  • Puan: 0
-Guzel bir zeka oyun portal icin
« Yanıtla #4 : Şubat 03, 2009, 19:00:17 ÖS »
 :'1 teşekkürler elinize emeginize saglık

Çevrimdışı cmetin_88

  • İleti: 13
  • Puan: 0
  • Cinsiyet: Bay
    • Türkiyenin En Gelişmiş tarım Destek Sitesi
-Guzel bir zeka oyun portal icin
« Yanıtla #5 : Haziran 23, 2010, 09:00:46 ÖÖ »
eline sağlık  :"3

 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
3 Yanıt
2089 Gösterim
Son İleti Ekim 14, 2008, 16:25:44 ÖS
Gönderen: Boss
0 Yanıt
3954 Gösterim
Son İleti Eylül 26, 2007, 14:38:13 ÖS
Gönderen: pcalav
0 Yanıt
1925 Gösterim
Son İleti Nisan 22, 2008, 22:21:17 ÖS
Gönderen: detailed
5 Yanıt
1499 Gösterim
Son İleti Eylül 20, 2008, 12:48:05 ÖS
Gönderen: isabey
0 Yanıt
616 Gösterim
Son İleti Nisan 14, 2010, 19:13:20 ÖS
Gönderen: burajan