<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>PyGame</title>
	<atom:link href="http://mattalui.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattalui.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 23 Jun 2009 23:02:16 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='mattalui.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/f629c44c1b77bb8af2b9dde35017655a?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>PyGame</title>
		<link>http://mattalui.wordpress.com</link>
	</image>
			<item>
		<title></title>
		<link>http://mattalui.wordpress.com/2009/06/23/15/</link>
		<comments>http://mattalui.wordpress.com/2009/06/23/15/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 23:02:16 +0000</pubDate>
		<dc:creator>mattalui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mattalui.wordpress.com/?p=15</guid>
		<description><![CDATA[So we decided to go from a number guessing game to an animal guessing game. We wanted it to be somewhat like 20 questions. The computer is supposed to guess the animal you are thinking of. We needed to figure out how the computer will know which animal you are thinking by the questions it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=15&subd=mattalui&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So we decided to go from a number guessing game to an animal guessing game. We wanted it to be somewhat like 20 questions. The computer is supposed to guess the animal you are thinking of. We needed to figure out how the computer will know which animal you are thinking by the questions it asks. So we started working on classes and sub-classes.</p>
<p>We broke animals into two basic groups-vertebrate and invertebrate. Then we broke that into Mammels, fish, etc.</p>
<p> </p>
<table border="0">
<tbody>
<tr>
<td>
<pre> 1
 2
 3
 4
 5
 6
 7
 8
 9
<span>10</span>
11
12
13
14
15
16
17
18
19
<span>20</span>
21
22
23
24
25
26
27
28
29
<span>30</span>
31
32
33
34
35
36
37
38
39
<span>40</span>
41
42
43
44
45
46
47
48
49
<span>50</span>
51</pre>
</td>
<td>
<div>
<pre><span>'''Animal types.'''</span>

<span>class</span> <span>Animal</span><span>:</span>
    <span>'''A Base Animal type.'''</span>

<span>class</span> <span>Vertebrate</span><span>(</span><span>Animal</span><span>):</span>
    <span>'''An Animal with a backbone.'''</span>

    <span>def</span> <span>has_backbone</span><span>(</span><span>self</span><span>):</span>
    	<span>return</span> <span>True</span>

<span>class</span> <span>Invertebrate</span><span>(</span><span>Animal</span><span>):</span>
    <span>'''An Animal without a backbone.'''</span>

    <span>def</span> <span>has_backbone</span><span>(</span><span>self</span><span>):</span>
    	<span>return</span> <span>False</span>

<span>class</span> <span>Fish</span><span>(</span><span>Vertebrate</span><span>):</span>
    <span>'''A Vertebrate with no fur.'''</span>

    <span>def</span> <span>has_fur</span><span>(</span><span>self</span><span>):</span>
    	<span>return</span> <span>False</span>

<span>class</span> <span>Mammal</span><span>(</span><span>Vertebrate</span><span>):</span>
    <span>'''A Vertebrate with fur.'''</span>

    <span>def</span> <span>has_fur</span><span>(</span><span>self</span><span>):</span>
    	<span>return</span> <span>True</span>

<span>class</span> <span>Human</span><span>(</span><span>Mammal</span><span>):</span>
    <span>'''vertebrate with fur.'''</span>

<span>class</span> <span>Lion</span><span>(</span><span>Mammal</span><span>):</span>
    <span>'''vertebrate with fur'''</span>

<span>class</span> <span>monkey</span><span>(</span><span>Mammal</span><span>):</span>
    <span>'''vertebrate with fur'''</span>

<span>class</span> <span>jellyfish</span><span>(</span><span>invertebrate</span><span>):</span>
    <span>'''not sure, but cool'''</span>

<span>class</span> <span>bear</span><span>(</span><span>Mammal</span><span>):</span>
    <span>'''hairy monster!!!'''</span>

<span>class</span> <span>Matt</span><span>(</span><span>vertebrate</span><span>):</span>
    <span>'''We're not sure exactly...'''</span></pre>
</div>
</td>
</tr>
</tbody>
</table>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattalui.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattalui.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattalui.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattalui.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattalui.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattalui.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattalui.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattalui.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattalui.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattalui.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=15&subd=mattalui&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattalui.wordpress.com/2009/06/23/15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2eedbf0a5bec04b933cc3c69039894?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattalui</media:title>
		</media:content>
	</item>
		<item>
		<title>My First Game!</title>
		<link>http://mattalui.wordpress.com/2009/04/04/my-first-game/</link>
		<comments>http://mattalui.wordpress.com/2009/04/04/my-first-game/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 17:50:42 +0000</pubDate>
		<dc:creator>mattalui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mattalui.wordpress.com/?p=12</guid>
		<description><![CDATA[I have  finally written my first game. It is not the funnest game you will ever play. It is a simple number guessing game. I made it because my brother said &#8220;It&#8217;s just a few easy lines of code&#8221;. It turned out to be a two-and-a-half-day project. We started out with learning the raw_input builtin. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=12&subd=mattalui&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have  finally written my first game. It is not the funnest game you will ever play. It is a simple number guessing game. I made it because my brother said &#8220;It&#8217;s just a few easy lines of code&#8221;. It turned out to be a two-and-a-half-day project. We started out with learning the raw_input builtin. That made a few things MUCH easier. Then we added a few if statements to tell you whether you should guess higher or lower or  you got it right. When we finally figured all of that out we decided to put in a loop so that you don&#8217;t have to keep running the code until you got it right. We used a while loop and talked about the differences between the while loop and the for loop. When we figured that out then we had to do a lot of editing because my indentions suck so it was causing problems with the code. Then we noticed that it didn&#8217;t tell you when you won, it just stopped. So we fixed that by taking the if statement out of the loop and put it after the loop. Now it works!</p>
<p>import random<br />
compnumber =  random.randint(1,  100)<br />
usrnumber = 0<br />
while usrnumber != compnumber:<br />
usrnumber = raw_input(&#8216;Your number please:&#8217;)<br />
usrnumber = int(usrnumber)</p>
<p>if usrnumber &gt; compnumber:<br />
print &#8220;Too high!&#8221;<br />
if usrnumber &lt; compnumber:<br />
print &#8220;Not quite high enough&#8230;&#8221;</p>
<p>if usrnumber == compnumber &#8211; 1:<br />
print &#8220;So close&#8230;&#8221;<br />
if usrnumber == compnumber + 1:<br />
print &#8220;So close&#8230;&#8221;<br />
print &#8220;Yay! You did it!&#8221;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattalui.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattalui.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattalui.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattalui.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattalui.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattalui.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattalui.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattalui.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattalui.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattalui.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=12&subd=mattalui&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattalui.wordpress.com/2009/04/04/my-first-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2eedbf0a5bec04b933cc3c69039894?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattalui</media:title>
		</media:content>
	</item>
		<item>
		<title>Technical Difficulties</title>
		<link>http://mattalui.wordpress.com/2009/01/05/technical-difficulties/</link>
		<comments>http://mattalui.wordpress.com/2009/01/05/technical-difficulties/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 06:56:27 +0000</pubDate>
		<dc:creator>mattalui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Xfce Gnome mouse troubles broken bad internet connection laptop upgrading]]></category>

		<guid isPermaLink="false">http://mattalui.wordpress.com/?p=8</guid>
		<description><![CDATA[So we have recently upgraded my laptop (even though it is still a slow piece of crap) and during that process we ran into some technical difficulties. For some reason the new upgrade changed my mouse pad settings. It had turned it off.(Of course at the time we didn&#8217;t know it was that simple). So [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=8&subd=mattalui&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So we have recently upgraded my laptop (even though it is still a slow piece of crap) and during that process we ran into some technical difficulties. For some reason the new upgrade changed my mouse pad settings. It had turned it off.(Of course at the time we didn&#8217;t know it was that simple). So we tried to plug in an external mouse and that worked so for a while I just used that. Then for a cure we switched me from Gnome to Xfce. I was on that for a while. One day my computer was being really slow so i rebooted it. When i logged back in i had no task bar. So i was without internet for a while and then i got idea. If I could get an external mouse then i could log back into Gnome and change my settings from there and log out then log back into Xfce then my internet would work again. I couldn&#8217;t find a mouse so I stole the one from off of my dad&#8217;s computer. Curiosity got the best of me and i went into my mouse settings to see if there was anything i could do in there to help my mouse problem. So I disabled the mouse pad then turned it on again and it worked. I was so relieved. I don&#8217;t much like Xfce as much as I like Gnome. Of course I had to hide while my dad tried to figure out what was wrong with his mouse. At least now my computer is back to normal again.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattalui.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattalui.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattalui.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattalui.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattalui.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattalui.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattalui.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattalui.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattalui.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattalui.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=8&subd=mattalui&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattalui.wordpress.com/2009/01/05/technical-difficulties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2eedbf0a5bec04b933cc3c69039894?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattalui</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://mattalui.wordpress.com/2008/06/07/7/</link>
		<comments>http://mattalui.wordpress.com/2008/06/07/7/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 18:08:05 +0000</pubDate>
		<dc:creator>mattalui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mattalui.wordpress.com/?p=7</guid>
		<description><![CDATA[So I recently finished chapter two of my book. This is the chapter where things are starting to get a little more complicated.
I have been learning about boolean logic, statements, and operators. It&#8217;s pretty much a lot tougher now. But the cool thing is I&#8217;m actually writing stuff that looks like python now. It&#8217;s a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=7&subd=mattalui&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So I recently finished chapter two of my book. This is the chapter where things are starting to get a little more complicated.</p>
<p>I have been learning about boolean logic, statements, and operators. It&#8217;s pretty much a lot tougher now. But the cool thing is I&#8217;m actually writing stuff that looks like python now. It&#8217;s a lot more lengthy. It&#8217;s not just the simple stuff I used to do, like making strings and adding them together.</p>
<p>It&#8217;s especially cool cause In the Python in Practice section of the book we actually wrote a program that makes a bunch of tanks fight each other. I changed the numbers around a little so that the tank Bob would win.</p>
<p>I also wrote a little program that would pretty much do the same thing as rolling a die. It would randomly pick a number from one through 6. Yet again I played with the numbers a little so that it would randomly pick a number one through 100.</p>
<p>That&#8217;s pretty much everything I&#8217;ve been doing. I change a lot of the code around so I can learn it better. If I didn&#8217;t I would probably drive my self crazy with the word FUGU!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mattalui.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mattalui.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattalui.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattalui.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattalui.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattalui.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattalui.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattalui.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattalui.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattalui.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattalui.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattalui.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=7&subd=mattalui&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattalui.wordpress.com/2008/06/07/7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2eedbf0a5bec04b933cc3c69039894?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattalui</media:title>
		</media:content>
	</item>
		<item>
		<title>PyGame!</title>
		<link>http://mattalui.wordpress.com/2008/06/05/pygame/</link>
		<comments>http://mattalui.wordpress.com/2008/06/05/pygame/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 20:49:47 +0000</pubDate>
		<dc:creator>mattalui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mattalui.wordpress.com/?p=4</guid>
		<description><![CDATA[
Okay so today I started working on making a game with my brother. It&#8217;s fairly easy, except for some of the little details. It is going to be a game we make using python. We&#8217;re using a book to help me start learning python. It&#8217;s called Beginning Game Development with Python and Pygame.
So today by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=4&subd=mattalui&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:left;"><img style="border:10px solid black;" src="http://g.bookpool.com/covers/725/1590598725_500.gif" alt="the book" width="380" height="502" /></p>
<p style="text-align:left;">Okay so today I started working on making a game with my brother. It&#8217;s fairly easy, except for some of the little details. It is going to be a game we make using python. We&#8217;re using a book to help me start learning python. It&#8217;s called Beginning Game Development with Python and Pygame.</p>
<p style="text-align:left;">So today by brother quizzed me on chapter one. It was pretty easy. Then we started chapter two. That&#8217;s when all the problems started. I was having problems with extra spaces at the end of the things that you can&#8217;t even see when the books give you examples of what it looks like. But it&#8217;s okay.</p>
<p style="text-align:left;">I learned about loops. We also talked about the differences between lists and tuples. Tuples load faster, but are immutable. It is  pretty much cool!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mattalui.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mattalui.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattalui.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattalui.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattalui.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattalui.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattalui.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattalui.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattalui.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattalui.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattalui.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattalui.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattalui.wordpress.com&blog=3907848&post=4&subd=mattalui&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattalui.wordpress.com/2008/06/05/pygame/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2eedbf0a5bec04b933cc3c69039894?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattalui</media:title>
		</media:content>

		<media:content url="http://g.bookpool.com/covers/725/1590598725_500.gif" medium="image">
			<media:title type="html">the book</media:title>
		</media:content>
	</item>
	</channel>
</rss>