[FONT=Trebuchet MS][SIZE=3]Can anyone shed any light on the following problem…[/SIZE][/FONT]
[FONT=Trebuchet MS][SIZE=3]Idea of the game>[/SIZE][/FONT]
[FONT=Trebuchet MS][SIZE=3]Player rolls die twice, once to move the counter, once to identify** a**. This then enables user to work out the equation before placing their answer into answer_txt.[/SIZE][/FONT]
[FONT=Trebuchet MS][SIZE=3]This can then be verified by clicking check_btn.[/SIZE][/FONT]
[FONT=Trebuchet MS][SIZE=3]Problem>[/SIZE][/FONT]
[SIZE=3][FONT=Trebuchet MS]Trace action brings up answerA = [/FONT][FONT=Trebuchet MS]NaN[/FONT][FONT=Trebuchet MS] when I need it to work out equation and return the correct answer. Where am I going wrong?[/FONT][/SIZE]
[FONT=Trebuchet MS][SIZE=3]e.g. Die roll 1 lands counter on 2a.[/SIZE][/FONT]
[FONT=Trebuchet MS][SIZE=3]Die roll 2 = 5 so the equation is 2 x 5 = 10.[/SIZE][/FONT]
[FONT=Trebuchet MS][SIZE=3]AnswerA = 10. [/SIZE][/FONT]
[FONT=Trebuchet MS][SIZE=3]Please help…[/SIZE][/FONT]