[V0.0.4 + V0.0.5] - SteemCasino - RPS, new design and new logo
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
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.
And will be met with another ugly window, where he will choose his side.
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.
- New Logo (Thanks to @podanrj)
- New Website Design to complement the logo (Still needs work)
- Our Discord Server is now on the index page of the website.
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 @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
Suggestions
Get Noticed!
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
As a follower of @followforupvotes this post has been randomly selected and upvoted! Enjoy your upvote and have a great day!