aaronrudkin / exapunks_solitaire_bot

Solves ПАСЬЯНС solitaire (both logically, and using computer vision + automated mouse control) as implemented in Exapunks
11 stars 2 forks source link

fixed the moving algorithm #13

Open pnemes opened 1 year ago

pnemes commented 1 year ago

The resolve_move_from already modifies the pre stack, so a simple length is enough. (we want to grab the card which place is the first empty place after the move)

As for the post stack, we want to drop the card in the first empty place, which is exactly the length of the array (since the index is zero based),