<?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: M</title>
    <description>The latest articles on DEV Community by M (@mahfy3w).</description>
    <link>https://dev.to/mahfy3w</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%2F1816575%2Fae4695f3-2a1b-445b-a8df-ef782b3da759.png</url>
      <title>DEV Community: M</title>
      <link>https://dev.to/mahfy3w</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mahfy3w"/>
    <language>en</language>
    <item>
      <title>Pokemon Battle Simulator/Showdown Clone Devlog#0</title>
      <dc:creator>M</dc:creator>
      <pubDate>Mon, 22 Jul 2024 02:46:54 +0000</pubDate>
      <link>https://dev.to/mahfy3w/pokemon-battle-simulatorshowdown-clone-devlog0-ge1</link>
      <guid>https://dev.to/mahfy3w/pokemon-battle-simulatorshowdown-clone-devlog0-ge1</guid>
      <description>&lt;h2&gt;
  
  
  Intro
&lt;/h2&gt;

&lt;p&gt;This is a random devlog that I use to keep track of random things, and also as a time capsule for idk&lt;br&gt;
    The project is, as the title suggests, is a Pokemon Battle Simulator written in Java. It will be an offline one, only using AI as the second player. Multiplayer functionality is not intended to be made.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prologue
&lt;/h2&gt;

&lt;p&gt;Dang, why did I just think of making a devlog now? Should’ve done it since the beginning or whatever.&lt;br&gt;
If you’re reading this, welcome! Feel free to leave any feedback. Criticism is really needed. Heck, any comment is appreciated, as long as it’s specific so I know which part of it is good/bad.&lt;/p&gt;

&lt;h3&gt;
  
  
  Progress so far:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Made basic stat calculations from name, IVs, EVs and nature.&lt;/li&gt;
&lt;li&gt;Basic move calculations with only damage, with type effectiveness, STAB, crit and random[0.85, 1.00]&lt;/li&gt;
&lt;li&gt;That’s it ig?&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Project Structure (at the time of writing this):
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class Pokemon
    // calls pokemon.csv for initialization
    : all stats (hp, attack, defense, specialAttack, specialDefense, speed)
class BattlePokemon extends Pokemon
    : effective stats for each stat
    : accuracy and evasion
    : stat changes (array)
    // only initialized in battle
public class Move
    // calls moves.csv for initialization
    : power, accuracy, PP
    f() apply
        f() calculate damage
        f() handle effects
class TypeChart
    // is used by f() calculate type multiplier
    // calls typechart.csv for type chart
public class Battle
    // does nothing rn
    f() turn // does nothing as well
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>java</category>
      <category>devlog</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
