- Joined
- Sep 9, 2007
- Messages
- 253
There are a few things I'm uncertain about in project 2.
1. Create a unit array called units and initialize it to the following
we were told in lesson 14 Arrays that you could not initialise arrays with a value. They had to be set later. Nestharus actually already told me just to use the set keyword to set the values manually; so I thought I'd share this one in case others are confused.
2. You are only allowed to use the value 5 *one* time, and you may only use the value 5
Well I'm not sure what counts as using the value 5. I have used the number 5 lots of times or the index of 5 lots of times as well but I have only used the value of 5 as an integer one time. Is that correct?
3. [ ] may be a value
Can I use [ as a value and ] as another value? or does it have to be only 1 value? Perhaps some clarification on our limitations on how we can use colour escapes. also i dunno why we need to use the value "Is A".
4. Do the displayed arrows and unit names have to line up neatly?
As you said \t doesn't work properly and the only other option is trial and error through use of individual space characters, seems clunky.
Thanks.
1. Create a unit array called units and initialize it to the following
we were told in lesson 14 Arrays that you could not initialise arrays with a value. They had to be set later. Nestharus actually already told me just to use the set keyword to set the values manually; so I thought I'd share this one in case others are confused.
2. You are only allowed to use the value 5 *one* time, and you may only use the value 5
Well I'm not sure what counts as using the value 5. I have used the number 5 lots of times or the index of 5 lots of times as well but I have only used the value of 5 as an integer one time. Is that correct?
3. [ ] may be a value
Can I use [ as a value and ] as another value? or does it have to be only 1 value? Perhaps some clarification on our limitations on how we can use colour escapes. also i dunno why we need to use the value "Is A".
4. Do the displayed arrows and unit names have to line up neatly?
As you said \t doesn't work properly and the only other option is trial and error through use of individual space characters, seems clunky.
Thanks.
Last edited: