1.1-Introductie-Programmeren

Hearthstone

Difficulty: Filled Filled Filled

We are going to read the cards from Hearthstone and group these cards on how many mana it costs to play a card. This card data can be found in the provided CSV-file. To read this CSV-file, we are going to use the CSV-reader.

When a card costs more than 10 mana to play, count this card as a 10 mana card.

Tip: It could be that a card has no manacost. You can check for a value using the isEmpty(..) method of the csv reader.

Example

Example