acpennington / GoatController

The next great ygo sim
2 stars 2 forks source link

Make common conditionals into their own function #392

Open acpennington opened 2 years ago

acpennington commented 2 years ago

Instead of repeatedly checking if item.row = DECK, we should just makes things like this their own function. It follows the DRY principle to make our code more readable.