MiniPeg

[Total: 0    Average: 0/5]

The program build up a cross-shaped matrix of 45 pegs on a board.

Body Code:

<form name=Aforma>

<center>
<input type=hidden name="CellName"    onclick=DoChanges(1)>
<input type=hidden name="CellName"    onclick=DoChanges(2)>
<input type=hidden name="CellName"    onclick=DoChanges(3)>
<input type=hidden name="CellName"    onclick=DoChanges(4)>
<input type=hidden name="CellName"    onclick=DoChanges(5)>
<input type=hidden name="CellName"    onclick=DoChanges(6)>
<input type=hidden name="CellName"    onclick=DoChanges(7)>
<input type=hidden name="CellName"    onclick=DoChanges(8)>
<input type=hidden name="CellName"    onclick=DoChanges(9)>
<input type=hidden name="CellName"    onclick=DoChanges(10)>
<input type=hidden name="CellName"    onclick=DoChanges(11)>
<input type=hidden name="CellName"    onclick=DoChanges(12)>
<input type=hidden name="CellName"    onclick=DoChanges(13)>
<br>

<input type=hidden name="CellName"    onclick=DoChanges(14)>
<input type=hidden name="CellName"    onclick=DoChanges(15)>
<input type=hidden name="CellName"    onclick=DoChanges(16)>
<input type=hidden name="CellName"    onclick=DoChanges(17)>
<input type=hidden name="CellName"    onclick=DoChanges(18)>
<input type=hidden name="CellName"    onclick=DoChanges(19)>
<input type=hidden name="CellName"    onclick=DoChanges(20)>
<input type=hidden name="CellName"    onclick=DoChanges(21)>
<input type=hidden name="CellName"    onclick=DoChanges(22)>
<input type=hidden name="CellName"    onclick=DoChanges(23)>
<input type=hidden name="CellName"    onclick=DoChanges(24)>
<input type=hidden name="CellName"    onclick=DoChanges(25)>
<input type=hidden name="CellName"    onclick=DoChanges(26)>
<br>

<input type=hidden name="CellName"    onclick=DoChanges(27)>
<input type=hidden name="CellName"    onclick=DoChanges(28)>
<input type=hidden name="CellName"    onclick=DoChanges(29)>
<input type=hidden name="CellName"    onclick=DoChanges(30)>
<input type=hidden name="CellName"    onclick=DoChanges(31)>
<input type=button name="CellName"    onclick=DoChanges(32)>
<input type=button name="CellName"    onclick=DoChanges(33)>
<input type=button name="CellName"    onclick=DoChanges(34)>
<input type=hidden name="CellName"    onclick=DoChanges(35)>
<input type=hidden name="CellName"    onclick=DoChanges(36)>
<input type=hidden name="CellName"    onclick=DoChanges(37)>
<input type=hidden name="CellName"    onclick=DoChanges(38)>
<input type=hidden name="CellName"    onclick=DoChanges(39)>
<br>
<input type=hidden name="CellName"    onclick=DoChanges(40)>
<input type=hidden name="CellName"    onclick=DoChanges(41)>
<input type=hidden name="CellName"    onclick=DoChanges(42)>
<input type=hidden name="CellName"    onclick=DoChanges(43)>
<input type=button name="CellName"    onclick=DoChanges(44)>
<input type=button name="CellName"    onclick=DoChanges(45)>
<input type=button name="CellName"    onclick=DoChanges(46)>
<input type=button name="CellName"    onclick=DoChanges(47)>
<input type=button name="CellName"    onclick=DoChanges(48)>
<input type=hidden name="CellName"    onclick=DoChanges(49)>
<input type=hidden name="CellName"    onclick=DoChanges(50)>
<input type=hidden name="CellName"    onclick=DoChanges(51)>
<input type=hidden name="CellName"    onclick=DoChanges(52)>
<br>

<input type=hidden name="CellName"    onclick=DoChanges(53)>
<input type=hidden name="CellName"    onclick=DoChanges(54)>
<input type=hidden name="CellName"    onclick=DoChanges(55)>
<input type=button name="CellName"    onclick=DoChanges(56)>
<input type=button name="CellName"    onclick=DoChanges(57)>
<input type=button name="CellName"    onclick=DoChanges(58)>
<input type=button name="CellName"    onclick=DoChanges(59)>
<input type=button name="CellName"    onclick=DoChanges(60)>
<input type=button name="CellName"    onclick=DoChanges(61)>
<input type=button name="CellName"    onclick=DoChanges(62)>
<input type=hidden name="CellName"    onclick=DoChanges(63)>
<input type=hidden name="CellName"    onclick=DoChanges(64)>
<input type=hidden name="CellName"    onclick=DoChanges(65)>
<br>

<input type=hidden name="CellName"    onclick=DoChanges(66)>
<input type=hidden name="CellName"    onclick=DoChanges(67)>
<input type=button name="CellName"    onclick=DoChanges(68)>
<input type=button name="CellName"    onclick=DoChanges(69)>
<input type=button name="CellName"    onclick=DoChanges(70)>
<input type=button name="CellName"    onclick=DoChanges(71)>
<input type=button name="CellName"    onclick=DoChanges(72)>
<input type=button name="CellName"    onclick=DoChanges(73)>
<input type=button name="CellName"    onclick=DoChanges(74)>
<input type=button name="CellName"    onclick=DoChanges(75)>
<input type=button name="CellName"    onclick=DoChanges(76)>
<input type=hidden name="CellName"    onclick=DoChanges(77)>
<input type=hidden name="CellName"    onclick=DoChanges(78)>
<br>

<input type=hidden name="CellName"    onclick=DoChanges(79)>
<input type=hidden name="CellName"    onclick=DoChanges(80)>
<input type=button name="CellName"    onclick=DoChanges(81)>
<input type=button name="CellName"    onclick=DoChanges(82)>
<input type=button name="CellName"    onclick=DoChanges(83)>
<input type=button name="CellName"    onclick=DoChanges(84)>
<input type=button name="CellName"    onclick=DoChanges(85)>
<input type=button name="CellName"    onclick=DoChanges(86)>
<input type=button name="CellName"    onclick=DoChanges(87)>
<input type=button name="CellName"    onclick=DoChanges(88)>
<input type=button name="CellName"    onclick=DoChanges(89)>
<input type=hidden name="CellName"    onclick=DoChanges(90)>
<input type=hidden name="CellName"    onclick=DoChanges(91)>
<br>

<input type=hidden name="CellName"    onclick=DoChanges(92)>
<input type=hidden name="CellName"    onclick=DoChanges(93)>
<input type=button name="CellName"    onclick=DoChanges(94)>
<input type=button name="CellName"    onclick=DoChanges(95)>
<input type=button name="CellName"    onclick=DoChanges(96)>
<input type=button name="CellName"    onclick=DoChanges(97)>
<input type=button name="CellName"    onclick=DoChanges(98)>
<input type=button name="CellName"    onclick=DoChanges(99)>
<input type=button name="CellName"    onclick=DoChanges(100)>
<input type=button name="CellName"    onclick=DoChanges(101)>
<input type=button name="CellName"    onclick=DoChanges(102)>
<input type=hidden name="CellName"    onclick=DoChanges(103)>
<input type=hidden name="CellName"    onclick=DoChanges(104)>
<br>


<input type=hidden name="CellName"    onclick=DoChanges(105)>
<input type=hidden name="CellName"    onclick=DoChanges(106)>
<input type=hidden name="CellName"    onclick=DoChanges(107)>
<input type=button name="CellName"    onclick=DoChanges(108)>
<input type=button name="CellName"    onclick=DoChanges(109)>
<input type=button name="CellName"    onclick=DoChanges(110)>
<input type=button name="CellName"    onclick=DoChanges(111)>
<input type=button name="CellName"    onclick=DoChanges(112)>
<input type=button name="CellName"    onclick=DoChanges(113)>
<input type=button name="CellName"    onclick=DoChanges(114)>
<input type=hidden name="CellName"    onclick=DoChanges(115)>
<input type=hidden name="CellName"    onclick=DoChanges(116)>
<input type=hidden name="CellName"    onclick=DoChanges(117)>
<br>
<input type=hidden name="CellName"    onclick=DoChanges(118)>
<input type=hidden name="CellName"    onclick=DoChanges(119)>
<input type=hidden name="CellName"    onclick=DoChanges(120)>
<input type=hidden name="CellName"    onclick=DoChanges(121)>
<input type=button name="CellName"    onclick=DoChanges(122)>
<input type=button name="CellName"    onclick=DoChanges(123)>
<input type=button name="CellName"    onclick=DoChanges(124)>
<input type=button name="CellName"    onclick=DoChanges(125)>
<input type=button name="CellName"    onclick=DoChanges(126)>
<input type=hidden name="CellName"    onclick=DoChanges(127)>
<input type=hidden name="CellName"    onclick=DoChanges(128)>
<input type=hidden name="CellName"    onclick=DoChanges(129)>
<input type=hidden name="CellName"    onclick=DoChanges(130)>
<br>
<input type=hidden name="CellName"    onclick=DoChanges(131)>
<input type=hidden name="CellName"    onclick=DoChanges(132)>
<input type=hidden name="CellName"    onclick=DoChanges(133)>
<input type=hidden name="CellName"    onclick=DoChanges(134)>
<input type=hidden name="CellName"    onclick=DoChanges(135)>
<input type=button name="CellName"    onclick=DoChanges(136)>
<input type=button name="CellName"    onclick=DoChanges(137)>
<input type=button name="CellName"    onclick=DoChanges(138)>
<input type=hidden name="CellName"    onclick=DoChanges(139)>
<input type=hidden name="CellName"    onclick=DoChanges(140)>
<input type=hidden name="CellName"    onclick=DoChanges(141)>
<input type=hidden name="CellName"    onclick=DoChanges(142)>
<input type=hidden name="CellName"    onclick=DoChanges(143)>
<br>
<input type=hidden name="CellName"    onclick=DoChanges(144)>
<input type=hidden name="CellName"    onclick=DoChanges(145)>
<input type=hidden name="CellName"    onclick=DoChanges(146)>
<input type=hidden name="CellName"    onclick=DoChanges(147)>
<input type=hidden name="CellName"    onclick=DoChanges(148)>
<input type=hidden name="CellName"    onclick=DoChanges(149)>
<input type=hidden name="CellName"    onclick=DoChanges(150)>
<input type=hidden name="CellName"    onclick=DoChanges(151)>
<input type=hidden name="CellName"    onclick=DoChanges(152)>
<input type=hidden name="CellName"    onclick=DoChanges(153)>
<input type=hidden name="CellName"    onclick=DoChanges(154)>
<input type=hidden name="CellName"    onclick=DoChanges(155)>
<input type=hidden name="CellName"    onclick=DoChanges(156)>
<br>
<input type=hidden name="CellName"    onclick=DoChanges(157)>
<input type=hidden name="CellName"    onclick=DoChanges(158)>
<input type=hidden name="CellName"    onclick=DoChanges(159)>
<input type=hidden name="CellName"    onclick=DoChanges(160)>
<input type=hidden name="CellName"  value= " English "  onclick=DoChanges(161)>

<input type=button name="CellName" value =" Help " onclick=DoChanges(162)>

<input type=button name="CellName" value =" Start " onclick=DoChanges(163)>

<input type=button name="CellName" value =" 🙂 " onclick=DoChanges(164)>
<input type=hidden name="CellName"    onclick=DoChanges(165)>
<input type=hidden name="CellName"    onclick=DoChanges(166)>
<input type=hidden name="CellName"    onclick=DoChanges(167)>
<input type=hidden name="CellName"    onclick=DoChanges(168)>
<input type=hidden name="CellName"  value =" Start "  onclick=BoardFill()(169)>

<br>
<select name=Espera onChange=ChangeButtons()>

<option value=0>
English
<option value=1>
Portugues
<option value=2>
עברית
</select>

</center>
</form>
<script language="javascript">
var LangIndex =0
Lang=new Array()
Lang[0]="An exclamation mark is a peg in a hole, and a dot is just an empty hole.  The aim of the game is to take off as many pegs as you can from the table. First click on a given peg, skip either its left, right, above or below neighbor peg, and then click on the next hole in line. This action will take off the neighbor peg and plug the first one in the hole. Try different settings on the browser's menu 'view, text size'  Good luck!"

Lang[1]="O ponto de exclamaחדo י um pino em um buraco, e o ponto י sעmente um buraco vazio. O objetivo do jogo י tirar tantos pinos do tablado quanto vocך consegue. Primeiro clique em um dado peg, passe por cima de um peg vizinho esquerdo, direito, em cima ou em baixo, e entדo clique no prףximo buraco em linha. Esta aחדo vai tirar o peg vizinho e enfiar o primeiro peg no buraco. Tente tamanhos diferentes no menu 'tamanho do texto'. Seja bem sucedido!"

Lang[2]="סימן קריאה הוא פין בחור, ונקודה היא פשות חור ריק. מטרת המסחק היא להוציא כמה שיותר פינים מהלוח. ראשת כול קליק על פין כלשהו, דלג על פין שכן משמאול, מימין, מלמעלה או מלמטה, ואז קליק על החור הבא בתור. פעולה זו תגרום לעלמות הפין השכן והכנסת הפין הראשון לחור נסה גדלים שונים בתפרית 'גודל הטקסט'.  בהצלחה   "

Lang[3]="That is me, the smiling idiit  -  freisho@hotmail.com"
Lang[4]="Sou eu, o idiota sorridente -  freisho@hotmail.com"
Lang[5]="זה אני, הדבילי המחייך  - freisho@hotmail.com"

Lang[6]=" Help "
Lang[7]=" Ajuda "
Lang[8]=" עזרה "

Lang[9]=" Start "
Lang[10]=" Comeחar"
Lang[11]=" להתחיל "

Lang[12]=" 🙂 "
Lang[13]=" 🙂 "
Lang[14]=" 🙂 "

Lang[15]="Reset the game?"
Lang[16]="Zerar o jogo?"
Lang[17]="?לאפס את המסחק "

var ResetAsk =0
var ResetOrNot=0
function BoardFill()
{
ResetOrNot=0
if (ResetAsk==1)
{
temp1=confirm(Lang[LangIndex+15])
if(temp1==false)
{
ResetOrNot=1
}
}
ResetAsk=1
if (ResetOrNot==0)
{
var Conta =0
var temp1="032033034045046047058059060068069070071072073"
var temp2="074075076081082083084085086087088089094095096"
var temp3="097098099100101102110111112123124125136137138"
var OsLugares=temp1+temp2+temp3
while(Conta < 135)
{
var Pos=OsLugares.substring(Conta,Conta+3)*1
document.Aforma.CellName[Pos-1].value="  !  "
Conta=Conta+3
}
document.Aforma.CellName[84].value="  .  "
}
}

var PreviousClicked=58
var ObNumber
function DoChanges(ObNumber)
{
var CellSymbol= document.Aforma.CellName[ObNumber-1].value.substring(2,3)
if(CellSymbol == "!")
{
PreviousClicked=ObNumber-1
}
if(CellSymbol == ".")
{
var Meio=(PreviousClicked-(ObNumber-1))/2
var temp=PreviousClicked-(ObNumber-1)
if(temp==-26 || temp==2 || temp==26 || temp==-2)
{
if (document.Aforma.CellName[(ObNumber-1)+Meio].value=="  !  ")
{
document.Aforma.CellName[PreviousClicked].value="  .  "
document.Aforma.CellName[(ObNumber-1)+Meio].value="  .  "
document.Aforma.CellName[ObNumber-1].value="  !  "
}
}
}
if(ObNumber==162)
{
alert(Lang[LangIndex])

}
if(ObNumber==163)
{
BoardFill()
}
if(ObNumber==164)
{
alert(Lang[LangIndex+3])
}
}
function ChangeButtons()
{
LangIndex=document.Aforma.Espera.options[document.Aforma.Espera.selectedIndex].value
LangIndex=LangIndex*1
document.Aforma.CellName[161].value=Lang[LangIndex+6]
document.Aforma.CellName[162].value=Lang[LangIndex+9]
document.Aforma.CellName[163].value=Lang[LangIndex+12]
}
</script> 

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *