<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nicholas Kwan &#187; Altera</title>
	<atom:link href="http://nicholaskwan.com/tag/altera/feed/" rel="self" type="application/rss+xml" />
	<link>http://nicholaskwan.com</link>
	<description>Technology, Hobbies, Life</description>
	<lastBuildDate>Sat, 10 Apr 2010 17:50:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MasterMind</title>
		<link>http://nicholaskwan.com/2009/05/31/mastermind/</link>
		<comments>http://nicholaskwan.com/2009/05/31/mastermind/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 00:18:25 +0000</pubDate>
		<dc:creator>Nicholas</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[Altera]]></category>
		<category><![CDATA[assembly]]></category>
		<category><![CDATA[DE1]]></category>
		<category><![CDATA[Mastermind]]></category>

		<guid isPermaLink="false">http://nicholaskwan.com/?p=316</guid>
		<description><![CDATA[Being a computer engineering student, I have had lots of exposure to both hardware and software.  One software project I did was with the Altera DE1 Board using NIOS assembly code.  Our last project in that course was one that was open to any program, so my friend and I decided to do MasterMind.  Although [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Being a computer engineering student, I have had lots of exposure to both hardware and software.  One software project I did was with the Altera DE1 Board using NIOS assembly code.  Our last project in that course was one that was open to any program, so my friend and I decided to do MasterMind.  Although there were many challenges, we finished the project and I have attached the code so those who would like to play mastermind on their DE1 (or DE2) boards.  The DE1 board plays &#8220;We are the Champions&#8221; by Queen when you win but you will need to know how to incorporate a Wave file in order to make that work.</p>
<p>Download <a href="http://www.nicholaskwan.com/downloads/mastermind.zip" target="_blank">here</a>.</p>
<p>The instructions are as follows.</p>
<p><span><span style="font-size: small;">Rules:</span></span></p>
<p><span><span style="font-size: small;">To start:</span></span></p>
<ol type="1">
<li><span><span style="font-size: small;">Key 1 is the store answer key</span></span></li>
<li><span><span style="font-size: small;">Key 3 is the start key</span></span></li>
</ol>
<p><span><span style="font-size: small;"> </span></span></p>
<p><span><span style="font-size: small;">After started:</span></span></p>
<ol type="1">
<li><span><span style="font-size: small;">Switch 2 to 9 are in pairs, each pair represent 1 digit of guess in binary numbers, so the answer is 4 digits (Possible answers include 0,1,2,3)</span></span></li>
<li><span><span style="font-size: small;">You have 10 guesses until you lose</span></span><span><span style="font-size: small;">, the red LED will keep count of the number of guesses.</span></span></li>
<li><span><span style="font-size: small;">Hints will be displayed after each guess</span></span><span><span style="font-size: small;">.</span></span></li>
<li><span><span style="font-size: small;">It will also tell you</span></span><span><span style="font-size: small;"> if you’re closer or further from the correct answer. </span></span></li>
<li><span><span style="font-size: small;">Key 1 to give up.</span></span></li>
<li><span><span style="font-size: small;">If 1 digit of your guess is the same number and same place as the answer, 1 black hint will be displayed; If 1 digit of your guess is the same number but different place as the answer, 1 white answer will be displayed</span></span><span><span style="font-size: small;">.</span></span></li>
<li><span><span style="font-size: small;">When you win, it will tell you.  Then the green LED will tell you how long you took.</span></span></li>
<li><span><span style="font-size: small;">It will also play “We are the Champions” by Queen. </span></span></li>
<li><span><span style="font-size: small;">It then waits for the user to either store another code or start the game.</span></span></li>
<div><span><br />
</span></div>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://nicholaskwan.com/2009/05/31/mastermind/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
