<?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>Steven Hansen WebLog &#187; cs240</title>
	<atom:link href="http://stevenhansen.info/weblog/tag/cs240/feed" rel="self" type="application/rss+xml" />
	<link>http://stevenhansen.info/weblog</link>
	<description>Where I save my random findings</description>
	<lastBuildDate>Sun, 13 May 2012 21:10:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>cs240 Chess Project BYU</title>
		<link>http://stevenhansen.info/weblog/programming-hints/cs240-chess-project-byu</link>
		<comments>http://stevenhansen.info/weblog/programming-hints/cs240-chess-project-byu#comments</comments>
		<pubDate>Tue, 14 Apr 2009 20:48:46 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Programming Hints]]></category>
		<category><![CDATA[School Work]]></category>
		<category><![CDATA[BYU]]></category>
		<category><![CDATA[chess]]></category>
		<category><![CDATA[cs240]]></category>

		<guid isPermaLink="false">http://stevenhansen.info/weblog/?p=138</guid>
		<description><![CDATA[So today I passed off my chess project in my Computer Science CS 240 class.  I think I finished in a fairly good amount of time.  Only stayed up late one night working on it.  My code isn&#8217;t super effective in all aspects, although I did manage to do a few things that helped me [...]]]></description>
			<content:encoded><![CDATA[<p>So today I passed off my chess project in my Computer Science <strong>CS 240</strong> class.  I think I finished in a fairly good amount of time.  Only stayed up late one night working on it.  My <a href="https://spatical.box.net/shared/static/9v9tk35li2.tgz">code</a> isn&#8217;t super effective in all aspects, although I did manage to do a few things that helped me simplify things.</p>
<ul>
<li>I used an external XML parser called <a href="http://www.firstobject.com/dn_markup.htm">CMarkup</a>, it is free for non-commercial use and it handles all of the silly cases the TA&#8217;s give us just fine (just remember to xml.ResetMainPos(); after parsing the board so it can still parse the history even if it came before the board in the xml file.</li>
<li>I only wrote two GetCandidateMoves functions.  One for my Piece class and one for the Pawn class.  I just defined directions for each piece, and the main piece move method just got squares in each direction until piece was found or it went off the board.  The pawn class was special just because it had special cases for the first move and capturing moves</li>
<li>I wrote a couple of methods in my main Game class that checked for Check and Checkmate (which also shared some child methods).  Stalemate was simply when it is Checkmate but not Check (with the way I wrote those methods).</li>
<li>I had memory issues until I took all pointers out of the MoveHistory.  I ended up just saving the piece type and color in the move history instead of a pointer to the piece.  I had issues leaking memory since sometimes I was putting pointers from the pieces saved in the Board class in the MoveHistory then other times I was putting pointers from the Board class in the MoveHistory.  So, so pointers in the move history.  And I made the board basically be the holder for all of the active piece pointers.  When a piece was captured or created, that is when I called delete or new. ( And the board destructor would clean-up any pieces left on the board when exiting or deleting the board before loading a new file).</li>
</ul>
<p>Another project done for Steven Hansen, and now I am done with a CS minor and a EE major.</p>
<ul></ul>
]]></content:encoded>
			<wfw:commentRss>http://stevenhansen.info/weblog/programming-hints/cs240-chess-project-byu/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Some more school work by Steven Hansen</title>
		<link>http://stevenhansen.info/weblog/school-work/some-more-school-work-by-steven-hansen</link>
		<comments>http://stevenhansen.info/weblog/school-work/some-more-school-work-by-steven-hansen#comments</comments>
		<pubDate>Wed, 08 Apr 2009 06:09:55 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[School Work]]></category>
		<category><![CDATA[cs240]]></category>
		<category><![CDATA[steven hansen]]></category>

		<guid isPermaLink="false">http://stevenhansen.info/weblog/?p=126</guid>
		<description><![CDATA[We are doing a chess program so I had to make another super long design document. Chess Design Document And here is an html link to one small part of our EcEN 490 senior project final report. All pretty boring documents that I posted here just to save them online somewhere.]]></description>
			<content:encoded><![CDATA[<p>We are doing a chess program so I had to make another super long design document. <a href="/cs240/Chess-Design.htm">Chess Design Document</a>  And here is an html <a href="/cs240/Chronological-Review.htm">link</a> to one small part of our EcEN 490 senior project final report. All pretty boring documents that I posted here just to save them online somewhere.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevenhansen.info/weblog/school-work/some-more-school-work-by-steven-hansen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CS240 webcrawler project</title>
		<link>http://stevenhansen.info/weblog/programming-hints/cs240-webcrawler-project</link>
		<comments>http://stevenhansen.info/weblog/programming-hints/cs240-webcrawler-project#comments</comments>
		<pubDate>Wed, 18 Mar 2009 00:46:15 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Programming Hints]]></category>
		<category><![CDATA[School Work]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[cs240]]></category>
		<category><![CDATA[webcrawler]]></category>

		<guid isPermaLink="false">http://stevenhansen.info/weblog/?p=102</guid>
		<description><![CDATA[For a large project in my Computer Science class at BYU (cs240), I needed to implement a simple webcrawler, that would create a database of words, each page that contains each word, and a database of all of the pages that were crawled (whether they had parsed words on them or not). It was a [...]]]></description>
			<content:encoded><![CDATA[<p>For a large project in my Computer Science class at <strong>BYU</strong> (cs240), I needed to implement a simple <a href="https://spatical.box.net/shared/static/2vbfjvkmmo.tar">webcrawler</a>, that would create a database of words, each page that contains each word, and a database of all of the pages that were crawled (whether they had parsed words on them or not).  It was a pretty large project, with the added complexity that many of the standard library tools like <vector> or other c++ standard library datatypes where not allowed.  We had to implement our own BST and linkedlist.  Any way it is now done.  And you can get a <a href="https://spatical.box.net/shared/static/n24n77ky34.xml">full .xml document</a> that it includes an index of all of the words on my blog (before this post).  Ok, the xml document isn&#8217;t really that interesting.  It&#8217;s just the only output to show for my hours of work for this school project.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevenhansen.info/weblog/programming-hints/cs240-webcrawler-project/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>webcrawler design document</title>
		<link>http://stevenhansen.info/weblog/school-work/webcrawler-design-document</link>
		<comments>http://stevenhansen.info/weblog/school-work/webcrawler-design-document#comments</comments>
		<pubDate>Fri, 20 Feb 2009 06:06:58 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[School Work]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[cs240]]></category>
		<category><![CDATA[school]]></category>
		<category><![CDATA[webcrawler]]></category>

		<guid isPermaLink="false">http://stevenhansen.info/weblog/?p=89</guid>
		<description><![CDATA[Boring and un-interesting, here is a link to the 41 page design document for my webcrawler project in CS 240 at BYU. None of the method bodies have been implemented so this document is pretty much worthless.]]></description>
			<content:encoded><![CDATA[<p>Boring  and un-interesting, here is a <a href="http://stevenhansen.info/cs240">link</a> to the 41 page design document for my webcrawler project in CS 240 at BYU. None of the method bodies have been implemented so this document is pretty much worthless.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevenhansen.info/weblog/school-work/webcrawler-design-document/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cs240 byu ta passoff scripts</title>
		<link>http://stevenhansen.info/weblog/school-work/cs240-byu-ta-passoff-scripts</link>
		<comments>http://stevenhansen.info/weblog/school-work/cs240-byu-ta-passoff-scripts#comments</comments>
		<pubDate>Tue, 20 Jan 2009 20:53:50 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[School Work]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[cs240]]></category>
		<category><![CDATA[robot racer]]></category>
		<category><![CDATA[sort240]]></category>

		<guid isPermaLink="false">http://stevenhansen.info/weblog/?p=85</guid>
		<description><![CDATA[Known helpful files that can be run on the cs machines for cs 240 at byu. ~cs240ta/bin/robotest ~cs240ta/bin/sort240test Also, a * star in my notes, final exam question here Here are a few more! ~cs240ta/bin/colexp part1 ~cs240ta/bin/colexp ./test_runner ./test_runner -t&#8221;LinkedL ~cs240ta/bin/colexp clean]]></description>
			<content:encoded><![CDATA[<p>Known helpful files that can be run on the cs machines for cs 240 at byu.</p>
<p>~cs240ta/bin/robotest<br />
~cs240ta/bin/sort240test</p>
<p>Also, a * star in my notes, final exam question <a href="http://students.cs.byu.edu/~cs240ta/winter2009/info/lecture-notes/Lecture-03-PointersAndMemoryModel/memory-model-example.pdf">here</a></p>
<p><span id="more-85"></span></p>
<p>Here are a few more!<br />
~cs240ta/bin/colexp part1<br />
~cs240ta/bin/colexp ./test_runner<br />
./test_runner -t&#8221;LinkedL<br />
~cs240ta/bin/colexp clean</p>
]]></content:encoded>
			<wfw:commentRss>http://stevenhansen.info/weblog/school-work/cs240-byu-ta-passoff-scripts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

