<?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%3AMastermind</id>
	<title>TI-BASIC:Mastermind - 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%3AMastermind"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Mastermind&amp;action=history"/>
	<updated>2026-05-30T21:36:24Z</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:Mastermind&amp;diff=830&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:Mastermind&amp;diff=830&amp;oldid=prev"/>
		<updated>2016-02-24T18:20:46Z</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;Mastermind is a fun game that involves trying to break a random code of five numbers (1-9) in fifteen guesses or less. To help assist you with the code-breaking, a clue is displayed below each number. If the number is correct and in the right position, a star (*) will be displayed. If the number is correct but in the wrong position, a plus (+) will be displayed. And if the number is simply wrong, a minus (-) will be displayed. Try out the game and try to understand and think through the code.&lt;br /&gt;
&lt;br /&gt;
== The Code ==&lt;br /&gt;
&lt;br /&gt;
 :randInt(1,9,5→L1&lt;br /&gt;
 :For(X,1,15&lt;br /&gt;
 :0→dim(L2&lt;br /&gt;
 :Repeat Ans=105 and 5=dim(L2&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :For(Y,1,dim(L2&lt;br /&gt;
 :Output(1,Y,L2(Y&lt;br /&gt;
 :End&lt;br /&gt;
 :Repeat Ans&lt;br /&gt;
 :getKey&lt;br /&gt;
 :End&lt;br /&gt;
 :If Ans=22&lt;br /&gt;
 :Goto Q&lt;br /&gt;
 :If Ans=45&lt;br /&gt;
 :ClrList L2&lt;br /&gt;
 :If Ans=23 and dim(L2&lt;br /&gt;
 :dim(L2)-1→dim(L2&lt;br /&gt;
 :If 5&amp;gt;dim(L2) and 2&amp;gt;abs(5-abs(5-abs(Ans-83&lt;br /&gt;
 :26-3int(.1Ans)+10fPart(.1Ans→L2(1+dim(L2&lt;br /&gt;
 :End&lt;br /&gt;
 :&amp;quot; // 1 space&lt;br /&gt;
 :For(Y,1,5&lt;br /&gt;
 :Ans+sub(&amp;quot;-+*&amp;quot;,1+max(L2(Y)=L1)+(L2(Y)=L1(Y)),1&lt;br /&gt;
 :End&lt;br /&gt;
 :Output(2,1,sub(Ans,2,5&lt;br /&gt;
 :rand(E2  // scientific E ([2nd][,])&lt;br /&gt;
 :If not(min(L2=L1&lt;br /&gt;
 :End&lt;br /&gt;
 :Disp sub(&amp;quot;FAIL!WIN! &amp;quot;,1+5(X&amp;lt;16),5&lt;br /&gt;
 :Lbl Q[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>