encode_cards_tool
Encodes a hidden card's identity into the sequence of four visible cards by reordering a five-card set using Chico's method.
Instructions
本函数实现魔术师 Chico 的操作:将五张牌重新排序, 并在排序过程中将第五张牌的信息编码在前四张的排序信息中
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | Yes | 该参数接受 5 张牌,形如 ♥K ♣3 ♠7 ♦5 ♠A 每张牌由【花色】和【数字】组成: - 可选的花色: - ♠ (黑桃, Spades) - ♥ (红心, Hearts) - ♦ (方块/方片, Diamonds) - ♣ (梅花, Clubs) - 可选的数字: A 2 3 4 5 6 7 8 9 10 J Q K 注意:请将花色和数字标准化后再作为参数传入 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |