Something along the lines of:
++>++++++++< this is input data [<+>-] this adds the numbers <[[->+<][->>+<<]] this does the calculation
The approach is to evenly distribute the sum of two numbers. By means of a uniform distribution, I mean that the difference between the values ββis not more than 1 (since there are no floating point numbers, you must somehow represent, for example, 2.5). When you have two neighboring cells containing these values, feel free to do whatever you want with them (you can print them and then reduce the numbers from each cell, and if you stay with 1, then print ".5" by him).
Of course, the code above may have pointer errors, but it should be enough to start and debug. In addition, I would be very happy to see a good, effective solution.
source share