Parallel Assignment

Here’s a cool trick for dealing with situations where you want to assign multiple values at the same time.

The technique used is called parallel assignment and it looks something like this:

 

 

If you’re working with game boards, this is super useful way to pass around board coordinates!!