<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : hata düzeltme</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : hata düzeltme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 21 Aug 2026 01:39:35 +0000</pubDate>
  <lastBuildDate>Sun, 10 May 2026 22:36:52 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1501</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[hata düzeltme : var Form1: TclForm; Timer1: TClTimer;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1501&amp;PID=3451#3451</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1501<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Mayıs&nbsp;2026 Saat 22:36<br /><br /><div>var</div><div>&nbsp; Form1: TclForm;</div><div>&nbsp; Timer1: TClTimer;</div><div>&nbsp; GridW, GridH: Integer;</div><div>&nbsp; SnakeX: array&#091;0..100&#093; of Integer;</div><div>&nbsp; SnakeY: array&#091;0..100&#093; of Integer;</div><div>&nbsp; SnakeLen: Integer;</div><div>&nbsp; FoodX, FoodY: Integer;</div><div>&nbsp; DirX, DirY: Integer;</div><div>&nbsp; OyunBitti: Boolean;</div><div>&nbsp; Puan: Integer;</div><div>&nbsp; GameMemo: TclMemo;</div><div><br></div><div>void YemekUret;</div><div>var</div><div>&nbsp; i: Integer;</div><div>&nbsp; Gecerli: Boolean;</div><div>{</div><div>&nbsp; Gecerli = False;</div><div>&nbsp; while (not Gecerli)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Gecerli = True;</div><div>&nbsp; &nbsp; FoodX = Random(GridW);</div><div>&nbsp; &nbsp; FoodY = Random(GridH);</div><div>&nbsp; &nbsp; for (i = 0 to SnakeLen - 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if ((SnakeX<em> == FoodX) &amp;&amp; (SnakeY<em> == FoodY))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Gecerli = False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void Ciz;</div><div>var</div><div>&nbsp; i, x, y: Integer;</div><div>&nbsp; Satir, Ekran: String;</div><div>&nbsp; YilanVar: Boolean;</div><div>{</div><div>&nbsp; Ekran = '';</div><div>&nbsp; for (x = 0 to GridW + 1) Ekran = Ekran + '#';</div><div>&nbsp; Ekran = Ekran + #13;</div><div>&nbsp;&nbsp;</div><div>&nbsp; for (y = 0 to GridH - 1)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Satir = '#';</div><div>&nbsp; &nbsp; for (x = 0 to GridW - 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if ((SnakeX&#091;0&#093; == x) &amp;&amp; (SnakeY&#091;0&#093; == y))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Satir = Satir + 'O';</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; YilanVar = False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; for (i = 1 to SnakeLen - 1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((SnakeX<em> == x) &amp;&amp; (SnakeY<em> == y))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; YilanVar = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (YilanVar)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Satir = Satir + 'o';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else if ((FoodX == x) &amp;&amp; (FoodY == y))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Satir = Satir + 'F';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Satir = Satir + '.';</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; Ekran = Ekran + Satir + '#' + #13;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; for (x = 0 to GridW + 1) Ekran = Ekran + '#';</div><div>&nbsp; Ekran = Ekran + #13 + 'PUAN: ' + IntToStr(Puan);</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (OyunBitti)&nbsp;</div><div>&nbsp; &nbsp; Ekran = Ekran + #13 + 'OYUN BITTI! &#091;R&#093; Yeniden Baslat';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; GameMemo.Lines.Text = Ekran;</div><div>}</div><div><br></div><div>void Hareket;</div><div>var</div><div>&nbsp; i: Integer;</div><div>&nbsp; YeniX, YeniY: Integer;</div><div>&nbsp; YemekYendi: Boolean;</div><div>{</div><div>&nbsp; if (OyunBitti) exit;</div><div>&nbsp;&nbsp;</div><div>&nbsp; YeniX = SnakeX&#091;0&#093; + DirX;</div><div>&nbsp; YeniY = SnakeY&#091;0&#093; + DirY;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if ((YeniX &lt; 0) || (YeniX &gt;= GridW) || (YeniY &lt; 0) || (YeniY &gt;= GridH))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; OyunBitti = True;</div><div>&nbsp; &nbsp; Ciz;</div><div>&nbsp; &nbsp; exit;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; YemekYendi = (YeniX == FoodX) &amp;&amp; (YeniY == FoodY);</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (YemekYendi)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; SnakeLen = SnakeLen + 1;</div><div>&nbsp; &nbsp; Puan = Puan + 10;</div><div>&nbsp; &nbsp; for (i = SnakeLen - 1 downto 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; SnakeX<em> = SnakeX&#091;i-1&#093;;</div><div>&nbsp; &nbsp; &nbsp; SnakeY<em> = SnakeY&#091;i-1&#093;;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; YemekUret;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; for (i = SnakeLen - 1 downto 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; SnakeX<em> = SnakeX&#091;i-1&#093;;</div><div>&nbsp; &nbsp; &nbsp; SnakeY<em> = SnakeY&#091;i-1&#093;;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; SnakeX&#091;0&#093; = YeniX;</div><div>&nbsp; SnakeY&#091;0&#093; = YeniY;</div><div>&nbsp;&nbsp;</div><div>&nbsp; for (i = 1 to SnakeLen - 1)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if ((SnakeX&#091;0&#093; == SnakeX<em>) &amp;&amp; (SnakeY&#091;0&#093; == SnakeY<em>))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; OyunBitti = True;</div><div>&nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; Ciz;</div><div>}</div><div><br></div><div>void Baslat;</div><div>var</div><div>&nbsp; i: Integer;</div><div>{</div><div>&nbsp; GridW = 20;</div><div>&nbsp; GridH = 12;</div><div>&nbsp; SnakeLen = 3;</div><div>&nbsp; for (i = 0 to SnakeLen - 1)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; SnakeX<em> = 10 - i;</div><div>&nbsp; &nbsp; SnakeY<em> = 6;</div><div>&nbsp; }</div><div>&nbsp; DirX = 1;</div><div>&nbsp; DirY = 0;</div><div>&nbsp; OyunBitti = False;</div><div>&nbsp; Puan = 0;</div><div>&nbsp; YemekUret;</div><div>&nbsp; Ciz;</div><div>}</div><div><br></div><div>void TimerOlayi;</div><div>{</div><div>&nbsp; Hareket;</div><div>}</div><div><br></div><div>void FormKeyDown;</div><div>{</div><div>&nbsp; if (OyunBitti)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (UpperCase(Form1.clSenderKeyChar) == 'R') Baslat;</div><div>&nbsp; &nbsp; exit;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (UpperCase(Form1.clSenderKeyChar) == 'W')&nbsp;</div><div>&nbsp; &nbsp; if (DirY &lt;&gt; 1)&nbsp;</div><div>&nbsp; &nbsp; DirX = 0; DirY = -1;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; if (UpperCase(Form1.clSenderKeyChar) == 'S')&nbsp;</div><div>&nbsp; &nbsp; if (DirY &lt;&gt; -1) DirX = 0; DirY = 1;</div><div>&nbsp; if (UpperCase(Form1.clSenderKeyChar) == 'A')&nbsp;</div><div>&nbsp; &nbsp; if (DirX &lt;&gt; 1) DirX = -1; DirY = 0;</div><div>&nbsp; if (UpperCase(Form1.clSenderKeyChar) == 'D')&nbsp;</div><div>&nbsp; &nbsp; if (DirX &lt;&gt; -1) DirX = 1; DirY = 0;</div><div>}</div><div><br></div><div>{</div><div>&nbsp; Form1 = TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; GameMemo = Form1.AddNewMemo(Form1, 'GameMemo', '');</div><div>&nbsp; GameMemo.Align = alClient;</div><div>&nbsp; GameMemo.ReadOnly = True;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Timer1 = Form1.AddNewTimer(Form1, 'Timer1', 200);</div><div>&nbsp; Timer1.Enabled = True;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Form1.AddNewEvent(Timer1, tbeOnTimer, 'TimerOlayi');</div><div>&nbsp; Form1.AddNewEvent(Form1, tbeOnKeyDown, 'FormKeyDown');</div><div>&nbsp;&nbsp;</div><div>&nbsp; Baslat;</div><div>&nbsp; Form1.Run;</div><div>}</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516"</a> integrity="sha512-8DS7rgIrAmghBFwoOTujcf6D9rXvH8xm8JQ1Ja01h9QX8EzXldiszufYa4IFfKdLUKTTrnSFXLDkUEOTrZQ8Qg==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Sun, 10 May 2026 22:36:52 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1501&amp;PID=3451#3451</guid>
  </item> 
  <item>
   <title><![CDATA[hata düzeltme : var Form1: TclForm; Timer1: TClTimer;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1501&amp;PID=3444#3444</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=385">Mali Demirok</a><br /><strong>Konu:</strong> 1501<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Mayıs&nbsp;2026 Saat 15:38<br /><br /><div>var</div><div>&nbsp; Form1: TclForm;</div><div>&nbsp; Timer1: TClTimer;</div><div>&nbsp; GridW, GridH: Integer;</div><div>&nbsp; SnakeX: array&#091;0..100&#093; of Integer;</div><div>&nbsp; SnakeY: array&#091;0..100&#093; of Integer;</div><div>&nbsp; SnakeLen: Integer;</div><div>&nbsp; FoodX, FoodY: Integer;</div><div>&nbsp; DirX, DirY: Integer;</div><div>&nbsp; OyunBitti: Boolean;</div><div>&nbsp; Puan: Integer;</div><div>&nbsp; SonHareket: TDateTime;</div><div><br></div><div>procedure YemekUret;</div><div>var</div><div>&nbsp; i: Integer;</div><div>&nbsp; Gecerli: Boolean;</div><div>{</div><div>&nbsp; do</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Gecerli = True;</div><div>&nbsp; &nbsp; FoodX = Random(GridW);</div><div>&nbsp; &nbsp; FoodY = Random(GridH);</div><div>&nbsp; &nbsp; for (i = 0 to SnakeLen-1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if ((SnakeX<em> == FoodX) &amp;&amp; (SnakeY<em> == FoodY))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Gecerli = False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; } while (!Gecerli);</div><div>}</div><div><br></div><div>procedure Ciz;</div><div>var</div><div>&nbsp; i, x, y: Integer;</div><div>&nbsp; Satir: String;</div><div>{</div><div>&nbsp; Satir = "";</div><div>&nbsp; for (x = 0 to GridW+1) Satir = Satir + "#";</div><div>&nbsp; ShowMessage(Satir);</div><div>&nbsp;&nbsp;</div><div>&nbsp; for (y = 0 to GridH-1)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Satir = "#";</div><div>&nbsp; &nbsp; for (x = 0 to GridW-1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if ((SnakeX&#091;0&#093; == x) &amp;&amp; (SnakeY&#091;0&#093; == y))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Satir = Satir + "O";</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; var YilanVar = False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; for (i = 1 to SnakeLen-1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((SnakeX<em> == x) &amp;&amp; (SnakeY<em> == y))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Satir = Satir + "o";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; YilanVar = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if ((FoodX == x) &amp;&amp; (FoodY == y))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Satir = Satir + "F";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else if (!YilanVar)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Satir = Satir + ".";</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; Satir = Satir + "#";</div><div>&nbsp; &nbsp; ShowMessage(Satir);</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; Satir = "";</div><div>&nbsp; for (x = 0 to GridW+1) Satir = Satir + "#";</div><div>&nbsp; ShowMessage(Satir);</div><div>&nbsp; ShowMessage("PUAN: " + IntToStr(Puan));</div><div>&nbsp; if (OyunBitti) ShowMessage("OYUN BITTI! R ile yeniden baslat");</div><div>}</div><div><br></div><div>procedure Hareket;</div><div>var</div><div>&nbsp; i: Integer;</div><div>&nbsp; YeniX, YeniY: Integer;</div><div>&nbsp; YemekYendi: Boolean;</div><div>{</div><div>&nbsp; if (OyunBitti) exit;</div><div>&nbsp;&nbsp;</div><div>&nbsp; YeniX = SnakeX&#091;0&#093; + DirX;</div><div>&nbsp; YeniY = SnakeY&#091;0&#093; + DirY;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if ((YeniX &lt; 0) || (YeniX &gt;= GridW) || (YeniY &lt; 0) || (YeniY &gt;= GridH))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; OyunBitti = True;</div><div>&nbsp; &nbsp; Ciz();</div><div>&nbsp; &nbsp; exit;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; YemekYendi = (YeniX == FoodX) &amp;&amp; (YeniY == FoodY);</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (YemekYendi)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; for (i = SnakeLen downto 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; SnakeX<em> = SnakeX&#091;i-1&#093;;</div><div>&nbsp; &nbsp; &nbsp; SnakeY<em> = SnakeY&#091;i-1&#093;;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; SnakeLen = SnakeLen + 1;</div><div>&nbsp; &nbsp; Puan = Puan + 10;</div><div>&nbsp; &nbsp; YemekUret();</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; for (i = SnakeLen-1 downto 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; SnakeX<em> = SnakeX&#091;i-1&#093;;</div><div>&nbsp; &nbsp; &nbsp; SnakeY<em> = SnakeY&#091;i-1&#093;;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; SnakeX&#091;0&#093; = YeniX;</div><div>&nbsp; SnakeY&#091;0&#093; = YeniY;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (!YemekYendi)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; for (i = 1 to SnakeLen-1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if ((SnakeX&#091;0&#093; == SnakeX<em>) &amp;&amp; (SnakeY&#091;0&#093; == SnakeY<em>))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; OyunBitti = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; Ciz();</div><div>}</div><div><br></div><div>procedure YonDegistir(yDx, yDy: Integer);</div><div>{</div><div>&nbsp; if (!((DirX == -yDx) &amp;&amp; (DirY == -yDy)))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; DirX = yDx;</div><div>&nbsp; &nbsp; DirY = yDy;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>procedure Baslat;</div><div>var</div><div>&nbsp; i: Integer;</div><div>{</div><div>&nbsp; GridW = 20;</div><div>&nbsp; GridH = 15;</div><div>&nbsp; SnakeLen = 3;</div><div>&nbsp; for (i = 0 to SnakeLen-1)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; SnakeX<em> = 10 - i;</div><div>&nbsp; &nbsp; SnakeY<em> = 7;</div><div>&nbsp; }</div><div>&nbsp; DirX = 1;</div><div>&nbsp; DirY = 0;</div><div>&nbsp; OyunBitti = False;</div><div>&nbsp; Puan = 0;</div><div>&nbsp; YemekUret();</div><div>&nbsp; SonHareket = Now;</div><div>&nbsp; Ciz();</div><div>}</div><div><br></div><div>void TimerOlayi;</div><div>{</div><div>&nbsp; if (MillisecondsBetween(Now, SonHareket) &gt;= 200)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Hareket();</div><div>&nbsp; &nbsp; SonHareket = Now;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void FormKeyDown;</div><div>var</div><div>&nbsp; tus: String;</div><div>{</div><div>&nbsp; tus = Form1.clSenderKeyChar;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (OyunBitti)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if ((tus == "R") || (tus == "r")) Baslat();</div><div>&nbsp; &nbsp; exit;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if ((tus == "W") || (tus == "w")) YonDegistir(0, -1);</div><div>&nbsp; if ((tus == "S") || (tus == "s")) YonDegistir(0, 1);</div><div>&nbsp; if ((tus == "A") || (tus == "a")) YonDegistir(-1, 0);</div><div>&nbsp; if ((tus == "D") || (tus == "d")) YonDegistir(1, 0);</div><div>}</div><div><br></div><div>{</div><div>&nbsp; Form1 = TclForm.Create(Self);</div><div>&nbsp; Timer1 = Form1.AddNewTimer(Form1, "Timer1", 50);</div><div>&nbsp; Timer1.Enabled = True;</div><div>&nbsp; Form1.AddNewEvent(Timer1, tbeOnTimer, "TimerOlayi");</div><div>&nbsp; Form1.AddNewEvent(Form1, tbeOnKeyDown, "FormKeyDown");</div><div>&nbsp; Baslat();</div><div>&nbsp; Form1.Run();</div><div>}&nbsp; sa kodum birkaç yerde hata veriyor hataları düzeltip kodu tekrardan yazabilir misiniz</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516"</a> integrity="sha512-8DS7rgIrAmghBFwoOTujcf6D9rXvH8xm8JQ1Ja01h9QX8EzXldiszufYa4IFfKdLUKTTrnSFXLDkUEOTrZQ8Qg==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Sun, 10 May 2026 15:38:29 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1501&amp;PID=3444#3444</guid>
  </item> 
 </channel>
</rss>