<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 06:00:51 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jacob Santos' Blog: PHP Blackjack]]></title>
      <guid>http://www.phpdeveloper.org/news/7158</guid>
      <link>http://www.phpdeveloper.org/news/7158</link>
      <description><![CDATA[<p>
In <a href="http://www.santosj.name/php-games-series/php-blackjack/">a new post</a> to his blog today, <i>Jacob Santos</i> shares a look at converting an application from one language to another - from C++ to PHP (obviously).
</p>
<blockquote>
The reason I'm revisiting blackjack is because I have a C++ version and I want to port it to PHP, for fun. If you want to have a simple project for learning a language, other than "Hello World," then Blackjack is a good project.
</blockquote>
<p>
Since Blackjack is a relatively simple game (as far as the rules go, that is) he chose a simple C++ version to port over. He sets up some guidelines first - break down the code into simple, reusable parts and keeping it as simple as possible. Most of the rest of the code is dedicated to the code:
<ul>
<li>Game start
<li>Statistics handling
<li>Randomization
<li>Looping
<li>Conditional statements
</ul>
The transition is pretty simple, really, especially with how flexible PHP is and the large number of built in functions it comes with.
</p>]]></description>
      <pubDate>Wed, 24 Jan 2007 08:58:00 -0600</pubDate>
    </item>
  </channel>
</rss>
