mfauzanalg / avatar-battle-card-game Goto Github PK
View Code? Open in Web Editor NEWa battle card game played by 2 people, made in java
Home Page: https://anilist-fauzan.netlify.app
a battle card game played by 2 people, made in java
Home Page: https://anilist-fauzan.netlify.app
Look at this.
One day, if you are going to check the skill card, you have to code like skillCard.getEffect().equals("aura")
. But wait, is it really "aura", "AURA", or "Aura"? Or maybe "AuraEffect"? This may lead to bigger bugs. Better if you have
class SkillCard {
public static final String EFFECT_AURA = "aura";
}
// somewhere
skillCard.getEffect().equals(SkillCard.EFFECT_AURA);
So if you wont get any typo. At least, if you type effect_aura
, you will get compile error.
Moreover you can change the String to int, so you can have skillCard.getEffect() == SkillCard.EFFECT_AURA
.
This issue is only a suggestion. You may argue with it (not all the suggestions are true), challenge it, or come up with another idea yourself. Please kindly close this issue after you feel this issue is irrelevant / solved.
You have attackPos
and isPowerUp
in your BoardCard
. However, the only one with those two attribute is character. Why don't rename it to BoardCharacterCard
?
This issue is only a suggestion. You may argue with it (not all the suggestions are true), challenge it, or come up with another idea yourself. Please kindly close this issue after you feel this issue is irrelevant / solved.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.