Add Bet.recurring, edit Bet.dissolveBet
Add Bet.recurring, edit Bet.dissolveBet
I seem to have broken something ... Bet.disolveBet not working properly.
Unbroken. In that the bet array isn't doing what I want it to, it's still not working properly. The problem is I'm trying to edit the array that we're iterating ober in checkBets ... I haven't traced through the code enough (and I'm too tired to now) to figure out where to put the fix, but that's at least part of the reason behind my code not working.
Added board.js
Streamlined definition of board variable.
Added definition of line color for lines drawn on board.
Added dice.js and relegated initializing the _CRAPS.dice object to craps.js instead of index.html.
Added utils.js and moved the random number generation function to that file.
Added crapsDice.js and relegated the CrapsDice class to this file.
Added crapsBets.js and reorganized the code to make a little more sense.
Added crapsPlayers.js and a PlayerManager class definition.
Moved getRandomNumber() to the UTILS class.
Added players.js and crapsPlayers.js and simplified creating new players.
added BetFactory to craps.js, modified HardWaysBet to take a number input for its hardways, as well as adjusted the payout accordingly (7:1 & 9:1 for 6,8 & 4,10 respectively)
Adjsuted _CRAPS.placeBet() as well as the call to placeBet in index.html
Working on drawing the game board.
Got the basic frame of the game board drawn, including curve\!
Added inside line of the passline.
Reworked Bet, CrapsBet, moved BetManager where it belongs, working on BetManager, still working on Bet