I have several question regarding to the mandatory assignment.
My assignment is about chessclock.
1). Could you please tell me why this equation did not work??
To limit max time of white and black Display variables, I wanted to make equation
condition like this
[name of variables]
maxtime...internal variable which I made to put maximum time for white and black DisplaDy variable
reward...internal variable which I set to put reward time
①Buttons.whiteButton/ Display.whiteDisplay < maxtime ? Display.whiteDisplay += reward : Display.whiteDisplay = maxtime
I checked that this conditional expression is available in yakindu user guide.
Although the expression
②Buttons.whiteDisplay/Display.whiteDisplay += reward
works, but when I change equation to ①, error appears.
The error says
- mismatched input "+-=" expecting ":"
- Failed to parse Expression ":"
- The left-hand side of an assignment must be a variable
I do not understand what these errors mean.
Could you please tell me why these error occurs?
If conditional expression is not appropriate to set maximum value for Display.whiteDisplay variable, what expression will be good solution?
2) I did not understand the meaning of "postpone" part.
Could you please tell me what does it mean for "appropriate button"?? which button does this word means?
Does it mean that one pressing "mode" make white and black timers stop, and second pressing "mode" goes back to the normal turns?
Could you please specify what is the condition for "white/black adjourned" are showed??
3) Could you please give me advice for how to exchange min from seconds?
It is one of mandatory condition for showing timers in min, not second.
However, I could not find how can I show them in that way.
Could you please give me some advice??
4) How to display values?
There are many instructions which says display the value of white and black clock to the user. However, there is no [operation of display] in the original interface.
Could you give me advice for how to display values?
Since I cannot add "display operation" in internal space.
Thank you so much for your cooperation.
Your reply will help me a lot!