<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DigitalDruid10010110</title>
    <description>The latest articles on DEV Community by DigitalDruid10010110 (@digitaldruid10010110).</description>
    <link>https://dev.to/digitaldruid10010110</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2263079%2F2e818f92-7660-43c1-8466-46d0cf752ceb.png</url>
      <title>DEV Community: DigitalDruid10010110</title>
      <link>https://dev.to/digitaldruid10010110</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/digitaldruid10010110"/>
    <language>en</language>
    <item>
      <title>Building a Casino Game with NPCs from 'Lost': A Codecademy Journey</title>
      <dc:creator>DigitalDruid10010110</dc:creator>
      <pubDate>Fri, 22 Nov 2024 06:57:50 +0000</pubDate>
      <link>https://dev.to/digitaldruid10010110/building-a-casino-game-with-npcs-from-lost-a-codecademy-journey-459b</link>
      <guid>https://dev.to/digitaldruid10010110/building-a-casino-game-with-npcs-from-lost-a-codecademy-journey-459b</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Welcome to my blog post about the Casino Game Project I developed as part of a Codecademy course. This project combines the excitement of casino games with the intrigue of NPCs inspired by characters from the TV show "Lost". In this post, I'll walk you through the features, development process, and how you can try it out yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Project Overview
&lt;/h2&gt;

&lt;p&gt;The Casino Game Project is a Python-based game that includes popular casino games such as Blackjack and Roulette. What makes this project unique is the inclusion of NPCs inspired by characters from "Lost", adding an extra layer of fun.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Play Blackjack and Roulette&lt;/strong&gt;: Enjoy two classic casino games with realistic mechanics and rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NPCs&lt;/strong&gt;: Inspired by "Lost" characters join games and play.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ASCII Art&lt;/strong&gt;: Experience the game with visually appealing ASCII art representations of game elements.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Development Process
&lt;/h2&gt;

&lt;p&gt;The development process involved several key steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Designing the Game Mechanics&lt;/strong&gt;: Implementing the rules and logic for Blackjack and Roulette.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Creating NPCs&lt;/strong&gt;: Designing NPCs based on "Lost" characters and integrating them into the game.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User Interface&lt;/strong&gt;: Using ASCII art to create a simple yet engaging user interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing and Debugging&lt;/strong&gt;: Ensuring the game runs smoothly and fixing any issues that arose during development.(always an ongoing process)&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;To run the game locally, follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Clone the repository:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/DigitalDruid10010110/casino.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Navigate to the project directory:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;casino
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a virtual environment:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 &lt;span class="nt"&gt;-m&lt;/span&gt; venv venv
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Activate the virtual environment:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;On Windows:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\a&lt;/span&gt;ctivate
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- On macOS/Linux:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    ```bash
    source venv/bin/activate
    ```
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Install the required dependencies:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;p&gt;To start the game, run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python lost_casino.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Follow the on-screen instructions to play the game. You can choose to play Blackjack or Roulette and interact with NPCs.&lt;/p&gt;

&lt;h2&gt;
  
  
  GitHub Repository
&lt;/h2&gt;

&lt;p&gt;You can find the complete source code for the Casino Game Project on my GitHub repository: &lt;a href="https://github.com/DigitalDruid10010110/casino" rel="noopener noreferrer"&gt;Casino Game Project&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Developing the Casino Game Project was an exciting and educational experience. Combining coding skills with creativity, I was able to create a fun and engaging game. I hope you enjoy playing it as much as I enjoyed developing it! Although I have decided to put the project on the shelf for now please let me know if you find any bugs or if you have any suggestions for further content.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;p&gt;Developed by Shaun Columbia&lt;br&gt;
NPCs Inspired by the TV show "Lost"&lt;br&gt;
Project for Codecademy&lt;/p&gt;

&lt;h2&gt;
  
  
  License
&lt;/h2&gt;

&lt;p&gt;This project is licensed under the MIT License. See the LICENSE file for details.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>python</category>
    </item>
  </channel>
</rss>
