
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/20
Details
Major changes has been applied to public API. We can now initialize application by doing:

Game state changes very often. Two channels have been defined in order to notify API client about changes:
onPlayerAction, propagated when player made some action (registering, throwing card etc.). For now, we have primary set of them specified:

onPhaseUpdated, propagated, when the game phase has changed or has been updated. What kind of game phases are defined over there? Quite a few…

What you can see on the diagram (I guess it’s a true UML state diagram) is a set of game phases with its transitions. As an API client you are notified when specific phase initializes so you can display the game state on your UI, perform some extra actions (i.e. throwing card animation) and then force game logic to continue.
Of course, it’s not final version of API. We are lacking i.e. declareBomb. As you might know (but probably not) we have added declare bomb validator lately, which is a strong foundation for further bomb feature development. I think it will be shipped in one of the upcoming contribution, so beware players!
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved. Great work done, we would like to see more such awesome contribution in the coming days.
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