Skip to content

Container

The Container behavior is present on Container objects such as Bags, Stacks and Decks.


Function Summary

Function Name Return Description  
search( player_color, max_card) Activate search window for player_color, optionally limited to top N cards

Function Details

Show the Search window for the container to player_color. If you specify max_cards then the search will be limited to that many cards from the top of the deck.

search(player_color, max_cards)

  • player_color: The player color to show the Search window to.
  • max_cards: Optional maximum number of cards to show.
deck.Container.search("Teal", 3)