<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185826</guid>
        <pubDate>Tue, 16 Apr 2002 16:27:51 +0000</pubDate>
        <title>Игра Balls!!??</title>
        <link>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185826</link>
        <description><![CDATA[vot: Закинь на сайт вторую!<br>И вообще вопрос ребром :)<br>А что у тебя еще есть особенного? Давай на сайт выложим?!]]></description>
        <author>vot</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185825</guid>
        <pubDate>Tue, 16 Apr 2002 15:52:04 +0000</pubDate>
        <title>Игра Balls!!??</title>
        <link>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185825</link>
        <description><![CDATA[7in: Это не &quot;Иван Сусанин&quot;. Просто у меня когда-то была мысль написать стратегию и нужен был алгоритм нахождения кратчайшего пути. Нашёл какую-то доку и решил попробовать как это работает.... :)<br>Есть ещё одна - то же самое, только ещё по диагонали ходит :)]]></description>
        <author>7in</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185824</guid>
        <pubDate>Mon, 08 Apr 2002 16:04:18 +0000</pubDate>
        <title>Игра Balls!!??</title>
        <link>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185824</link>
        <description><![CDATA[vot: Игра называется &quot;Иван Сусанин&quot; ? ;)<br>Кто автор? Когда написана?<br>У тебя еще много таких?]]></description>
        <author>vot</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185823</guid>
        <pubDate>Mon, 08 Apr 2002 15:39:59 +0000</pubDate>
        <title>Игра Balls!!??</title>
        <link>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185823</link>
        <description><![CDATA[7in: Есть подозрение, что тебя интересует именно это......<br><br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Uses Crt;&#60;br&#62;Const&#60;br&#62; &nbsp; Wall = #254;&#60;br&#62; &nbsp; Move = #250;&#60;br&#62; &nbsp; Nk = 250;&#60;br&#62;&#60;br&#62;Var&#60;br&#62; &nbsp; R: array [0..79, 0..49] of Byte;&#60;br&#62; &nbsp; Ni: Byte;&#60;br&#62; &nbsp; FX, FY: Byte;&#60;br&#62; &nbsp; i, j: Word;&#60;br&#62;&#60;br&#62;Procedure Init;&#60;br&#62;Begin&#60;br&#62; &nbsp; For j := 0 to 49 do&#60;br&#62; &nbsp; &nbsp; &nbsp;For i := 0 to 79 do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; If (i in [0, 79]) or (j in [0, 49]) then R[i, j] := 255&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; else Case Mem[$B800:j*160+i*2] of&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;32: R[i, j] := 254;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ord(&#39;X&#39;): R[i, j] := 0;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1: R[i, j] := 253;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else R[i, j] := 255&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; End;&#60;br&#62; &nbsp; Ni := 0&#60;br&#62;End;&#60;br&#62;&#60;br&#62;Procedure Clear;&#60;br&#62;Begin&#60;br&#62; &nbsp; For j := 1 to 48 do&#60;br&#62; &nbsp; &nbsp; &nbsp;For i := 1 to 78 do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; Case Mem[$B800:j*160+i*2] of&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ord(Move):&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GotoXY(i, j);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Write(&#39; &#39;#8)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2:&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GotoXY(i, j);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Write(#1#8)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; End&#60;br&#62;End;&#60;br&#62;&#60;br&#62;Procedure Start;&#60;br&#62;Var&#60;br&#62; &nbsp; Ok: Boolean;&#60;br&#62; &nbsp; X, Y, N, X1, Y1: Byte;&#60;br&#62;&#60;br&#62; Procedure Check(X, Y: Byte);&#60;br&#62; Begin&#60;br&#62; &nbsp; &nbsp;Case R[X, Y] of&#60;br&#62; &nbsp; &nbsp; &nbsp; 253: Ok := True;&#60;br&#62; &nbsp; &nbsp; &nbsp; 254: R[X, Y] := Ni+1&#60;br&#62; &nbsp; &nbsp;End&#60;br&#62; End;&#60;br&#62;&#60;br&#62; Procedure Find(X, Y: Byte);&#60;br&#62; Begin&#60;br&#62; &nbsp; &nbsp;If R[X, Y] &#60; N then&#60;br&#62; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; N := R[X, Y];&#60;br&#62; &nbsp; &nbsp; &nbsp; X1 := X;&#60;br&#62; &nbsp; &nbsp; &nbsp; Y1 := Y&#60;br&#62; &nbsp; &nbsp;End&#60;br&#62; End;&#60;br&#62;&#60;br&#62;Begin&#60;br&#62; &nbsp; Init;&#60;br&#62; &nbsp; Ok := False;&#60;br&#62; &nbsp; Repeat&#60;br&#62; &nbsp; &nbsp; &nbsp;For j := 1 to 48 do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; For i := 1 to 78 do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If Ok then Break;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If R[i, j] = Ni then&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Check(i, j-1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Check(i+1, j);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Check(i, j+1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Check(i-1, j)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; End;&#60;br&#62; &nbsp; &nbsp; &nbsp;Inc(Ni)&#60;br&#62; &nbsp; Until Ok or (Ni &#62; Nk);&#60;br&#62; &nbsp; If Ok then&#60;br&#62; &nbsp; Begin&#60;br&#62; &nbsp; &nbsp; &nbsp;X := FX;&#60;br&#62; &nbsp; &nbsp; &nbsp;Y := FY;&#60;br&#62; &nbsp; &nbsp; &nbsp;TextAttr := ;&#60;br&#62; &nbsp; &nbsp; &nbsp;Repeat&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; N := 255;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; Find(X, Y-1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; Find(X+1, Y);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; Find(X, Y+1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; Find(X-1, Y);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; If R[X1, Y1] = 0 then Break;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; GotoXY(X1, Y1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; Write(Move);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; X := X1;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; Y := Y1&#60;br&#62; &nbsp; &nbsp; &nbsp;Until False&#60;br&#62; &nbsp; End&#60;br&#62; &nbsp; else&#60;br&#62; &nbsp; Begin&#60;br&#62; &nbsp; &nbsp; &nbsp;TextAttr := E;&#60;br&#62; &nbsp; &nbsp; &nbsp;GotoXY(FX, FY);&#60;br&#62; &nbsp; &nbsp; &nbsp;Write(#2)&#60;br&#62; &nbsp; End;&#60;br&#62; &nbsp; TextAttr := F;&#60;br&#62; &nbsp; Window(1, 1, 80, 50);&#60;br&#62; &nbsp; GotoXY(3, 1);&#60;br&#62; &nbsp; Write(&#39;Итераций - &#39;, Ni, &#39;/250 &nbsp;&#39;#8#8);&#60;br&#62; &nbsp; If ReadKey = #0 then ReadKey;&#60;br&#62; &nbsp; TextAttr := F;&#60;br&#62; &nbsp; Window(2, 2, 80, 49);&#60;br&#62; &nbsp; Clear;&#60;br&#62; &nbsp; GotoXY(FX, FY)&#60;br&#62;End;&#60;br&#62;&#60;br&#62;Begin&#60;br&#62; &nbsp; TextMode(Co80+Font8x8);&#60;br&#62; &nbsp; TextAttr := E;&#60;br&#62; &nbsp; ClrScr;&#60;br&#62; &nbsp; GotoXY(3, 50);&#60;br&#62; &nbsp; Write(#27#26#24#25&#39; - Move; Space,Del,PgDn,Home,End,Tab - Wall; Insert - Man; PgUp - Target&#39;);&#60;br&#62; &nbsp; GotoXY(54, 1);&#60;br&#62; &nbsp; Write(&#39;ENTER - Start; ESC - Exit&#39;);&#60;br&#62; &nbsp; Window(2, 2, 79, 49);&#60;br&#62; &nbsp; TextAttr := F;&#60;br&#62; &nbsp; ClrScr;&#60;br&#62; &nbsp; Window(2, 2, 80, 49);&#60;br&#62; &nbsp; Repeat&#60;br&#62; &nbsp; &nbsp; &nbsp;Case ReadKey of&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; #00: Case ReadKey of&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#72: If WhereY &#62; 1 then GotoXY(WhereX, WhereY-1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#75: If WhereX &#62; 1 then GotoXY(WhereX-1, WhereY);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#77: If WhereX &#60; 78 then GotoXY(WhereX+1, WhereY);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#80: If WhereY &#60; 48 then GotoXY(WhereX, WhereY+1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#71: {Home}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If WhereY &#62; 1 then GotoXY(WhereX, WhereY-1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Mem[$B800:WhereY*160+WhereX*2] = 32 then&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Write(Wall+#8) else Write(&#39; &#39;#8);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (FX = WhereX) and (FY = WhereY) then FX := 0&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#83: {Del}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If WhereX &#62; 1 then GotoXY(WhereX-1, WhereY);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Mem[$B800:WhereY*160+WhereX*2] = 32 then&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Write(Wall+#8) else Write(&#39; &#39;#8);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (FX = WhereX) and (FY = WhereY) then FX := 0&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#81: {PgDn}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If WhereX &#60; 78 then GotoXY(WhereX+1, WhereY);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Mem[$B800:WhereY*160+WhereX*2] = 32 then&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Write(Wall+#8) else Write(&#39; &#39;#8);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (FX = WhereX) and (FY = WhereY) then FX := 0&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#79: {End}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If WhereY &#60; 48 then GotoXY(WhereX, WhereY+1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Mem[$B800:WhereY*160+WhereX*2] = 32 then&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Write(Wall+#8) else Write(&#39; &#39;#8);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (FX = WhereX) and (FY = WhereY) then FX := 0&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#59: {F1 - Clr}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For j := 1 to 48 do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For i := 1 to 78 do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GotoXY(i, j);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Write(&#39; &#39;#8)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FX := 0&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#60: {F2 - Fill}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For j := 1 to 48 do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For i := 1 to 78 do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GotoXY(i, j);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Write(Wall+#8)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FX := 0&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#73: {PgUp}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Write(&#39;X&#39;#8);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#82: {Ins}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i:= WhereX;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j := WhereY;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GotoXY(FX, FY);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Write(&#39; &#39;);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GotoXY(i, j);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Write(#1#8);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FX := i;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FY := j&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; #09: {Tab}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For Ni := 1 to 100 do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i := Random(78)+1;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j := Random(48)+1;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Mem[$B800:j*160+i*2] &#60;&#62; 1 then&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GotoXY(i, j);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Write(Wall+#8)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; #32: {Space}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; Begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If Mem[$B800:WhereY*160+WhereX*2] = 32 then&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Write(Wall+#8) else Write(&#39; &#39;#8);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If (FX = WhereX) and (FY = WhereY) then FX := 0&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; End;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; #13: {Enter}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If FX &#60;&#62; 0 then Start;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; #27: {Esc}&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Break&#60;br&#62; &nbsp; &nbsp; &nbsp;End&#60;br&#62; &nbsp; Until False;&#60;br&#62; &nbsp; TextMode(Co80);&#60;br&#62; &nbsp; TextAttr := 7;&#60;br&#62; &nbsp; ClrScr&#60;br&#62;End.&#60;br&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>7in</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185822</guid>
        <pubDate>Thu, 04 Apr 2002 10:24:17 +0000</pubDate>
        <title>Игра Balls!!??</title>
        <link>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185822</link>
        <description><![CDATA[vot: Еще была Карпухинская игра Color Balls - типа тетриса с цветными мячиками]]></description>
        <author>vot</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185821</guid>
        <pubDate>Thu, 04 Apr 2002 03:44:03 +0000</pubDate>
        <title>Игра Balls!!??</title>
        <link>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185821</link>
        <description><![CDATA[Mamochka: Игра называется IMHO LINES]]></description>
        <author>Mamochka</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185820</guid>
        <pubDate>Wed, 03 Apr 2002 21:31:19 +0000</pubDate>
        <title>Игра Balls!!??</title>
        <link>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185820</link>
        <description><![CDATA[Demo_S: а что хоть за игра? помню писал когда то на паскале - щарики по экрану летают, от границ отбиваються, между собой сталкиваються, разлетаються, даже звук при соударениях есть... не оно?]]></description>
        <author>Demo_S</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185819</guid>
        <pubDate>Tue, 26 Mar 2002 07:39:56 +0000</pubDate>
        <title>Игра Balls!!??</title>
        <link>https://forum.sources.ru/index.php?showtopic=26306&amp;view=findpost&amp;p=185819</link>
        <description><![CDATA[Bazo: :(<br><br>В 1993 годы Олегом Деминым была написана игрушка Balls/<br>Народ, во-первых на чем он ее писал? во-вторый мне очень, очень нужен исходник этой игры, или хотя бы что -то на нее похожее!!!!!<br>Help Pliz!]]></description>
        <author>Bazo</author>
        <category>Алгоритмы</category>
      </item>
	
      </channel>
      </rss>
	