> For the complete documentation index, see [llms.txt](https://www.pythonclassroom.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pythonclassroom.com/python-curriculum-map/pedagogy/activities/cards/sorting-cards.md).

# Sorting Cards

Students should be placed in groups of three and given a deck of cards. Explain to students that they will be developing a strategy to place the cards in order A-K by suit. All the hearts should be in order, all the diamonds, all the spades and all the clubs. It does not matter which suit they place first in the deck, but all the cards in that suit must be in order. The goal is to complete this as quickly as possible with their group members.

1. All students should be given a shuffled deck and be told the goal.&#x20;
2. Clarify any questions about suit, make sure the students see an example of what the cards look like in order.&#x20;
3. Give students five minutes to practice and develop their strategy in their groups.
4. After five minutes, make sure each group shuffles a card deck for another group to ensure that the decks are shuffled
5. To be finished, the students must order their deck, place the deck in a neat pile face down on the table, and all members must place their hands above their heads to indicate they are finished and not touching their cards
6. Go around to each group in the order they finished to see if their cards are in order, if there is a mistake they are disqualified.
7. Allow students another three minutes to see if they can improve their algorithm and repeat steps 5-6


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.pythonclassroom.com/python-curriculum-map/pedagogy/activities/cards/sorting-cards.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
