簡単なDICEゲーム

in esteem •  5 years ago 

こんにちは、 @shogoです。

何となく、簡単なDICEゲームをつくってみました。

コメント 2019-07-14 232225.png

Steemと繋げたり、Steem Engineトークンを利用することもできますが、日本に住んでいると賭博罪に引っ掛かりそうな気もするので辞めておきます。

乱数の発生方法は、

var random = Math.floor(Math.random() * 100) + 1;


としましたが、もっと良い発生方法がありそうです。

これからも、気分で色々作ってみたいと思います :DD

gh-pages: https://shogomurakami.github.io/example-dice/
Source code: https://github.com/ShogoMurakami/example-dice

ending.gif

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Math.floor(Math.random() これよく使ってたよ^_^

Posted using Partiko iOS

さすがjavascriptマスターの@fusanさんです!!

javascriptはあまり慣れていないので、できるだけ完璧に近い乱数を発生させるにはどう書けば良いのか、3秒くらい考えました :D

3回やって2勝1敗でした。

ありがとうございます!!
できればSTEEMを賭ける事ができるようにしたいのですが、捕まりそうなので辞めておきますww

Hello shogo

This is an one time message to inform you about my existence.

My purpose it to support all seven77 members mainly by upvoting their posts.
In near future more functionalities will be added so every member of seven77 network can benefit with different ways.
Following me will auto-register you to my list and add you to the next day voting pool.

There are already 65 active members and they shared a total of $1.1498.


At the current time my full vote worth $0.0306 but with your help this can change.
Delegating power will increase my vote worth and your reward.
10SP, 20SP, 30SP, 50SP, 100SP, 250SP, 500SP, 1,000SP, 5,000SP, Custom Amount
Make sure you have at least 15 SP left on your account.


Visit s77assistant's daily report to stay informed about any news


Congratulations @shogo! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!