Hacker News new | ask | show | jobs
by minimaxir 4363 days ago
Note that the game only implements about 50 cards of the 382 cards available in the game: https://github.com/oyachai/HearthSim/tree/master/test/com/he...

BTW, if you haven't tried it yet, Hearthstone is a great CCG with a very fair progression system and very good polish/balance.

1 comments

Yep, I'm up to about 100 cards at this time, working on the basic cards first. Besides the cards, there needs to be more work on the AI modeling... currently, it won't handle any card with elements of randomness to it. I think I have an idea on how to treat it (without the AI cheating), so that implementation is coming up... soon.
Are you implementing each card by hand? I was going to make something like this and was just going to regex match all of the cards (from HearthPwn). It seemed like there were few enough variations to make something like that possible.

Curious if you already tried automating it.

A lot of the cards are more or less automatically generated in the sense that they don't actually extend any functionality of the parent class. Variations in the special effects ("text" effects) are big enough that for those, I find implementing them one by one much easier.