Bitcoin Forum
November 18, 2024, 01:07:06 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 »  All
  Print  
Author Topic: Dice Game/Faucet Open Sourced On GITHUB  (Read 7783 times)
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 14, 2015, 02:10:12 PM
 #21

I will try this. How long time did you invest in development?
I want to make my own game,but if will take alot of time .  Tongue

So far, a couple of weeks. But there are still lots of work needed to be done.

velesgs
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
March 14, 2015, 02:16:30 PM
 #22

Good script, I will follow the development.
velesgs
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
March 14, 2015, 02:37:19 PM
 #23

I own a faucet and want to try implementing this on my website. Since I'm not that tech savvy can you walk me through a step by step process?

The project is far from completed. It's only a demo.
Probably you can just play with it on the demo site first.

It's not hard for tech people to install it and run it, maybe within 5 minutes.

But for non-tech people, there are many steps to go and you may make mistakes on any one of them.
Please ask a tech people to help you install it.
Here is the brief steps:

1. install node.js from nodejs.org. see https://docs.npmjs.com/getting-started/installing-node
2. install mongodb from https://www.mongodb.org/downloads;
3. download code from github
4. type "npm i" under the folder to install necessory modules.
5. modify config file in config folder to connect to mongodb.
5. type "node app" to run it.
6. open browser: http://localhost:3000 to see the site.

failed to install. it is not clear what and where to put it, and where to upload your files from the repository, I would like to test
Bit_Happy
Legendary
*
Offline Offline

Activity: 2114
Merit: 1040


A Great Time to Start Something!


View Profile
March 14, 2015, 10:30:54 PM
 #24

I am developing an open source dice game and host it on github.

https://github.com/popmanhe/node_dice

I just start it and so it only has some basic functionality. 
I will work on that from time to time and add more features. If you have any ideas to add to it, let me know or just fork it.

Demo site: http://52.11.70.134/

********* Tech spec **********
The site is built on

Backend: node.js + socket.io + mongodb + handlebars.js(template)
Frontend: bootstrap + jquery + knockout.js

Session uses mongodb as session store, so the site can be expanded to multiple servers.

If you download code and run this site, please set up connection to mongodb in config/developement.js or production.js.

2015-02-24: First commit; Basic features added.
2015-03-11: Add chat functionality. Chat messages can be saved to database and kept for a week(using mongodb TTL index).

I am also open for coding jobs. I have 15+ years of design/coding experience.

My tech stacks include asp.net, c#, vb.net, node.js, html, javascript, sql server, oracle, mongodb, redis.

Thank you for making this, and it will be interesting to see it grow.  Smiley

Small
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


Grow SMALL amount of BTC by earning it


View Profile
March 15, 2015, 02:38:19 AM
 #25

So how do you integrate this with the daemon?


  ╓▄▄    ,,,╓╓,,                     ,   ▄██▌`        ,╓▄▄▄▄▄▄╓  ╓▄▄               ,▄████@             ╙▀██▀░██W▐██
  ▀█████████▀██████@░                ▀█████▀       ╓▄█████▀▀▀██████▀               `▀███▀                ▓▌ `█▀██▒█
   ▒███████░  ╙██████          ▄╖     ████▌  ╓▄▄ ▄██████▌     ╙███▌       ╓▄,       ╓╖      ,,,   ,╓     ▐▀  █`▀▌░█
    ▐██████`   ▐█████`     ,╓▄███▓α ▄██████████Ñ▄██████▌       ▓██▌     ,▄████▄▄,   ███╖    █████▄████▄▄╖
    ]██████╢╖  ▓████▀   ▓████▀████▌ ▀█████████▌ ███████▌       ▐██▌ ╥█████▀▀█████▌╫██████[▐███████▀█████▌
    ]█████▌▐██████▀▒    ▐████▌ ▀███▌ ]█████ ```]███████▌       └▀▀╩ ▒▐███▌  ]████  ▐█████`╙╜█████   ████▌
    ]██████╜╙▀██████▄c  ]████▓▒▄███▀╩]█████    ████████▌        ,,  `▐███▌   ████  ]█████   ▐████▌  ████▌
    ▐██████   `▀██████▄▒]███████▀`   ]█████    ▐███████▌       ▐██   ▐████   ████L  █████   ▐████▌  ████▌
    ▐██████     ███████ ╫█████▒  ▄▄p ]█████     ███████▌       ███   ▐████   ▓███U  █████U  ▐████▌  ████▌
     ▓██████p    ██████▌░▓██████▄▄██Ü ▐█████▄▄╖  ▐███████      ▐███   ▐█████▄.████µ ▐█████▄, █████▄ ,█████▄
  ╓▄████████, ,███████ `▀████████▀   ▀███████▌   ╙██████▄    ▄████▒  ╙███████▀▀▀▀▓▓██████╜ ╚██████ ▀█████▀
▐█████████████████▀▀      ▐▀████▌      ╙▀████     `▀███████████████    ╙▀███▌     `╙▀▀██▌   └▀██▌    ▀██
└▀▀                        `   ╙                       '`╙╙╙`   ▐███▄▄
                                                                ╙████▀
  Highest BTC Payouts in the World!
Truly a one-stop casino for any player| 301% Deposit Bonus
Slots
          ██▄,   ▄███████████▄
         █████▌ ███████▀███████
           ▀██▌ ███▀  ,╓,  ▀███
       ██   ██▌ ███   ███   ███
          ▄███▌ ████▄     ▄████
      ▄▄▄  ▀██▌ ███▀  ▄▄▄  ▀███
     ▀███   ██▌ ██▌  ▐███▌  ▐██
   ╓       ▄██▌ ███▄       ▄███
  ▄███████████▀ ███████████████
  ▀▀▀▀▀▀▀▀▀▀▀    ▀▀▀▀▀▀▀▀▀▀▀▀
Casino              ▄▄▄█▀▀█.     
           ███▄▄▄    █     
                 █   ▐▌   
                 █    █   
         ╓,      █     █   
        ▐█,▄,    ██▄   ▐▌ 
        █████▌   ███▌   █µ
       ██████▀   ███▀    █
       ████▀     █     ▓Æ▐▌
         ▀     , █      ▀ █
               ▀ █  ,▄▄Æ▀▀▀
               ▀ █▀▀`     
    ▀▀▀▀▀▀▀▀▀▀▀▀▀
Sports        "▀▀▀▄▄,     
       ,     ▐██▄   
      ╒██▀▀▀▀▀████▄ 
      ██       ▀███▌
     ▐█▄        █▀▀█µ
       ▐█      ▄▀  ]▌
         ███████   j▌
        ▐███████   █
   ,,╓▄▄█████████▄▄▀
 ,▀     ╙▀████▀ ,█▀ 
 █,       ╔█  ▄▀▀   
 ▀▀█▄▄▄▄▄██▀▀▀
Poker         ██▄▄,       
        ▐██████▄,   
        ▀████████▌   
       ▌    ▀█████▀ 
      ██▄▄▄   ███   
        ███▌   ██▌   
    ╒██████▄   ▐█████
    µ    ███▌  ▓█████
   ████████▀  ╓█████▌
  ▐█▌▐█▌    ,▄██████
 ╒▄▄,   ,▄▄███▀▀██▀ 
 ██████████▌         
▄███████████         
  '▀▀▀▀▀▀╙
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
emrebey
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
March 15, 2015, 12:19:13 PM
 #26

starred.

I will try this today. hate mongodb but it's easy to run anyway.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 15, 2015, 01:13:02 PM
Last edit: March 15, 2015, 02:34:56 PM by gamblebuilder
 #27

starred.

I will try this today. hate mongodb but it's easy to run anyway.
mongodb is for demo. in production, should be mysql. it's easy to switch to mysql.

DAL files is in help folder

lugrugzo
Full Member
***
Offline Offline

Activity: 158
Merit: 102


View Profile
March 15, 2015, 02:42:02 PM
 #28

Very poorly coded script also you didn't integrate deposit/withdraw system/admin panel. If you are making something, make it true.

Also read this page: https://github.com/rwaldron/idiomatic.js/

My posts are not an incentive for investing, always do your own home work.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 16, 2015, 02:07:28 AM
Last edit: March 16, 2015, 08:14:07 AM by gamblebuilder
 #29

Very poorly coded script also you didn't integrate deposit/withdraw system/admin panel. If you are making something, make it true.

Also read this page: https://github.com/rwaldron/idiomatic.js/

Talk is cheap. It's an open source project. It's free to use and I am also free to do/not do anything about it.

If  you want to make anything you want, please do it yourself.

bluepoodle
Newbie
*
Offline Offline

Activity: 44
Merit: 0



View Profile
March 17, 2015, 02:41:46 PM
 #30

Good job gamblebuilder. Once completed, if you ever want to sell a copy, I will be your fist customer.
BitcoinExchangeIndia.com
Sr. Member
****
Offline Offline

Activity: 311
Merit: 264


View Profile
March 17, 2015, 10:48:43 PM
 #31

starred.

I will try this today. hate mongodb but it's easy to run anyway.
mongodb is for demo. in production, should be mysql. it's easy to switch to mysql.

DAL files is in help folder

First of all... Great Job. I have 3 Qs...

1. Can it be integrated with blockchain.info send/receive API rather than running own bitcoin daemon ?

2. As you are saying, it can be taken to MySQL, can it be run on PHP-MySQL shared hosting ?

3. Can investment in bankroll be integrated with it ?

lugrugzo
Full Member
***
Offline Offline

Activity: 158
Merit: 102


View Profile
March 17, 2015, 11:43:05 PM
 #32

starred.

I will try this today. hate mongodb but it's easy to run anyway.
mongodb is for demo. in production, should be mysql. it's easy to switch to mysql.

DAL files is in help folder

First of all... Great Job. I have 3 Qs...

1. Can it be integrated with blockchain.info send/receive API rather than running own bitcoin daemon ?

2. As you are saying, it can be taken to MySQL, can it be run on PHP-MySQL shared hosting ?

3. Can investment in bankroll be integrated with it ?

I'm not the owner but here the answers:
1- You can integrate anything to check deposits, but the best way is running your own daemon. Not third-party API's.

2- You can switch to MySql or any other database, but you have to change db queries according to your choose. Also mongodb is not a bad decision.
You can't run this script on a PHP shared hosting because this script doesn't need PHP, it's a node.js app and needs a VPS.

3- Investments can be integrated.

My posts are not an incentive for investing, always do your own home work.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 18, 2015, 03:37:40 AM
Last edit: March 18, 2015, 04:00:02 AM by gamblebuilder
 #33

starred.

I will try this today. hate mongodb but it's easy to run anyway.
mongodb is for demo. in production, should be mysql. it's easy to switch to mysql.

DAL files is in help folder

First of all... Great Job. I have 3 Qs...

1. Can it be integrated with blockchain.info send/receive API rather than running own bitcoin daemon ?

2. As you are saying, it can be taken to MySQL, can it be run on PHP-MySQL shared hosting ?

3. Can investment in bankroll be integrated with it ?

I'm not the owner but here the answers:
1- You can integrate anything to check deposits, but the best way is running your own daemon. Not third-party API's.

2- You can switch to MySql or any other database, but you have to change db queries according to your choose. Also mongodb is not a bad decision.
You can't run this script on a PHP shared hosting because this script doesn't need PHP, it's a node.js app and needs a VPS.

3- Investments can be integrated.

Thanks for answering.
I probably will integrated with blockchain.info because it's for demo and I don't want to donwload 20G+ block data.
Since APIs of blockchain.info are similar with bitioncoin demon, so it will be easy to switch to bitcoin demon in production.

There are probably some nodejs shared hosting. But if you want to run such web site. it's better you use a VPS, like aws or azure

velesgs
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
March 18, 2015, 12:03:11 PM
 #34

it would be nice to do another popular currencies such as dogecoin, litecoin
anshar
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


View Profile
March 22, 2015, 06:22:06 PM
 #35

The layout could use some work. As well as this, I think lots of features are missing like a chat, faucet, etc.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 23, 2015, 05:25:53 AM
Last edit: March 23, 2015, 06:14:15 AM by gamblebuilder
 #36

The layout could use some work. As well as this, I think lots of features are missing like a chat, faucet, etc.

Chat has been there, hidden. Click upper right horn to show chat.

Faucet is implemented as well.

Support the project by clicking ads.  Grin

deepbtc
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
March 23, 2015, 07:35:07 AM
 #37

everyone should take a look at https://modulus.io/, its managed node, mongodb hosting meaning that you dont have to worry about the server and scaling as they will take care of everything. (will it be taken down?)

the demo site in ios 8 on iphone 4s crashes the crome app. The sites loads on chrome for android (oppo find 5) but nothing happens when you enter your name, same thing on firefox/chrome for ubuntu.

nice work by the way. how many hours have you worked on this already?

Does anyone know which server hosting primedice uses?

There are two very popular card games here in thailand and i would like to develop them (they will be perfect with Bitcoin). The games are not hard to learn, and are mostly dependent on strategy with a little bit of luck. (you get 4-5 times the amount you invest in if you win and the game takes around 5 minutes sometimes just a few seconds.
elm
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000


View Profile
March 23, 2015, 07:36:46 AM
Last edit: March 23, 2015, 07:56:16 AM by elm
 #38

I tried to go to the demo site but I get a box asking What would like to call yourself? IMO opinion there is the word you missing

but my problem is that I put in a nickname and click go but nothing is happening........I can't go to the site

any idea what I am missing here? thanks

edit: using chrome
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 23, 2015, 08:03:40 AM
Last edit: March 23, 2015, 10:54:02 AM by gamblebuilder
 #39

I tried to go to the demo site but I get a box asking What would like to call yourself? IMO opinion there is the word you missing

but my problem is that I put in a nickname and click go but nothing is happening........I can't go to the site

any idea what I am missing here? thanks

edit: using chrome

probably just try more times. The site has to be accessed via domain name: http://ccroll.com  to make reCaptcha work.

After you enter your name,  the site will create a new account for you with balance 0.

You need to check "I am not a robot" to get some "free" bitcoins and then you can play.

The server is slow sometimes. Anyone volunteer a shared hosting?

The project uses websocket. So browser should be more updated.


gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 23, 2015, 08:06:25 AM
 #40

everyone should take a look at https://modulus.io/, its managed node, mongodb hosting meaning that you dont have to worry about the server and scaling as they will take care of everything. (will it be taken down?)

the demo site in ios 8 on iphone 4s crashes the crome app. The sites loads on chrome for android (oppo find 5) but nothing happens when you enter your name, same thing on firefox/chrome for ubuntu.

nice work by the way. how many hours have you worked on this already?

Does anyone know which server hosting primedice uses?

There are two very popular card games here in thailand and i would like to develop them (they will be perfect with Bitcoin). The games are not hard to learn, and are mostly dependent on strategy with a little bit of luck. (you get 4-5 times the amount you invest in if you win and the game takes around 5 minutes sometimes just a few seconds.

I have not tried on every browser. I am using chrome/firefox on windows.
It should be working on modern browser which support websocket.

It may not be browser's issue. Just refresh page several times and turn off adblock(it has faucet now), and it may work again. Slow server... Tongue

Pages: « 1 [2] 3 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!