This what I have done code wise. Not sure why but when the program is ran i can not get it to generate a random number between 2-12 to simulate the roll of the 2 dice added together. it is supposed to allow the player to guess 3 times the result of the 2 die roll and then if the player guessed right it should say you win the number was and out put the number and if the player lossed it is supposed to generate a you lose the die total was and output the roll
CODE
let die1= random(6)
let die2= random(6)
let count = 1
let roll=die1+die2
input roll
do
print "enter a number between 2 and 12:"; guess
input guess
let count=count+1
loop until count >=4
end
here is something i am adding to it to help determine the output but it still does not work
CODE
if
roll=guess then
print "you win-roll was:"+roll
else
print "you lose- roll was:"+roll
end if