You may not consider it as cheating, but that's a reasonable interpretation barring pedantry and is likely what the parent comment was referring to.
Despite the fact that you can never actually add up an infinite number of terms one by one, you can however, compute what the limit of the sum will be in a finite amount of time. The same principle applies to this simulation, in which it is computing the limit of the process.