<?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 : Demo 1</title>
		<link>http://gamedesign.wikidot.com/forum/t-8191/10-000:demo-1</link>
		<description>Posts in the discussion thread &quot;10,000 : Demo 1&quot; - It slices, it dices, it&#039;s in FreeBASIC</description>
				<copyright></copyright>
		<lastBuildDate>Wed, 09 Sep 2026 18:32:11 +0000</lastBuildDate>
		
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-8191#post-19489</guid>
				<title>Re: 10,000 : Demo 1</title>
				<link>http://gamedesign.wikidot.com/forum/t-8191/10-000:demo-1#post-19489</link>
				<description></description>
				<pubDate>Tue, 24 Apr 2007 23:21:27 +0000</pubDate>
				<wikidot:authorName>hartnell</wikidot:authorName>				<wikidot:authorUserId>10978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>lol, so it was :) Thanks. As it turns out this is a team project here at GDN. Here's our <a href="http://gamedesign.wikidot.com/10-000-design-document">10,000 Design Document</a> &#8212;hartnell</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-8191#post-19424</guid>
				<title>Re: 10,000 : Demo 1</title>
				<link>http://gamedesign.wikidot.com/forum/t-8191/10-000:demo-1#post-19424</link>
				<description></description>
				<pubDate>Tue, 24 Apr 2007 18:10:24 +0000</pubDate>
				<wikidot:authorName>kentankerous</wikidot:authorName>				<wikidot:authorUserId>16795</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hey this is cool, thanks!!!</p> <p>btw, in the code above it looks like the for loop from the rollDice sub was repeated under the sub.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-8191#post-19236</guid>
				<title>10,000 : Demo 1</title>
				<link>http://gamedesign.wikidot.com/forum/t-8191/10-000:demo-1#post-19236</link>
				<description></description>
				<pubDate>Mon, 23 Apr 2007 23:28:28 +0000</pubDate>
				<wikidot:authorName>hartnell</wikidot:authorName>				<wikidot:authorUserId>10978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Here's a first demo for 10,000.</p> <p><strong>New</strong></p> <ul> <li>&quot;Graphical&quot; Display</li> <li>Sorted Dice</li> <li>Detects 3, 4, and 5 of a kind.</li> </ul> <p>It's a mess, yes I know.</p> <p>&#8212;hartnell</p> <div class="code"> <pre><code>screen 18, 32 width 80,60 color 0, rgb(255,255,255) cls const luCorner = chr(218) const ruCorner = chr(191) const tbBorder = chr(196) const lrBorder = chr(179) const lbCorner = chr(192) const rbCorner = chr(217) dim shared i as integer dim shared a as integer dim shared b as integer type dieTP value as integer kept as integer end type dim shared dice(5) as dieTP dim shared countFaces(6) dim choice as string dim shared dieFace(6,3) as string dieFace(1,1) = &quot; &quot; dieFace(1,2) = &quot; * &quot; dieFace(1,3) = &quot; &quot; dieFace(2,1) = &quot;* &quot; dieFace(2,2) = &quot; &quot; dieFace(2,3) = &quot; *&quot; dieFace(3,1) = &quot; *&quot; dieFace(3,2) = &quot; * &quot; dieFace(3,3) = &quot;* &quot; dieFace(4,1) = &quot;* *&quot; dieFace(4,2) = &quot; &quot; dieFace(4,3) = &quot;* *&quot; dieFace(5,1) = &quot;* *&quot; dieFace(5,2) = &quot; * &quot; dieFace(5,3) = &quot;* *&quot; dieFace(6,1) = &quot;* *&quot; dieFace(6,2) = &quot;* *&quot; dieFace(6,3) = &quot;* *&quot; sub showTitle print print &quot; ## ### ### ### ###&quot; print &quot; # # # # # # # # #&quot; print &quot; # # # # # # # # #&quot; print &quot; # # # # # # # # #&quot; print &quot; ### ### , ### ### ###&quot; print print &quot; A dice game by Phatty&quot; for i = 1 to 49 print &quot;-&quot;; next i print end sub sub drawDie(x as integer, y as integer, die as dieTP, number as integer) locate y, x print &quot; &quot;;number; if die.kept = 1 then color , rgb(200,200,200) locate y + 1, x print luCorner;tbBorder;tbBorder;tbBorder;ruCorner locate y + 2, x print lrBorder;dieFace(die.value,1);lrBorder locate y + 3, x print lrBorder;dieFace(die.value,2);lrBorder locate y + 4, x print lrBorder;dieFace(die.value,3);lrBorder locate y + 5, x print lbCorner;tbBorder;tbBorder;tbBorder;rbCorner locate y + 6, x color , rgb(255,255,255) if die.kept = 1 then print &quot; Kept&quot; end sub sub resetDice for i = 1 to 5 dice(i).value = 0 dice(i).kept = 0 next i end sub sub rollDice for i = 1 to 5 if dice(i).kept = 0 then dice(i).value = int(rnd(1)*6)+1 next i end sub for i = 1 to 5 if dice(i).kept = 0 then dice(i).value = int(rnd(1)*6)+1 next i sub sortDice dim temp as dieTP dim sorted do sorted = 0 for i = 1 to 4 if dice(i).value &gt; dice(i+1).value then temp = dice(i) dice(i) = dice(i+1) dice(i + 1) = temp sorted = 1 end if next i loop until Sorted = 0 end sub showTitle print print &quot; 2.) Play&quot; do choice = inkey loop until choice = &quot;1&quot; or choice = &quot;2&quot; resetDice rollDice sortDice do cls showTitle print print &quot; Your dice this roll are : &quot; for i = 1 to 5 drawDie(i*5,15,dice(i),i) next i locate 25,1 print &quot;Press the number of the die you want to keep.&quot; print &quot;'r' to roll&quot; print &quot;'e' to exit demo&quot; for i = 1 to 6 countFaces(i) = 0 next i for a = 1 to 5 for b = 1 to 6 if dice(a).value = b then countFaces(b) = countFaces(b) + 1 next i next a print : print print &quot;Scoring Dice : &quot; print for i = 1 to 6 if countFaces(i) = 5 then print &quot;Five of a Kind in&quot;; i ; &quot;'s.&quot; if countFaces(i) = 4 then print &quot;Four of a Kind in&quot;; i ; &quot;'s.&quot; if countFaces(i) = 3 then print &quot;Three of a Kind in&quot; ; i ; &quot;'s.&quot; next i do choice = inkey loop until choice &lt;&gt; &quot;&quot; if val(choice) &gt; 0 and val(choice) &lt; 6 then if dice(val(choice)).kept = 1 then dice(val(choice)).kept = 0 elseif dice(val(choice)).kept = 0 then dice(val(choice)).kept = 1 end if end if if choice = &quot;e&quot; then end if choice = &quot;r&quot; then rollDice sortDice end if loop</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>