<?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>Forem: Juan Bello</title>
    <description>The latest articles on Forem by Juan Bello (@juan_bello_004fc5c7445625).</description>
    <link>https://forem.com/juan_bello_004fc5c7445625</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%2F3672080%2F73f4dcb6-d301-412c-87ec-3d7119b8229d.png</url>
      <title>Forem: Juan Bello</title>
      <link>https://forem.com/juan_bello_004fc5c7445625</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/juan_bello_004fc5c7445625"/>
    <language>en</language>
    <item>
      <title>Simulating the Siglo Game in Python</title>
      <dc:creator>Juan Bello</dc:creator>
      <pubDate>Mon, 22 Dec 2025 00:31:28 +0000</pubDate>
      <link>https://forem.com/juan_bello_004fc5c7445625/simulating-the-siglo-game-in-python-mo1</link>
      <guid>https://forem.com/juan_bello_004fc5c7445625/simulating-the-siglo-game-in-python-mo1</guid>
      <description>&lt;p&gt;🎯 &lt;strong&gt;Simulating the Siglo Game in Python: A Beginner’s Journey into Game Logic&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🧠 &lt;strong&gt;Why I Built This&lt;/strong&gt;&lt;br&gt;
As a computer science student learning Python, I wanted to create something fun, culturally meaningful, and educational. I played Siglo in my teen years, a traditional Colombian tile-drawing game where players aim to reach 100 points without going over. It’s simple, strategic, and perfect for learning how to build interactive programs using Python classes, loops, and conditionals.&lt;/p&gt;

&lt;p&gt;🖼️ &lt;strong&gt;What It Looks Like&lt;/strong&gt;&lt;br&gt;
Here’s a snapshot of my program in action:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzocidb5ne3rn6ezk9jtg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzocidb5ne3rn6ezk9jtg.jpg" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this round, Juan drew tiles totaling 121 and went bust, while Jose played it safe and won with 93 points!&lt;/p&gt;

&lt;p&gt;🧾 &lt;strong&gt;How the Code Works&lt;/strong&gt;&lt;br&gt;
The program is built around two classes: Player and SigloGame. Each player draws tiles from a shuffled bag (numbers 1–90), and a special “wild tile” (called vira) is added to everyone’s score. Players decide whether to draw again or stay. If their total exceeds 100, they bust. The game ends by declaring the player closest to 100 as the winner.&lt;br&gt;
Here’s a quick breakdown:&lt;br&gt;
• Player class tracks each player’s name, tiles, and score.&lt;br&gt;
• SigloGame handles the game setup, player registration, tile drawing, and winner logic.&lt;br&gt;
• The game runs interactively in the terminal using input() prompts.&lt;br&gt;
You can explore the full code on GitHub: &lt;a href="https://github.com/jbelloal/siglo_game/blob/main/siglo.py" rel="noopener noreferrer"&gt;🔗&lt;/a&gt; View siglo.py on GitHub&lt;/p&gt;

&lt;p&gt;✅ &lt;strong&gt;What I Learned&lt;/strong&gt;&lt;br&gt;
Building Siglo taught me how to:&lt;br&gt;
• Use object-oriented programming to model real-world games.&lt;br&gt;
• Handle user input and control flow with loops and conditionals.&lt;br&gt;
• Simulate randomness with Python’s random module.&lt;br&gt;
• Think about edge cases like busting or ties.&lt;br&gt;
Thanks for reading! Whether you're learning Python or just love games, I hope this inspires you to build something playful and personal. Let me know if you try it out or want to improve it with AI strategies or GUI features.&lt;/p&gt;

&lt;p&gt;🤖 &lt;strong&gt;Content generated with the help of Microsoft Copilot&lt;/strong&gt; This blog post was created in collaboration with Copilot, an AI companion by Microsoft that assists with writing, coding, and creative tasks.&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>showdev</category>
      <category>python</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
