8. AI Development8. AI Development\8.1 Project Management8.1 Project Management\8.1.5 Define A New Variable

8.1.5  Define A New Variable

The CSR-Rescue has a set of pre-defined variables (Internal variables). They are Duration, SuperDuration, bGameEnd, CurAction, CurGame, LoadedRedObjects, and LoadedBlackObjects. In addition to the internal variables, additional variables can be added. Here is the procedure:

To add a new variable:

1.    Click on the “Self-defined Variable” button to add a new variable.

2.    Assign a variable name and initial value.

v  Name: It can only contain ‘a ~ z’, ‘A ~ Z’, and ‘0 ~ 9’. No space is allowed.

v  Initial value: No decimal value is allowed.

3.    Click  to add the defined variable to the list.

4.    Click  to save.

Fig. 8-8: Add a new variable

To delete a variable:

1.    Click on the “Self-defined Variable” button to select the variable to be deleted.

2.    Select the variable in the list you wish to delete

3.    Click on .

4.    Click  to save.

Fig. 8-9: Delete a variable

Top of Page