hey guys,
im trying to create a dice cricket game where u use 2 buttons, one for each innings and then use a random number generator for the number 1-6. i understand all that code but im not to sure how to write code to collect and sum numbers 1, 2, 3, 4 and 6 and store them in memory while rolling a 6 causes the batsman to go outand once all 10 batsmen are out the innings is over and the total runs scored is stored and displayed. any help would be much appreciated thanks