Modern Apps git

← Modern-Apps.git

solitaire: ship solver-proven seed tables for all configs (#owner-report)

Commit
a44bcff21b1671f06c45116d281f5e747e6496da
Author
Vayun Mathur <[email protected]>
When
2026-11-12 21:49 UTC (23 days ago)
Parents
9156d6f
Adds src/main/assets/solvable_deals.bin: 14 tables (every config the
New Game dialog can produce), 10,000 seeds each, every one solved to a
full win by domain/DealProofs at each solver's DEFAULT_BUDGET. Nothing
uses it yet; the next commit switches new games onto it.

Generated from the solver commit (0ee78e4e9; built as e46dbbffb, the
same tree) in the toolchain container under the heavy-build lock, 64
threads, in 24 min wall:

  MEM_CAP=60g GEXCL="" ~/release-opt2/gbuild.sh soldeal-gen \
    ~/code/Modern-Apps feat/solitaire-solvable \
    ":games:solitaire:testDevUnitTest --tests \
     com.vayunmathur.games.solitaire.domain.SolvableSeedTableGenerator \
     -PsolitaireSeedGen=/work/out -PsolitaireSeedGenThreads=64 \
     -PsolitaireSeedGenHeap=44g"

(plain form: ./gradlew :games:solitaire:testDevUnitTest --tests
'com.vayunmathur.games.solitaire.domain.SolvableSeedTableGenerator'
-PsolitaireSeedGen=$PWD/analysis/soldeal -PsolitaireSeedGenThreads=64,
then copy solvable_deals.bin here). Output is deterministic for a given
solver and budget, whatever the thread count.

Each table is the first 10,000 proven seeds counting up from 1.
Solvable rates seen while filling it (proven / scanned; "unsolvable" is
a completed search, so for Pyramid it is exact; "unknown" ran out of
budget):

  config                      scanned  solved  unsolvable  unknown
  Klondike draw 1, unlimited    11642  85.90%      1.43%    12.68%
  Klondike draw 1, 3 passes     12708  78.69%      1.83%    19.48%
  Klondike draw 1, 2 passes     16300  61.35%      4.96%    33.69%
  Klondike draw 1, 1 pass       52780  18.95%     51.41%    29.64%
  Klondike draw 3, unlimited    12685  78.83%     10.87%    10.30%
  Klondike draw 3, 3 passes     16817  59.46%     31.30%     9.23%
  Klondike draw 3, 2 passes     32699  30.58%     64.42%     5.00%
  Klondike draw 3, 1 pass      387700   2.58%     97.26%     0.16%
  FreeCell                      10012  99.88%      0.00%     0.12%
  Pyramid relaxed               12101  82.64%      9.45%     7.91%
  Pyramid single pass           77877  12.84%     87.07%     0.09%
  Spider 1 suit                 11965  83.58%        -      16.42%
  Spider 2 suits                12071  82.84%        -      17.16%
  Spider 4 suits                14081  71.02%        -      28.98%

The solved column is a lower bound on true solvability: unknown deals
may still be winnable, and Klondike/Spider prune moves for speed. The
tables only ever contain proven wins. Because the solver must find
the win within its budget, the hardest-to-find wins (notably Spider
4-suit and Klondike 1-2 passes) are under-represented; every dealt
game is still winnable.

Size: 140,721 bytes raw (varint deltas, ~1 byte per seed), 45 KB
deflated in the APK.

Diff

games/solitaire/src/main/assets/solvable_deals.bin
diff --git a/games/solitaire/src/main/assets/solvable_deals.bin b/games/solitaire/src/main/assets/solvable_deals.binnew file mode 100644index 0000000000..5e5c5dac64--- /dev/null+++ b/games/solitaire/src/main/assets/solvable_deals.bin@@ -0,0 +1,959 @@+SOL1KLONDIKE__DRAW_ONE_HARD�N++
+		+		
				+	
	'+		
+
+
+			
+
		
+
	+++
++			++				+	+#

++				++	!		+	
		+		
	+	+++++++	+	+	++	+	
+				+	++	
++		

+		+		
+				++	+(+	+	+++		
+	+	
	
		+
	++	+	
			++++		+			+
	+		#+	
+
	
	!							+		
		+
							$		 ++		++	++	++	+	++
	
	
+	++	
	
	+
	+
+
				$++++	+		+	
	+#	
	+++	+		++

++	++	+++
		+			
			+	+	+			
	#+		++		++	+	+
++	 	+				++++	
												++%	+	
			++"	
		
+			+	++	


+
	+
	#
++
	+	++++
+		
+++++			++	
	+		+
++
	

			!+
	
	+			+
			

+		+	
	
	

		
	+		+
	!		
	
	

		++						

+++		+
	++	+		 +
	

	+		+			+	

	+			+++
	+

+
	++	++		+				$	
		+
+					
		
+	+	+		+++		++		
		++		

	++
	
++++ +
	
	++	+				+			++			+

	+
+++		

++++			+	+++3+++
++		+&
		++			+	+
++	+	
+		+
+	+++		
	++++++
	+

		
+	+		+
+		+	++
+			+		+!	
		
					+	
	+++++				++
	+	KLONDIKE__DRAW_ONE_TWO_PASSES�N			+KLONDIKE__DRAW_ONE_REGULAR�NKLONDIKE__DRAW_ONE_RELAXED�NKLONDIKE__DRAW_THREE_HARD�N4Wt*W-.
%	'G_"P+�pH!.K�A&?;G	 �O+@+57Tet	b"9Z4&p1XZ2BX'9UL6
C�?B	'	782!%"+)#0rp
$/5k	<.+)�5
4�%G'\]'[$*%;�
D�#	 3x	*@-�940#3	0 	+736E^	",�C
;H)[9�/�aV)0$$&OEv:	1:LH�p		Jy"
@4	00�,W%$	f8@t'T![$4G+3#-�EN{%W"y_+ c_+/KN)
Z	2+*!`0D/�''	#3P"��3�[t,*=3E#@@#2+0.+')�p=GB
1{m#2,,HJ�P9DRIL)(�8,'%^-T/%+5(1E$)!2-�+M6B	,+2
�6
0]M(4c0x�771 #Q
	J)*LV#*<0Z�ML,�(cgIL� +@6{	f>\<6W&	!0	�7 1=�:	8B(@\$5/T6�#qHa'9W��<V#L"Z<Xu#6-W�P&
^	!+9@8)+�	#+&$
95]#Z+Io"S+/| '		' $4.(+K@3P*!,2�-6(?�3WX�'4D*L9?%ZW2<2<#A X !1**Q57R.�+0!h(!(?G�05*4;GB)�/y#
f+,#41'+;\*y9G$"&9:M">&+g"J!I2Au-+D+.9P"�2�3}(R
%G%c=i��Y),+3 E4're7;*)3438"{p8�!'&h3,F�-,0"=%	,26/��)(U?2#]&62��R6wE	7;�'F( �",%�#)1`
D0TES	E
%!JS'
&
�
(O&oVt	%U�F$�`	Xd3+U. KT'7!$#*  S{{?�AC1?. +Ew�v<1$%X#-&Nv�&}+U 5#g3�]
7+�=8
,{O	o6U@�+T)N2+S\g,	%:8%�A
!n	&,/O<	P=L+��	F4zp+ 5�7THJY)(Q;,I`�PO[V'7)&7>YM+iGdu##		 i+M.J9+jw'R�c	! C
=6		D!#0!:2/O	3,0A)�](Ci5056+F 	$�A1A�%u2Q
�!378SSK->|?(	 y{NU=5k =<1~:R!"1P/sC* b)M2%jX.W#*n+4P)L2�+6	
/=,t4}
:;�p	R0,#M#2!BH=h$�?.j&#[U=
R&=?'9Ix	m;(*+9d/i*	"1'6:E-�	)F(+
=#w6	e^U7&	 #F+
G?#M7D	1+32~+�$+-�1EQ_	-(3++1%#
&D*`G/
+""� F3* ,�:4A!	7	,$o
�6fl	hSV&A?%0'*B++4DX73�.�-R+++%5++Y+/(y3$:+A+r+l	:�+�:%
`�*YC#WQ<3&	5/95%(O�^#",HIp8(�^H+ "%�r3
$ n5QA�;T$	9	+[
!#6?&5X'	D	�+�.@1m�0Ep9�<',@F+�( "AIg_:<%125Te5!	!A$W#?/	"0"
@;B#L7O)�B!\"'	4A}j��?' #=+7(>x'
($'0�
%A��&18
\T*24?�6(MT*rG/.{
6'(+fM$Q#54>tH3AL1>$
�+�$		3'|3]+%a3�T- 0+
gc'>4J+mU$#E`";g 5"T9A/-CU	&�	p</FR�+#WM!O*S�!&Al+
$*$	
iEM.*(+7	;^+('I~9NJ$(*	+oQVe$i#z�=

k�2,@	:�o(']
y#C:+Z-!X/*/>2/�#"Y'%)+	^Rg15k=
=+S18< %1.$;a3G"brt 
9
	�En[rS0z'	6(j\8)+SR> GL	)':�H9#n")C+YiiFa*"?KWS
�	5$�SN&:	+8iAlF.'G
$	7.0+F1.0>('$s+		"`+J@%�H(w-4@9@(AM[+,&
$
6*=@6#5�,Mw�+A,+1,	+'$_�~8	2<%. 3 	3iq,
+FY! <2%.'h?l)3BH0-,	'	s#ChCI5-F+K
Kp/+;W<	,N�MO0J6C�D		6
'+%(75.�H;D�--SW-bG	\"/�I;?vi1)6%*>+,"'�5(H�s,?'"X3[^-0
0!+#T$F%8@P!5,#U ��Iq3f%$SR*(9,s�/��3(;�&k@)#6DES[X+1�"1	 oPS/+)
IF
c�
	�6X*S"+='@+A	J$)J$+; 'a+�_'D4f-,M/	78'hemV ,:7+CUC@\d"kN/7&=;!'
JX:	�+M"PK
n5=+=&d)rUg+
/?!@�
?	+",$5+#�a?+�.>d;E7=2F/1/+J
#SC'+m06
+M �.D $8
:	%E0r+l9OJ5+#�6.
�)9i0(8P	C
)'s+Mi	Z	Q�$SE2	A<%7%+/�:N+/#�- +IC�$)'\-*,+le,	1+2$kG$+2LF;
MT*$%`<>�jA	+g	+EQK 3
D>!%4�&6	&Ly9.>"c-"	:<U-u
	�,Pf&S3n�*HMw\wfk K:,�	5?hH-7q:?[T
=7-8,9
:>n�Y#@1:,B	- )4+O -)M>)73uCO@L��+� �;7M M +
-Z*(&>)+
Z-3R
;(	$)&4#H:#jX!-"N!?)OX�:m,5�,m
gA(?H'&'w1G+'m6J*(0
	d$>+<+c,d`.M=Q=	)"_	TLA 6:o&	Q:1#���b8,+TRW-C�#�J!O2M&($@684:ICDJZe3�	3IN"	)&5
Dw19K	:
D�BAA3Bj+/)>	O(�>D2-u+!-�^%+M"=Z[C+="	0�D,		(4-E-cF;Q��" (C;�SE?8�j6d;6AB4"}Q,0/+H#+	87!D1	6-Q!400	�6B�80	�4c_�(S22$/9+_E$a=P&q/36*0<:#@75$)R9.%+E9K;
=>S�S`�DSe�$W�,++	0	+LC
M4#
UAZ5%+L89�.\D%5+ K?�55	T#J#1:+#�i-m+> =.G�K<"G?%+a0ejA+-:�2_kI#9J�yR35I+"O{+#h?!$#0+'C&9uo:0x+.++g4
8+"XF~ 2aN>!
E(+'
"f:I
Z=8J;^7&*z:�XuZ E	)�{.#^�B��= 0+70"12)�#>>�2&&"U�/4!Ab^"zor<+*H)"2GW/z'K6*Mf$q6&*tB!+7?C*cF
4/$Z$3Y&J]��$ O*F*?j�8Vm�`?|$"r`��$B+�+-	H�#R
�3g%>+$,-k90C-5!8bsF%-y(l@0?	/L2+o9 YeP
iHE)2S":)Q+�C/� ).951% S&	I+5t.Zc�(2�-�*@;+.1Uu�@J*C)(�4<p>I2�).=�M"P,E'Ak(�5	% k('C#(#59$#	
L@[2%!T$ #7(	QO6I?S" :A5	2*	V=gP9"9(O-	\(#Z:!5(
+63R$$}e(4!O9S6>L	, L4WdI�4."|+?*l^L	U3!FFQ�O9/.�<k.8&�"8z�CKF)ar+1@.#
�=q"K#>)".CJ&
%I1z
V<7 �'4<k.'4H,4 1M>fP+#,309K=<
A�D+^,4O#0�	f;:>,P=8*|2" 'F8;�-K�=G2�,++(1�+/6J�(C00UVY%A?1"Dw�z
D[>#K?	{,)M7 "d/��48I)v]�+'j7	+?;&�cm9>�	)J3!�/_>J\+^LI
"%&@N30$!5d�'	$Y0C&j+	B J<$.�H1i 
WI+H~j(0/K�V<"N
�d!5Y&E-/	OC$
+$<?2;"++�G<
�He*9$5�	5#�->��L
,+�lT'I+&\
Q=/+d�%\-X7+e9R+e))"g#66%'.$
K6	.&<R2++K	K!4$B1	,B! (	;�	=
	�Q-@�"9>-]+<<	077%8rP>W9!w #-�g�l!)J>.Ro.F=M7 ?�)-JG2;3�
.+�$2$(=i$3JHF-")	/�	'A			D"M.r�:�K912"
RgU,J0\>�;B%+8I4�
2�)1"	"0o\"t$	D++ 6S<m%	
�
#
lU 
+:r4ZN�P&�I?zT' 5L+	5
_lj=	12�[F	HY7Q C	mB@S-?GUA53BC)x MOFKB W#S0=�,'
2!S^	p33t5*ehn&P]),0+k-:_
%Q�2*-+
n Q)Aw2%:+G([)';0H
	
A&dp9�2{\4++!))�Xa�3^�O�>.=)Gqi�7$O�*6&z
$(+$@RDG\u!nXn2++Ch!SAJ]+3+8R+(%,3=?N,Y 
e8G$0P0)j!B-�0 $'	2:"^c$L-,+?*z-�6	S�/=+	e: >	TP0L	�
&V
\$"@
S&#
�%s%u 	+,I-KFc0?yH,	a]LA. INNA=+
63a!M
	;�T66S0� +�</	,%;^4NC4*B.&1G8o3*T
	e1k&"LH	\$:!Qq!�3'$!p*<F	1+>*+!!"�*0
X/D$�'&	+(l,T+^)�K
=;26?1#)T6d +!G.=a8+++(+�l8Q<1R	E&7&,9';a1
?f:r=?M?`>6$ w% I~6
<?*,�	8	 P<zOc5M4+>1%S[+"C0++ /	
QAG%_6E/2+-3(+)-C(a49
%--+%>	"a.+A	M>*	}1{W+/*vO
);;'�hB=z�z
J&�52-2	,/	I	<s /$<J'H+RX$p	+
&)H.2!+C	2"
9}�
 +++A�K``%�)!�Ti$/\Y":u ,$4�2.=O,6+$	+D:'	<R1Y&_�+	C	0�6J/+Hfh.$3
 	*(qgs>X1	%DA6B	/*0*-p$(	::}5A)^	
?)@
EdQ.u�::�X!(.&+
6Z
x�<�
W&a)..e
#1
�	Axt-6
W	-�4PF/�.M't(.*4
++@&'@C,-F*1d:lR	$:)Q&9[++/�8�O?O
9%GA9=0�94+3Z$'_)+/KF- =Z	N
2X$2
'+�c#���.U)w-n
9/�7++1 &V!4\$<Z N6PVF	?2*`1-�9�O&�(#+*C�)-1�+9#Yi:5l�B#++4\59Q;�	 L
�:	.
=U}"CE
o
a��[rOB/):W(	1zh6+*U�	o	O;B�"b.+
A�H+!+-� ���d', 	�Z@Q4H?�$ 3:"+3LNMF"O.
b^'[t-N+)+@1-&��(s
O[-	�?&F? Lg%9-$�LZ(A6858(_&Vt<Y
.?6_#>
G+#�00q%+	bJ(#W=U~*'
-
	2>k+c!3o+LK.S-${o	)D8;9.	H"7�b|			+^\*�g�/ q#@�j!#	"Fv50
 :)%?\979[s8#3):/F0,T#@$=/*A"75#X+
>
2/8:		+�v#/	'<Q51$%� 9A[�#.#bDY?  >1M:XC
R/C�87�9m!!F-E=+	)+�/SJ})# q!yC!9<A=!X!i6e+(�%	)!	�+!(+".�
"R -+Z�(+O+�2 �";6")%�1Y7#�+E.3]?T8* m*?|+8+>01S;87)�8T&'2Yn�b
)!:>T	B4�"	)4!Q++@bB��.E	�F
 (G01@25R<q 
"|*&B
5w2
�?)	3-*9+2,
&	8
x1=<!�!',>6E*�?�,"�	]g(%4#W/@\/KLONDIKE__DRAW_THREE_TWO_PASSES�N+	+	
	++
		+					+			++			+++
+++
				+	++			
	++	+	++		+	
+		
++	++	+					
	+		+++		++	
+				

	
	+	

			
					++		+	+	++	+	
	+	++			+	++		+		

				
								
			++
		+

				+
+					+	
++
			+	
+	+	+
	
					
		
			+		+			
+		
			+							+		+			+	
						+
					+		+				+	++	+	
			++		+	+++			+	+
+
	+	+
+

	++			+			+		+	+	+		++	++	KLONDIKE__DRAW_THREE_REGULAR�N							KLONDIKE__DRAW_THREE_RELAXED�NPYRAMID__ORIGINAL�N	
+



		#+	+		
	+		
++
	!	++	+
	
++	+++
	
	+
				

+		+	
*+
'+-	
	!++	+
					+

	++	
						++	
++*!	+++ 	*			

+
++	"+
+
		+	+	+++	+
++++			+	+	+@++			++
			
 ++
(
	
	$		
+ "+!

	

)		#++

&+	+	+
	

5	+		+	+	++*	++	+	
+	+			
		+

!		
+		+++
+
	++	
++ +		+++		++	+
+	+1	+'!		+	++
	 +
+		+
	
)%	
+	
		+"+			
"
+)	+		+
	"	

+	+	
++

	+		++	,

+

			++	
	
++		 
	
+1+++			+
		
(+


+	
	,+++!		+	+			+

	%	+	+	+++	+		"+++	
"+

		+	+
 +		
		

++.	+		!+
	++



++!++	+++ 	+	
+
	+/+	!++"	+				

+
+#+		

	++		+&	#
(						
++	+++		+		
+
++*	+		+ 	
	 	+
	+	+
" 			++	+++	+,
++	0

			"
 		+
+	+++	+	+	#	"		++
	+
		
	

		
	+	+		++	++
	+"	
	+


		++5++		#	
!
+
	
,	
	++-


+
	
+++++
+++	 ++	

	+

#
+		
++
++	+++	#	++

+

	
++	+	+	
(	++++		

 +	
	
				+	
	++	+				&			+	+
!
+
	+	+
		+		
	+			+++$			

+++++
	
	+
		
+	+				*

+'$
	
	
	+	+	

	

	+.+$+"		+
	
		
+				
++	
	
	+				
&	
+	
		+
			!	+	+
		
+++		
	)

	%	

+	+
	(	

+
+
+	

++	+
		+		++

	
+
++++	+++
+	*
		
+	%
+		*		
+

+++	
	
	%
$
'+
+		
					+
,+	"+			
		++	
		'
+++	+++

+

		$					+	"+++				
!
				++	+
	++	
*(+			
+
+	+		+++	+ 	
	+!#
	
+		++(+
	+	+	
	+		!++	

	+		8
+++		++	+5	+		5+		%	

		#		++		++	+		0
	+	+++

	
++			
	
		PYRAMID__RELAXED�NFREECELL__STANDARD�N
SPIDER__1SUIT�N
SPIDER__2SUIT�N

Diff truncated.