tsubasa icon indicating copy to clipboard operation
tsubasa copied to clipboard

Implement the attack logic #26

Open WhoIsNac opened this issue 1 year ago • 5 comments

attack _system

✅ We check if the player is an Attacker ✅ If the attacker has more dribbling status than the defender, we reduce the attacker's defense by the defender dribble stats. ✅ Create_card system crated (only cost and role param missing) ✅ Attack_system update with the place_card logic. ✅ When the card has been dribbled, we remove the card from the field according to its position ✅If the Attacker has not dribbled the opposing card , we remove the Attacker from the field + end of the turn. ✅ Added 1st review change.

I started the attack logic and the contract and implemented the test, (I also created a card creation contract to do the test with the card stats).

But to finish the implementation, we need to finish the card logic system and also the place_card system to know each card in the field in order to start the attack sequence.

I've also created a create_card contract so that I can test attacks between two cards.

Fixes #26

WhoIsNac avatar Aug 14 '23 13:08 WhoIsNac