Remarks: Processing Mazes
From Maze
(Difference between revisions)
| Line 20: | Line 20: | ||
| − | It's important to note that these new changes could have been explored directly on the C64, but it was convenient to do to in Processing because Casey was writing this code and he was more fluent with that syntax than with BASIC. Every programmer is more familiar with some language than others. As with natural languages, it's easier to work through ideas in ones native tongue. The 10 PRINT variations to explore weighting the random value to have a higher percentage of one diagonal lines is created by changing the value after the decimal in 205.5: | + | It is important to note that these new changes can be explored directly on the C64, but it is convenient to do it in Processing because of the particular programmer's fluency in Programming -- it is easier to work through ideas and problems in one's native tongue. The 10 PRINT variations in weighting the random value in order to have a higher percentage of diagonal lines is created by changing the value after the decimal in 205.5 as, for example, in: |
10 PRINT CHR$(205.2+RND(1)); : GOTO 10 | 10 PRINT CHR$(205.2+RND(1)); : GOTO 10 | ||
| − | The 10 PRINT variation to show spaces and circles in place of diagonal lines also changes the value 205.5 to the number of the space character, 32, and to calculate the value of the circle, 113: | + | The 10 PRINT variation to show spaces and circles instead of diagonal lines also changes the value 205.5 to the number of the space character, 32, and to calculate the value of the circle, 113: |
10 PRINT CHR$(32+(INT(RND(1)+.5)*81)); : GOTO 10 | 10 PRINT CHR$(32+(INT(RND(1)+.5)*81)); : GOTO 10 | ||
