Advanced Digital Practice, part ii

Today was a more extensive version of last week. We copied out the code and altered it till we had our own thing. Before that, we were talked through all the code that we were using and there were several things that I had never known before, for example. All counting is started from 0. The example in the code we were using today was that there were 6 cubes and 6 colours. The colours are set in an array list, so to give each cube a colour you would reference it by its number, the first one would be ‘0’ and the second colour would be ‘1’.

Below is what happened when I messed around with the numbers and added much more cubes than the original 6.

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *