<?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 : runtime error</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : runtime error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 11 May 2026 17:37:32 +0000</pubDate>
  <lastBuildDate>Mon, 11 May 2026 16:29:35 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1513</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[runtime error : Harfler ASCII olarak alg&#305;lanmaktad&#305;r....]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1513&amp;PID=3484#3484</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1513<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Mayıs&nbsp;2026 Saat 16:29<br /><br />Harfler ASCII olarak algılanmaktadır. ve ek olarak klavye den basılan harfleri yakalamak açısından event i direk memo ya bağladım bütün ekranı kapladığından<br><br><em style=": rgb251, 251, 253;"><em>&nbsp; Form1.AddNewEvent(GameMemo, tbeOnKeyUp, 'FormKeyDown');</em></em><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>Mon, 11 May 2026 16:29:35 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1513&amp;PID=3484#3484</guid>
  </item> 
  <item>
   <title><![CDATA[runtime error : Runtime ve harf alg&#305;lama hatalar&#305;n&#305;n...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1513&amp;PID=3483#3483</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1513<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Mayıs&nbsp;2026 Saat 16:28<br /><br />Runtime ve harf algılama hatalarının çözülmüş hali bu şekildedir.<br><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; // DÜZELTME: SnakeX ve SnakeY yanına <em> eklendi</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; // DÜZELTME: SnakeX ve SnakeY yanına <em> eklendi</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; // DÜZELTME: SnakeX ve SnakeY atamalarına <em> eklendi</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; // DÜZELTME: SnakeX ve SnakeY atamalarına <em> eklendi</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; // DÜZELTME: Kendine çarpma kontrolünde <em> eklendi</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; // DÜZELTME: Başlangıç atamalarına <em> eklendi</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; //ShowMessage(IntToStr(Form1.clSenderKeyChar))</div><div>&nbsp; if (OyunBitti)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; // R (82) veya r (114) tuşları</div><div>&nbsp; &nbsp; if ((Form1.clSenderKeyChar == 114) || (Form1.clSenderKeyChar == 82)) Baslat;&nbsp;</div><div>&nbsp; &nbsp; exit;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; // W (87) veya w (119)</div><div>&nbsp; if ((Form1.clSenderKeyChar == 119) || (Form1.clSenderKeyChar == 87))&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (DirY &lt;&gt; 1) { DirX = 0; DirY = -1; }</div><div>&nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; // S (83) veya s (115)</div><div>&nbsp; if ((Form1.clSenderKeyChar == 115) || (Form1.clSenderKeyChar == 83))&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (DirY &lt;&gt; -1) { DirX = 0; DirY = 1; }</div><div>&nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; // A (65) veya a (97)</div><div>&nbsp; if ((Form1.clSenderKeyChar == 97) || (Form1.clSenderKeyChar == 65))&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (DirX &lt;&gt; 1) { DirX = -1; DirY = 0; }</div><div>&nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; // D (68) veya d (100)</div><div>&nbsp; if ((Form1.clSenderKeyChar == 100) || (Form1.clSenderKeyChar == 68))&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (DirX &lt;&gt; -1) { DirX = 1; DirY = 0; }</div><div>&nbsp; }</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; GameMemo.SetFocus;</div><div>&nbsp; //GameMemo.Enabled = False; // Klavyeyi yutmasını engeller, tuşlar Form'a gider</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(GameMemo, tbeOnKeyUp, 'FormKeyDown');</div><div>&nbsp;&nbsp;</div><div>&nbsp; Baslat;</div><div>&nbsp; Form1.Run;</div><div>}<br><br><br></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>Mon, 11 May 2026 16:28:09 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1513&amp;PID=3483#3483</guid>
  </item> 
  <item>
   <title><![CDATA[runtime error : var Form1: TclForm; Timer1: TClTimer;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1513&amp;PID=3478#3478</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> 1513<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Mayıs&nbsp;2026 Saat 14:59<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 == FoodX) &amp;&amp; (SnakeY == 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 == x) &amp;&amp; (SnakeY == 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 = SnakeX&#091;i-1&#093;;</div><div>&nbsp; &nbsp; &nbsp; SnakeY = 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 = SnakeX&#091;i-1&#093;;</div><div>&nbsp; &nbsp; &nbsp; SnakeY = 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) &amp;&amp; (SnakeY&#091;0&#093; == SnakeY))</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 = 10 - i;</div><div>&nbsp; &nbsp; SnakeY = 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>}&nbsp; &nbsp; &nbsp; &nbsp;sa kodum runtime error alıyor düzeltir 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>Mon, 11 May 2026 14:59:22 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1513&amp;PID=3478#3478</guid>
  </item> 
 </channel>
</rss>