#397

New

Feature: Python command to permanently destroy cards

Reported by Colter Cookson on OCTGN · 28/05/2011 17:04:43

Assigned to:
jods
Priority:
Normal
Status:
New
Category:
None
Version:
0.9.*
Issue type:
Feature

I would like to be able to permanently destroy cards. I could move them to players’ exiled zones, but that leaves them in memory, where they might affect performance.

I thought of this because I am trying to speed up the function that determines hands’ value in Thunderstone. I am planning to test different ways to write the function by generating random hands on the table, moving them to the player’s hand, starting a timer, running the function, and stopping the timer. To get valid results, I would like to do this 500-1,000 times for each hand type (e.g., “three heroes and four weapons”). I am concerned that having the cards from previous hands in memory will slow down the later tests.

Attachments

No attachment has been uploaded, yet.


Loading comments...