mercredi 28 octobre 2015

How to ensure only the owner of pawns in a game is able to move them?

The pawns can be traded between the owners. So at different times, a pawn may have different owner.

Say, pawn has function moveTo(i,j)

How to enforce the above mentioned constraint?

Aucun commentaire:

Enregistrer un commentaire