Original Post
Hi! I would like to switch between two players in a game. I could do that with a simple loop, like a do-while. This is not the best solution for my design, therefore I would like to call the functions directly. Example: main() -> playerOne.move() -> doSomething() -> playerTwo.move() -> doSomething() -> playerOne.move() ... This would create a linear function call tree, similar to a recursive function call. The big question is. Should I really do that or are there problems related to this concept. Memory, stack, etc...?