<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - ehrenb</title>
<link>http://snipplr.com/users/ehrenb</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 04:02:24 GMT</pubDate>
<item>
<title>(Java) Skeleton Code for a Card Game</title>
<link>http://snipplr.com/view/55221/skeleton-code-for-a-card-game/</link>
<description><![CDATA[ <p>Work in progress...


Some "Skeleton code" for a card game.  Deck class (arraylist) that consists of 52 "card" objects.  A shuffle function is included, which will randomly swap each card in the deck.  The basic functionality is done; IE - the playGame() function will deal out 5 cards to the player (human) and computer, show the player his/her hand.  I am leaning towards creating a poker game function first; this will parse the user and computers hand, giving a value to each (ie: pair < royal flush), depending on how good their hand is.  The code is broken into 3 files, each file is seperated by "----".  A future implementation will introduce a GUI and some basic 2D images.</p> ]]></description>
<pubDate>Tue, 14 Jun 2011 12:52:20 GMT</pubDate>
<guid>http://snipplr.com/view/55221/skeleton-code-for-a-card-game/</guid>
</item>
<item>
<title>(Java) Random Letter Class</title>
<link>http://snipplr.com/view/54542/random-letter-class/</link>
<description><![CDATA[ <p>I did not code this, but it is a very handy, and easy-to-understand class which uses the random number generator to generate a random letter.</p> ]]></description>
<pubDate>Sat, 28 May 2011 09:40:35 GMT</pubDate>
<guid>http://snipplr.com/view/54542/random-letter-class/</guid>
</item>
<item>
<title>(Java) Basic Android Calculator</title>
<link>http://snipplr.com/view/54541/basic-android-calculator/</link>
<description><![CDATA[ <p>This is a current side project.  I make changes (mainly adding new things) about once a week (when I have time).   

Notes: GUI in XML(not here), Eclipse Android plug-in, some images not here</p> ]]></description>
<pubDate>Sat, 28 May 2011 09:33:51 GMT</pubDate>
<guid>http://snipplr.com/view/54541/basic-android-calculator/</guid>
</item>
</channel>
</rss>