This is known as Ping-Pong because it follows the same pattern as the game. To accomplish this, you create an object in one image that understands ping. Its counterpart is an object in the second image that understands pong. The Server Smalltalk examples make it a bit more interesting by passing a value along with each message and then returning a result. With each message sent, the value is decremented by one. Ping-ponging stops when the value reaches 0.
![]() |