Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After I buy an item, how I set a price and send it to the tradePile? #463

Open
moisty70 opened this issue Apr 28, 2020 · 4 comments
Open

Comments

@moisty70
Copy link

I am trying to buy items and then sell them for a higher price. I can buy the items but they go to WON LIST and don't know how can I access it.

@FrancisHGR
Copy link

get them with

your_session.unassigned()

From this list, take the identifier "id" and then use send sendToTradepile(id, safe=False).

Read the documentation for a better understanding, the link is on the front page of this repository.

@totti240282
Copy link

safe=False, What does it mean ?

@FrancisHGR
Copy link

FrancisHGR commented May 4, 2020

safe checks whether there is enough space on the tradepile, so that its not attempting to shift the card when its not actually possible.

In my experience, it somehow doesnt work though so i put the safe flag to False and do my own check. You can just take len(your_session.tradePile()) and verify that it is not full.

@totti240282
Copy link

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants