Hello everybody,
I'm programming a game similar to "Sokoban". In this game the actor has to push boxes around and place them on a "target field". Now I want to implement a method, which recognizes, when all the boxes are placed on the target fields.
For example: We have four boxes and therefore four target fields. The actor has to push one box after the others and place them on the four target fields. After the last box is placed on the last free target field, the system should print out the line "You won".
I would appreciate it if anybody can help me. Thanks.

