I have finished writing the tests with the various UUIDs (15 in total).
If anyone wants to double-check with the little Python programme I found, that would be welcome.
(You can never be too sure of your own abilities.
)
{
"exercise": "beggar-my-neighbour",
"cases": [
{
"uuid": "dca32c31-11ed-49f6-b078-79ab912c1f7b",
"description": "easy card combination",
"property": "findEndGame",
"input": {
"playerA": "--------------------------",
"playerB": "----------AAAAKKKKQQQQJJJJ"
},
"expected": {
"status": "finished",
"cards": 40,
"tricks": 4
}
},
{
"uuid": "1f8488d0-48d3-45ae-b819-59cedad0a5f4",
"description": "easy card combination, inverted decks",
"property": "findEndGame",
"input": {
"playerA": "----------AAAAKKKKQQQQJJJJ",
"playerB": "--------------------------"
},
"expected": {
"status": "finished",
"cards": 40,
"tricks": 4
}
},
{
"uuid": "98878d35-623a-4d05-b81a-7bdc569eb88d",
"description": "mirrored decks",
"property": "findEndGame",
"input": {
"playerA": "-A-A-K-K-Q-Q-J-J----------",
"playerB": "-A-A-K-K-Q-Q-J-J----------"
},
"expected": {
"status": "finished",
"cards": 59,
"tricks": 4
}
},
{
"uuid": "3e0ba597-ca10-484b-87a3-31a7df7d6da3",
"description": "opposite decks",
"property": "findEndGame",
"input": {
"playerA": "-A-A-K-K-Q-Q-J-J----------",
"playerB": "----------J-J-Q-Q-K-K-A-A-"
},
"expected": {
"status": "finished",
"cards": 151,
"tricks": 21
}
},
{
"uuid": "92334ddb-aaa7-47fa-ab36-e928a8a6a67c",
"description": "random decks #1",
"property": "findEndGame",
"input": {
"playerA": "K---J----AK---J-J---------",
"playerB": "--KAQ-A-Q-----Q-K--A-Q-J--"
},
"expected": {
"status": "finished",
"cards": 542,
"tricks": 76
}
},
{
"uuid": "30477523-9651-4860-84a3-e1ac461bb7fa",
"description": "random decks #2",
"property": "findEndGame",
"input": {
"playerA": "-A---QJ-----KA--K---K---K-",
"playerB": "----QJA------JA-Q-JQ------"
},
"expected": {
"status": "finished",
"cards": 327,
"tricks": 42
}
},
{
"uuid": "20967de8-9e94-4e0e-9010-14bc1c157432",
"description": "Kleber 1999",
"property": "findEndGame",
"input": {
"playerA": "---JQ---K-A----A-J-K---QK-",
"playerB": "-J-----------AJQA----K---Q"
},
"expected": {
"status": "finished",
"cards": 5790,
"tricks": 805
}
},
{
"uuid": "9f2fdfe8-27f3-4323-816d-6bce98a9c6f7",
"description": "Collins 2006",
"property": "findEndGame",
"input": {
"playerA": "A-QK------Q----KA-----J---",
"playerB": "-JAK----A--Q----J---QJ--K-"
},
"expected": {
"status": "finished",
"cards": 6913,
"tricks": 960
}
},
{
"uuid": "c90b6f8d-7013-49f3-b5cb-14ea006cca1d",
"description": "Mann and Wu 2007",
"property": "findEndGame",
"input": {
"playerA": "K-KK----K-A-----JAA--Q--J-",
"playerB": "---Q---Q-J-----J------AQ--"
},
"expected": {
"status": "finished",
"cards": 7157,
"tricks": 1007
}
},
{
"uuid": "a3f1fbc5-1d0b-499a-92a5-22932dfc6bc8",
"description": "Nessler 2012",
"property": "findEndGame",
"input": {
"playerA": "----Q------A--K--A-A--QJK-",
"playerB": "-Q--J--J---QK---K----JA---"
},
"expected": {
"status": "finished",
"cards": 7207,
"tricks": 1015
}
},
{
"uuid": "9cefb1ba-e6d1-4ab7-9d8f-76d8e0976d5f",
"description": "Anderson 2013",
"property": "findEndGame",
"input": {
"playerA": "--A-Q--J--J---Q--AJ-K---K-",
"playerB": "-J-------Q------A--A--QKK-"
},
"expected": {
"status": "finished",
"cards": 7225,
"tricks": 1016
}
},
{
"uuid": "d37c0318-5be6-48d0-ab72-a7aaaff86179",
"description": "Rucklidge 2014",
"property": "findEndGame",
"input": {
"playerA": "-J------Q------AAA-----QQ-",
"playerB": "K----JA-----------KQ-K-JJK"
},
"expected": {
"status": "finished",
"cards": 7959,
"tricks": 1122
}
},
{
"uuid": "4305e479-ba87-432f-8a29-cd2bd75d2f05",
"description": "Nessler 2021",
"property": "findEndGame",
"input": {
"playerA": "----K---A--Q-A--JJA------J",
"playerB": "-----KK---------A-JK-Q-Q-Q"
},
"expected": {
"status": "finished",
"cards": 7972,
"tricks": 1106
}
},
{
"uuid": "252f5cc3-b86d-4251-87ce-f920b7a6a559",
"description": "Nessler 2022",
"property": "findEndGame",
"input": {
"playerA": "---AJ--Q---------QAKQJJ-QK",
"playerB": "-----A----KJ-K--------A---"
},
"expected": {
"status": "finished",
"cards": 8344,
"tricks": 1164
}
},
{
"uuid": "b9efcfa4-842f-4542-8112-8389c714d958",
"description": "Casella 2024, first infinite game found",
"property": "findEndGame",
"input": {
"playerA": "---K---Q-KQAJ-----AAJ--J--",
"playerB": "----------Q----KQ-J-----KA"
},
"expected": {
"status": "loop",
"cards": 474,
"tricks": 66
}
}
]
}
What is the next step?