die1Value = die2Value == 1
You can't string together == tests like that, the = just copes the value on its RHS to the variable on its left.
You need something like
die1Value == 1 && die2Value == 1
JamesCherrill
... trying to help
8,516 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30
JamesCherrill
... trying to help
8,516 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30
OK, no problem.
As a newcomer you should understand that we try not to just give people answers to their homework - they don't learn much from copy/paste, and it's cheating. You help them more by explaining where and what their mistakes are, and giving some guidance as to what they should be doing next - but not by doing it for them.
Anyway, welcome to DaniWeb.
ps: Always post your code correctly indented and in CODE tags
JamesCherrill
... trying to help
8,516 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30