Pedro Martínez: Ah indeed. In the procedure that I outlined below the legal moves are determined even before the user is asked to move. Although I didn't include it, the list of legal moves is necessary for the no-move-possible and dice-swapping logic.
(Cacher) Si vous ne voulez pas que les autres utilisateurs sachent ce que vous êtes en train de faire sur ce site, vous pouvez changer les réglages (abonnés seulement) en activant le mode invisible. (pauloaguia) (Montrer toutes les astuces)