RNovember
Well-known member
Hello,
For a long term project, I want to be able to make a robot that would play mancala. To see how mancala is played, see https://www.thesprucecrafts.com/how-to-play-mancala-409424
For the first part of the program, I need it to sense if one cup was emptied and if so, to change it's variable (the one that counts how many pieces the cup has in it) to zero, and then add 1 to all the variables that come after for as many pieces there were in the first cup. This sounded like I needed a loop to go from 1 to how many was in the cup, and add one to the variables that would be affected. But I can't figure out how to increment the variable each time to add 1 to it.
I am using a picaxe 20x2 for this project.
If anyone has any ideas, I would welcome them.
RNovember
For a long term project, I want to be able to make a robot that would play mancala. To see how mancala is played, see https://www.thesprucecrafts.com/how-to-play-mancala-409424
For the first part of the program, I need it to sense if one cup was emptied and if so, to change it's variable (the one that counts how many pieces the cup has in it) to zero, and then add 1 to all the variables that come after for as many pieces there were in the first cup. This sounded like I needed a loop to go from 1 to how many was in the cup, and add one to the variables that would be affected. But I can't figure out how to increment the variable each time to add 1 to it.
I am using a picaxe 20x2 for this project.
If anyone has any ideas, I would welcome them.
RNovember