Hello
I have programmed a simple game and it bacically works well. However, I would like to change one part of it.
The following code (shortened for better overview) is what I have now:
Define bank()=Prgm
Disp "your choice",
Disp "Enter 'd(1)' to accept"
Disp "Enter 'd(2)' to deny"
EndPrgm
Define d(n)=Prgm
If n=1 Then
deal()
Else n=2 Then
no()
EndPrgm
Now I want to replace the value one by "yes" and the value 2 by "no". However, when I try it, it showes my an error that the value can't be verified. Is there a possibility to do that? If so, what do I need to change.
Furthermore, I would be happy, if someone could explain me how to do the following.
I would like to add another part to the game (it's not important but helpful).
With a program part (manual input number) one of a given list of values is randomly selected. There are more than 4 values, this is just an example.
number:={1,2,3,4}
value:={45,55,87,93}
selection:=randInt(1,4)
a) For each number that is manually input "i" shall be added on the respective line of column A in spreadsheed 1, so that it's possible to see, which numbers haven't been selected.
b) After the start of the program, the given list of values shall automatically be input in column A in spreadsheet 2. After each randomly selection value "x" shall be input in column B beside the value.
So, after the second selection, the spreadsheets might look as shown. Of course it would also be possible to combine a) and b) in one spreadsheet, but I would prefer it the other way, so that no horizontal scrolling is necessary.
Spreadsheet 1 | - | Spreadsheet 2 | - | - | ||
- | A inp | - | A val | B sel | ||
- | - | - | - | - | ||
1 | i | 1 | 45 | - | ||
2 | - | 2 | 55 | x | ||
3 | i | 3 | 87 | x | ||
4 | - | 4 | 93 | - |