<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ALight_Cycles</id>
	<title>TI-BASIC:Light Cycles - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ALight_Cycles"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Light_Cycles&amp;action=history"/>
	<updated>2026-05-28T15:35:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Light_Cycles&amp;diff=647&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Light_Cycles&amp;diff=647&amp;oldid=prev"/>
		<updated>2016-02-24T18:11:37Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you remember the old movie, &amp;#039;&amp;#039;Tron&amp;#039;&amp;#039;, you might remember the premise of this game.  You control a cycle (or in this case, a pixel) that moves in a direction until you change the direction.  It leaves a path, and if you hit the path, or the wall, you lose.  The trick here is that you must out last your opponent: an AI.  This version of Light Cycles for the calculator utilizes a simple AI system that makes it kind of intelligent.  Please try to understand the code and learn from it.&lt;br /&gt;
&lt;br /&gt;
== The Code ==&lt;br /&gt;
&lt;br /&gt;
 :Full&lt;br /&gt;
 :FnOff&lt;br /&gt;
 :AxesOff&lt;br /&gt;
 :0→Xmin:1→ΔX&lt;br /&gt;
 :0→Ymin:1→ΔY&lt;br /&gt;
 :ClrDraw&lt;br /&gt;
 :Vertical Xmin&lt;br /&gt;
 :Vertical Xmax&lt;br /&gt;
 :Horizontal Ymin&lt;br /&gt;
 :Horizontal Ymax&lt;br /&gt;
 :60→A:92→B&lt;br /&gt;
 :2→C:2→D:25→G&lt;br /&gt;
 :Pxl-On(A,B&lt;br /&gt;
 :Pxl-On(C,D&lt;br /&gt;
 :Text(-1,28,31,&amp;quot;READY?&lt;br /&gt;
 :Pause&lt;br /&gt;
 :For(E,26,36&lt;br /&gt;
 :Line(29,E,67,E,0&lt;br /&gt;
 :End&lt;br /&gt;
 :Repeat G=45 or not(pxl-Test(A,B) and pxl-Test(C,D&lt;br /&gt;
 :getKey&lt;br /&gt;
 :If Ans&lt;br /&gt;
 :Ans→G&lt;br /&gt;
 :A+(G=34)-(G=25→A&lt;br /&gt;
 :B+(G=26)-(G=24→B&lt;br /&gt;
 :1+pxl-Test(C+1,D&lt;br /&gt;
 :Ans+(Ans=2 and pxl-Test(C,D-1&lt;br /&gt;
 :Ans+(Ans=3 and pxl-Test(C-1,D→F&lt;br /&gt;
 :C+(Ans=1)-(Ans=3→C&lt;br /&gt;
 :D+(F=4)-(F=2→D&lt;br /&gt;
 :Pxl-Change(A,B&lt;br /&gt;
 :Pxl-Change(C,D&lt;br /&gt;
 :End[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>