Creates a garbage zone for the virtual pad #34 #66
Loading…
Reference in New Issue
No description provided.
Delete Branch "Romain/JacoBot:Create_a_generator_of_token_for_the_virtual_pad_#31"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
close MDL29/JacoBot#34
2290ad3d23
to041307a28c
Ça plante quand on clique sur la poubelle quand on n'a pas de token dans la main.
Je pense aussi que c'est le
Token_trash
qui doit porter l'action de supprimer le jeton.248b237113
to8aba34d938
8aba34d938
tod688c219ad
Creates a garbage zone for the virtual pad #34to WIP: Creates a garbage zone for the virtual pad #34WIP: Creates a garbage zone for the virtual pad #34to Creates a garbage zone for the virtual pad #34@ -126,3 +118,1 @@
if len(tokens_trash) > 0:
# Delete the held token
self.held_token = None
if self.held_token is not None:
Attention en faisant comme ça, ta ligne 118 devient doublon avec la ligne 127, il faut regarder un peu plus loin que son code quand on rajoute des modifications. 🙂
d688c219ad
to15b5cef7a8
Dans la dernière modification j'ai changé l'ancienne ligne 127 par le else.
La prochaine fois je ferais le rebase a la fin 😅
@ -134,0 +124,4 @@
trash.remove_token(self.held_token)
else:
# Remove the token from the hand
self.held_token = None
Cette ligne devrait être en dehors de la condition car, dans ce cas là, on a toujours le token dans la main tant qu'on n'a pas cliqué autre part que sur la poubelle ou qu'on a un autre token dans la main.
5cda5774b0
to33a99d9f43
33a99d9f43
to0d530b9ad6
J'ai juste changé le nom du commit 🙂