[V0.0.4 + V0.0.5] - SteemCasino - RPS, new design and new logo

in #utopian-io7 years ago (edited)

Hi, and welcome back to our latest update. We'll be working hard next days to be ready for bug testing on our website SteemCasino. We will be announcing the bug testing on our official Discord Server so be sure to check it out.

You can see our github here.

And pull request for v0.0.4 here and for v0.0.5 here.

New Features

  • We have added Rock, Paper, Scissors! The layout of Rock, Paper, Scissors is pretty similar to the Coinflip one, but it's not random like coinflip and you can draw!

Once you create a Rock, Paper, Scissors game, using this ugly window image.png


The game is introduced in our database using this query and displayed on the Rock, Paper, Scissors page similar to the Coinflip page. You can check that out here.

INSERT INTO rps (player1, player1pick, bet, reward) VALUES (?, ?, ?, ?)

After that somebody might want to enter in your game so he'll press the Enter game button.

image.png

And will be met with another ugly window, where he will choose his side.

image.png

If he has enough money and if it's not the same player as the one that created the game, we'll do a simple calculation to see who have won.

winning = 1 - Means player 1 has won.

winning = 2 - Means player 2 has won.

winning = 3 - Means it's a draw.

Pick = 1 - It's rock

Pick = 2 - It's paper

Pick = 3 - It's scissors

if($player1pick == $player2pick)
                        $winning = 3;
                    else if(($player1pick == 1 && $player2pick == 3) || ($player1pick == 2 && $player2pick == 1) || ($player1pick == 3 && $player2pick == 2))
                        $winning = 1;
                    else
                        $winning = 2;

And we are updating our database with the results.

UPDATE rps SET player2 = ?, player2pick = ?, win = ?, timestamp = ? WHERE ID = ?

If you press view game, now you'll see a window, that has a countdown (thanks to https://github.com/johnschult/jquery.countdown360). After the countdown ends you can see the results.

image.png

image.png

image.png

  • New Website Design to complement the logo (Still needs work)

image.png

  • Our Discord Server is now on the index page of the website.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @emrebeyler, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Congratulations brother 🔥🔥 @podanrj

Hey @andreistalker I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

As a follower of @followforupvotes this post has been randomly selected and upvoted! Enjoy your upvote and have a great day!