<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>10,000 : Bubble Sort</title>
		<link>https://gamedesign.wikidot.com/forum/t-8180/10-000:bubble-sort</link>
		<description>Posts in the discussion thread &quot;10,000 : Bubble Sort&quot; - Sorting Die Values Example</description>
				<copyright></copyright>
		<lastBuildDate>Thu, 12 Nov 2026 11:15:42 +0000</lastBuildDate>
		
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-8180#post-19237</guid>
				<title>Re: 10,000 : Bubble Sort</title>
				<link>https://gamedesign.wikidot.com/forum/t-8180/10-000:bubble-sort#post-19237</link>
				<description></description>
				<pubDate>Mon, 23 Apr 2007 23:30:41 +0000</pubDate>
				<wikidot:authorName>hartnell</wikidot:authorName>				<wikidot:authorUserId>10978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>See the first demo : <a href="http://gamedesign.wikidot.com/forum/t-8191/10-000:demo-1">10,000 First Demo</a></p> <p>&#8212;hartnell</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-8180#post-19233</guid>
				<title>Re: 10,000 : Bubble Sort</title>
				<link>https://gamedesign.wikidot.com/forum/t-8180/10-000:bubble-sort#post-19233</link>
				<description></description>
				<pubDate>Mon, 23 Apr 2007 23:05:46 +0000</pubDate>
				<wikidot:authorName>phatty</wikidot:authorName>				<wikidot:authorUserId>15441</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>ok so that code is to replace our keptdice(i) sub-function?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-8180#post-19216</guid>
				<title>10,000 : Bubble Sort</title>
				<link>https://gamedesign.wikidot.com/forum/t-8180/10-000:bubble-sort#post-19216</link>
				<description></description>
				<pubDate>Mon, 23 Apr 2007 21:31:39 +0000</pubDate>
				<wikidot:authorName>hartnell</wikidot:authorName>				<wikidot:authorUserId>10978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I thought it would be good to sort the dice. So, I wrote a bubble sort example for it. This will be used to sort the dice. Later, kept dice will appear as one color, while &quot;new&quot; dice will appear as another.</p> <p>&#8212; hartnell</p> <p>*edit*</p> <p>Forgot the code :)</p> <div class="code"> <pre><code>randomize timer Dim dice(5) as integer for i = 1 to 5 dice(i) = int(rnd(1)*6)+1 next i do sorted = 0 for i = 1 to 4 if dice(i) &gt; dice(i+1) then temp = dice(i) dice(i) = dice(i+1) dice(i + 1) = temp sorted = 1 end if next i loop until Sorted = 0 for i = 1 to 5 print &quot;Die&quot; ; i ; &quot;:&quot; ; dice(i) next i sleep</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>