Thousand Card Game: is battle finished?
What is this project about?
This contribution is made to gornanization/1k. If you would like to find more info - I strongly recommend reading this post first.
PR:
https://github.com/gornanization/1k/pull/16
Details
Unit tests have been added within the contribution for isBattleFinished
validator function. This validator function return information, whether a battle is finished or not. When the battle is finished? When no cards are in players hands. So we need to check, if total number of won cards are equal to 24
which suggests, that no cards are holded by players.
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hey @adasq I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x