War - Puzzle Discussion

It’s difficult to tell. If you want, you may send me your code via private message and I can take a look.

Thanks!

Here is my code :slight_smile:
[Mod edit: Please avoid posting codes on the forum.]

In case anyone fails Validator 7 (“Long game”), the following custom case may help you debug your code:

Input

26
QD
9D
5S
6C
2D
8D
JH
AH
10H
7S
2H
8C
4S
QH
8H
7H
7D
QC
5H
6D
10C
5C
JC
3S
KD
KC
26
QS
6S
3H
9S
2C
3C
9C
8S
10S
KH
AD
4D
4C
6H
4H
JS
7C
AC
KS
2S
10D
AS
5D
3D
9H
JD

Output

1 2