Pages:
Author

Topic: BitDice - Always wanted to make your own Bitcoin dice betting site? [Free] - page 2. (Read 12942 times)

newbie
Activity: 2
Merit: 0
Great to see more and more scripts coded for bitcoin purposes. I'm a programmer myself too, hope that I will have some free time someday and code something for the.community. Keep up the good work.
newbie
Activity: 45
Merit: 0
newbie
Activity: 56
Merit: 0
Great job on this, does the betting system and all that work just using PHP or did you incorporate JavaScript as well?
full member
Activity: 218
Merit: 101
An Error Was Encountered

Unable to locate the model you have specified: viewbase
b!z
legendary
Activity: 1582
Merit: 1010
Well, you'd have to change an API that accepts Litecoin or other altcoins... do you know if blockchain does?

Coinpayments.net has an API for many altcoins, but they charge a small fee on each transaction.
newbie
Activity: 4
Merit: 0
Well, you'd have to change an API that accepts Litecoin or other altcoins... do you know if blockchain does?
legendary
Activity: 1418
Merit: 1002
awesome!  ...

Curious how easy would it be to use a different currency such as litecoin, peercoin etc ...

Would that be lots of code changes?
newbie
Activity: 4
Merit: 0
Mod note: This probrably steals your bitcoins so be careful
Read replies on first couple pages and you will see clean versions


https://i.imgur.com/zwnkmXn.png

Hey guys,

I was bored and decided to work on an open-source Bitcoin roll-the-dice betting
site similiar to just-dice.com or satoshi-dice.com.

Please note that the script is currently under development and not so great looking yet, but I'm working on that - make sure to test it out! Wink

It's also completely free and will stay that way, which is nice.
You can also make money (BTC) with this script by changing the withdrawal fee.

How to install (I'll assume you are familiar with how to install basic PHP scripts and setup a MySQL database):
  • (I would test the script on a local LAMP server first before launching it on a real site, simply because I'm not sure how well CodeIgniter + my script will handle different server environments - GoDaddy for example does not work sometimes with CodeIgniter)
  • You need an Apache HTTP server with PHP 5.3+ and a MySQL database
  • Download the files from the Download section in this thread and upload the files onto your server using a client such as FileZilla
  • Visit http://yoursite.com/bitdice/install/ to install the script. Follow the install wizard and type in your database connection/pass. Make sure to create the database in phpmyadmin first!
  • If everything went okay, you should be redirected to an admin page screen. Type in the standard "admin123" password to login.
  • Ta-da! Now you can change some basic settings for your page, and make sure to change the admin password.
  • IMPORTANT: You need to create a separate bitcoin address that will be used as a bank for the script. Winnings and losses will be deposited in the bank using blockchain.info's API. Please make sure that at least $20-$50 worth of bitcoins are in the "bank". (If it's any less there might be issues with the betting system and transactions) - Make sure to add the bank's address AND the bank's private key in the admin panel after install, otherwise the script won't work!
  • Delete the install folder!
  • Create an account and start playing on your own dice site!

How it works:
  • The site is basically a just-dice.com clone, so everything works like it does on just-dice.
  • When users deposit BTCs into your site, a random address will be generated for this session that only the user will be able to view!
  • The script then saves the randomly generated address and then checks if money is deposited. If yes, then the player will be able to play. The money is then forwarded into the bank.
  • Sessions (or accounts) can be re-logged into (so that users won't lose their BTCs) by saving a 64-long string. I'll add a password system later

To visit admin: http://yourpage.com/bitdice/index.php/admin

Please note that there still might be bugs and that some parts are still empty/don't work. I am actively developing this script and will soon be launching a github repo for other people to help develop it!

Screenies:
https://i.imgur.com/fRbUG1B.png
https://i.imgur.com/1IxoRjE.png
https://i.imgur.com/w1LbVqr.png

Downloads
v.1.0 ALPHA : https://www.mediafire.com/?caw8jqw7jw5ku88

Thanks for testing! Feedback appreciated.
Pages:
Jump to: