<?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%3AConnect_4_2_Player</id>
	<title>TI-BASIC:Connect 4 2 Player - 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%3AConnect_4_2_Player"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Connect_4_2_Player&amp;action=history"/>
	<updated>2026-04-04T00:28:05Z</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:Connect_4_2_Player&amp;diff=1617&amp;oldid=prev</id>
		<title>Maintenance script: Automated internal link correction</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Connect_4_2_Player&amp;diff=1617&amp;oldid=prev"/>
		<updated>2016-02-25T00:37:56Z</updated>

		<summary type="html">&lt;p&gt;Automated internal link correction&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:37, 25 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is your Basic connect 4 game. Drop Checkers down any of the 7 columns, taking turns until either the board is filled of one player gets four in a row. Try to understand the code. It uses Matrix [A] to track the game board, Var P as one or two to track whose turn it is, V as the input-ed column, L2 as the height of the columns, And Z as the counter for the possible number of turns.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is your Basic connect 4 game. Drop Checkers down any of the 7 columns, taking turns until either the board is filled of one player gets four in a row. Try to understand the code. It uses Matrix [A] to track the game board, Var P as one or two to track whose turn it is, V as the input-ed column, L2 as the height of the columns, And Z as the counter for the possible number of turns.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;TOC&#039;&#039;&#039;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;__TOC__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== The Code ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== The Code ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Connect_4_2_Player&amp;diff=852&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:Connect_4_2_Player&amp;diff=852&amp;oldid=prev"/>
		<updated>2016-02-24T18:21:56Z</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;This is your Basic connect 4 game. Drop Checkers down any of the 7 columns, taking turns until either the board is filled of one player gets four in a row. Try to understand the code. It uses Matrix [A] to track the game board, Var P as one or two to track whose turn it is, V as the input-ed column, L2 as the height of the columns, And Z as the counter for the possible number of turns.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;TOC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== The Code ==&lt;br /&gt;
&lt;br /&gt;
 DelVar [A]:{6,7-&amp;gt;dim([A]            //sets [A] to 6x7 all 0&amp;#039;s&lt;br /&gt;
 Disp&amp;quot;&lt;br /&gt;
 Disp&amp;quot;+-+-+-+-+-+-+-+&lt;br /&gt;
 For(A,1,5&lt;br /&gt;
 Disp&amp;quot;]&lt;br /&gt;
 End&lt;br /&gt;
 Output(8,1,&amp;quot;]&lt;br /&gt;
 For(A,3,8&lt;br /&gt;
 Output(A,15,&amp;quot;[&lt;br /&gt;
 End&lt;br /&gt;
 For(A,1,8&lt;br /&gt;
 Output(A,16,sub(&amp;quot;PLAYER_ _&amp;quot;,A,1                                            //&amp;quot;_&amp;quot; is a space&lt;br /&gt;
 End&lt;br /&gt;
 0-&amp;gt;θ&lt;br /&gt;
 2-&amp;gt;P&lt;br /&gt;
 {6,6,6,6,6,6,6-&amp;gt;L2:0-&amp;gt;θ&lt;br /&gt;
 For(Z,1,42&lt;br /&gt;
 If θ&lt;br /&gt;
 Goto 1&lt;br /&gt;
 (P=1)2+(P=2)-&amp;gt;P&lt;br /&gt;
 Output(8,16,P&lt;br /&gt;
 2-&amp;gt;V&lt;br /&gt;
 Repeat K=105 and L2(V/2&lt;br /&gt;
 Output(1,V,&amp;quot;v&lt;br /&gt;
 Repeat K&lt;br /&gt;
 getKey-&amp;gt;K&lt;br /&gt;
 End&lt;br /&gt;
 Output(1,V,&amp;quot;_&lt;br /&gt;
 V+2(K=26 and V&amp;lt;=12)-2(K=24 and V&amp;gt;=4)-&amp;gt;V&lt;br /&gt;
 End&lt;br /&gt;
 V/2-&amp;gt;V&lt;br /&gt;
 P(P=1)+(P-3)(P=2)-&amp;gt;[A](L2(V),V)&lt;br /&gt;
 If P=1&lt;br /&gt;
 Output(2+L2(V),2V,&amp;quot;0                                           //zero&lt;br /&gt;
 If P=2&lt;br /&gt;
 Output(2+L2(V),2V,&amp;quot;O                                          //letter O&lt;br /&gt;
 0-&amp;gt;θ&lt;br /&gt;
 If L2(V)&amp;lt;=3&lt;br /&gt;
 Then&lt;br /&gt;
 For(A,7,5,-1&lt;br /&gt;
 cumSum(seq([A](A-I,V),I,1,4&lt;br /&gt;
 If Ans(4)=4&lt;br /&gt;
 1-&amp;gt;θ&lt;br /&gt;
 If Ans(4)=-4&lt;br /&gt;
 -1-&amp;gt;θ&lt;br /&gt;
 End&lt;br /&gt;
 End&lt;br /&gt;
 For(A,0,3&lt;br /&gt;
 cumSum(seq([A](L2(V),A+I),I,1,4&lt;br /&gt;
 If Ans(4)=4&lt;br /&gt;
 1-&amp;gt;θ&lt;br /&gt;
 If Ans(4)=-4&lt;br /&gt;
 -1-&amp;gt;θ&lt;br /&gt;
 End&lt;br /&gt;
 V+L2(V-&amp;gt;B&lt;br /&gt;
 If B&amp;gt;=5 and B&amp;lt;=10&lt;br /&gt;
 Then&lt;br /&gt;
 seq([A](1,B-I),I,(B&amp;lt;=7)(B-1)+6(B&amp;gt;=8),(B&amp;lt;=7)+(B&amp;gt;=8)(B-7),-1-&amp;gt;L1&lt;br /&gt;
 For(A,1,dim(L1)-3&lt;br /&gt;
 cumSum(seq(L1(M),M,A,A+3&lt;br /&gt;
 If Ans(4)=4&lt;br /&gt;
 1-&amp;gt;θ&lt;br /&gt;
 If Ans(4)=-4&lt;br /&gt;
 -1-&amp;gt;θ&lt;br /&gt;
 End&lt;br /&gt;
 End&lt;br /&gt;
 L2(V)-V-&amp;gt;B&lt;br /&gt;
 If B&amp;lt;=2 and B&amp;gt;=-3&lt;br /&gt;
 Then&lt;br /&gt;
 seq([A](I,I-B),I,(B&amp;lt;=-1)+(B+1)(B&amp;gt;=0),6(B&amp;gt;=0)+(B+7)(B&amp;lt;=-1)-&amp;gt;L1&lt;br /&gt;
 For(A,1,dim(L1)-3&lt;br /&gt;
 cumSum(seq(L1(M),M,A,A+3&lt;br /&gt;
 If Ans(4)=4&lt;br /&gt;
 1-&amp;gt;θ&lt;br /&gt;
 If Ans(4)=-4&lt;br /&gt;
 -1-&amp;gt;θ&lt;br /&gt;
 End&lt;br /&gt;
 End&lt;br /&gt;
 L2(V)-1-&amp;gt;L2(V&lt;br /&gt;
 End&lt;br /&gt;
 Lbl 1&lt;br /&gt;
 ClrHome&lt;br /&gt;
 &amp;quot;PLAYER_&lt;br /&gt;
 If θ=1&lt;br /&gt;
 Ans+&amp;quot;1&lt;br /&gt;
 If θ=~1&lt;br /&gt;
 Ans+&amp;quot;2&lt;br /&gt;
 Ans+&amp;quot; WINS!&lt;br /&gt;
 If Z=42&lt;br /&gt;
 &amp;quot;CAT GOT THE GAME&lt;br /&gt;
 Ans&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
This Game was coded by TI-GBR and optimised by jonbush and earthnite.&lt;br /&gt;
[http://tibasicdev.wikidot.com/forum/t-1406695/connect-four-game See development page][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>