Congratulations if you made this far! Few people actually read the complete content, will you be one of them?
After that, go to your project folder and execute the command truffle compile . This will generate a json file that will have all the needed data about the contract.
players.length = 0; // Delete all the players array
totalBet = 0;
numberOfBets = 0;