Easiest way: u create two "Actor-objects", the ball( wich is just falling) and the obstacle wich decides if the ball has to be set to the right or left side ( with probability) of itself? :D
now u build ur own world and create a new ball on top of it.
Do u need this for school ?
Yes, it is my "project" in computer science. There must be 5 rows of obstacles, wer a ball get through.
It will be perfect, if anybody can create the code for that, because my english is not the best :S
Easiest way: u create two "Actor-objects", the ball( wich is just falling) and the obstacle wich decides if the ball has to be set to the right or left side ( with probability) of itself? :D
now u build ur own world and create a new ball on top of it.
Do u need this for school ?
Yes, it is my "project" in computer science. There must be 5 rows of obstacles, wer a ball get through.
It will be perfect, if anybody can create the code for that, because my english is not the best :S
So the easiest principle of a galton board is the decision of the balls next place (right || left). But i dont know wether u have to implement physics or an own random function. So if u dont know that either- ask ur teacher or implement it the way i told u. Just start your programm, post it here and i will help u (i promise). But i wont do ur homework mate :P
PS: I saw that ure german(If ur profiles location is right) so we can talk in german if u want. -> Im also able to speak french & spanish if ure not from germany..