Stockfish version with hash saving capability

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfish version with hash saving capability

Post by zullil »

peter wrote: But I'm rather sure too, asmFish has a problem as for communication with some GUIs and for it's Save Hash- command.

There aren't any valuable entries stored by "Save" nor reloaded by "Reload", even if the file is stored and shown in Win Explorer in chosen bigness, and Shredder13- GUI even does count down the amount of stored and reloaded data.

Yet time to solution for tactical positions with difficult to find solution is nowhat better after Save and Reload.


AsmFish doesn't store valuable hash- entries by save and reload, not in Fritz14 nor in Shredder13, about command- line- engine I can't tell , didn't try that neither
Hi Peter,

I noted problems with asmFish too, and I wasn't using a GUI. What I found particularly odd was this: I loaded a saved hash table file, and then immediately saved the hash to a file with another name. I then compared the files using the command-line cmp utility. They were different.

I reported this issue at the asmFish github site.

Louis
duncan
Posts: 12038
Joined: Mon Jul 07, 2008 10:50 pm

Re: Stockfish version with hash saving capability

Post by duncan »

this is not related to hash but I was just wondering about this position . I gave stockfish the first 2 moves and it decides it is a mate in 11.


[d]4k3/2pppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQ - 0 1

[pgn]
[Event "Computer chess game"]
[Site "PC"]
[Date "2017.07.31"]
[Round "?"]
[White "Stockfish_x32_modern_170724_savehash"]
[Black "Stockfish_x32_modern_170724_savehash"]
[Result "1-0"]
[BlackElo "1000"]
[Time "18:58:41"]
[WhiteElo "1000"]
[TimeControl "0+2"]
[SetUp "1"]
[FEN "4k3/2pppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQ - 0 1"]
[Termination "normal"]
[PlyCount "21"]
[WhiteType "program"]
[BlackType "program"]

1. d4 f6 {(f7-f6 Qd1-d3) -40.18/14 2} 2. Qd3 h6 {(h7-h6 Qd3-c4) -41.56/17}
3. Qc4 {(Qd3-c4 e7-e6 Qc4xc7 Ke8-e7 e2-e4 f6-f5 Ng1-f3 Ke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qe7-e6 Kg6-h7 Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) -M4/65 1} 8. Qe6
{(Qe7-e6 Kg6-h7 Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) +M4/72 2} h4 {(h5-h4
Nd5-e7+ Kg6-h5 g2-g4+ h4xg3/ep h2xg3+) -M3/127 0} 9. Ne7+ {(Nd5-e7+ Kg6-h5
g2-g4+ h4xg3/ep h2xg3+) +M3/127 0} Kh5 {(Kg6-h5 g2-g4+ h4xg3/ep h2xg3+)
-M2/127 0} 10. g4+ {(g2-g4+ h4xg3/ep h2xg3+) +M2/127 0} hxg3 {(h4xg3/ep
h2xg3+) -M1/127 0} 11. hxg3# {(h2xg3+) +M1/127 0} 1-0

[/pgn]

however on its own after a 52 ply search all it can find is a mate in 12. can perhaps someone explain this ?


[pgn]
[Event "Computer chess game"]
[Site "PC"]
[Date "2017.08.03"]
[Round "?"]
[White "user"]
[Black "Stockfish_x32_modern_170724_savehash"]
[Result "*"]
[BlackElo "1000"]
[Time "11:56:00"]
[WhiteElo "2400"]
[TimeControl "100/60:300"]
[SetUp "1"]
[FEN "4k3/2pppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQ - 0 1"]
[Termination "unterminated"]
[PlyCount "2"]
[WhiteType "human"]
[BlackType "program"]




a2-a4 h7-h5 a4-a5 g7-g5 a5-a6 g5-g4 a6-a7 e7-e6 a7-a8Q+ Ke8-e7 Qa8-h8 g4-g3 e2-e4 g3xf2+ Ke1xf2 Ke7-d6 Qh8-f8+ Kd6-e5 d2-d4+ Ke5xe4 Qd1-d3+ Ke4-d5 Qf8-c5+

[/pgn]





Stockfish_x32_modern_170724_savehash:
1/1 00:00 20 10k +38.12 Nb1-c3
2/2 00:00 73 37k +37.99 Nb1-c3 Ke8-f8
3/3 00:00 170 57k +38.18 Nb1-c3 Ke8-f8 Nc3-d5
4/4 00:00 1k 255k +38.18 Ng1-f3 f7-f6 Nb1-c3 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d7 Bf1-d3 Kd7-d8 Qg7-h8+ Kd8-c7
16/26 00:03 4,530k 1,486k +39.95 e2-e3 g7-g6 Qd1-g4 c7-c6 Bf1-d3 c6-c5 Bd3-b5 f7-f5 Qg4-h4 h7-h5 Ng1-f3 Ke8-d8 Nf3-e5 Kd8-c7 Qh4xe7 Kc7-b6 Qe7xd7
17/22+ 00:03 4,816k 1,492k +40.02 e2-e3
17/22+ 00:03 5,207k 1,500k +40.09 e2-e3
17/25+ 00:05 8,354k 1,533k +40.56 e2-e3
17/25+ 00:06 10,566k 1,538k +40.85 a2-a4
17/25+ 00:07 11,243k 1,541k +47.81 a2-a4
17/25 00:10 15,449k 1,516k +48.30 a2-a4 e7-e6 a4-a5 Ke8-e7 a5-a6 h7-h5 a6-a7 f7-f5 a7-a8Q g7-g5 Qa8-c8 g5-g4 Ra1-a7 h5-h4 Ra7xc7 Ke7-f6 Qc8xd7
18/21+ 00:10 15,770k 1,516k +48.37 a2-a4
18/22+ 00:10 16,035k 1,515k +48.45 a2-a4
18/26+ 00:16 23,896k 1,487k +49.20 a2-a4
18/26 00:19 28,562k 1,468k +49.33 a2-a4 g7-g5 a4-a5 d7-d6 a5-a6 f7-f5 a6-a7 Ke8-f7 a7-a8Q f5-f4 Qa8-c8 h7-h6 Ra1-a7 d6-d5 Qc8-f5+ Kf7-g7 Ra7xc7 Kg7-h8 Qf5-e5+ Kh8-h7 Rc7xe7+ Kh7-g6 Qe5xd5
19/25+ 00:20 29,703k 1,466k +49.41 a2-a4
19/28+ 00:21 30,811k 1,465k +49.48 a2-a4
19/28+ 00:25 37,639k 1,449k +49.74 a2-a4
19/28 00:28 40,646k 1,442k +49.75 a2-a4 Ke8-f8 a4-a5 e7-e6 a5-a6 Kf8-e7 a6-a7 h7-h5 a7-a8Q h5-h4 Qa8-c8 h4-h3 Ng1xh3 g7-g6 Qc8xc7 f7-f5 Ra1-a7 Ke7-f6 Qc7-d8+ Kf6-e5
20/25+ 00:29 42,904k 1,436k +49.82 a2-a4
20/26+ 00:31 44,957k 1,431k +49.89 a2-a4
20/26+ 00:45 64,676k 1,408k +50.64 a2-a4
20/28 00:50 70,636k 1,402k +50.70 a2-a4 f7-f6 a4-a5 Ke8-f7 a5-a6 h7-h5 a6-a7 g7-g5 a7-a8Q g5-g4 Qa8-d5+ Kf7-g7 Qd5xd7 Kg7-f7 Qd7xc7 h5-h4 Qc7-c4+ Kf7-g7 Qc4xg4+ Kg7-f7 Ng1-f3 e7-e6 Ra1-a7+ Kf7-f8 Qg4-g7+ Kf8-e8 Qg7xf6
21/30+ 00:52 73,174k 1,397k +50.78 a2-a4
21/30+ 00:53 74,516k 1,394k +50.85 a2-a4
21/32+ 01:04 88,976k 1,382k +81.39 a2-a4
21/32 01:05 90,524k 1,378k +85.96 a2-a4 g7-g6 a4-a5 f7-f5 a5-a6 Ke8-f7 a6-a7 h7-h5 a7-a8Q f5-f4 Qa8-d5+ Kf7-f6 Qd5xd7 Kf6-f7 Qd7xc7 g6-g5 Qc7-e5 h5-h4 Qe5-f5+ Kf7-g7 Ra1-a7 f4-f3 Ng1xf3
22/33+ 01:07 92,310k 1,373k +86.04 a2-a4
22/36+ 01:07 93,071k 1,372k +86.11 a2-a4
22/36+ 01:14 101,476k 1,359k +124.72 a2-a4
22/38 01:21 110,351k 1,350k +M17 a2-a4 g7-g6 a4-a5 e7-e6 a5-a6 Ke8-e7 a6-a7 h7-h5 a7-a8Q h5-h4 Qa8-c8 h4-h3 Ng1xh3 Ke7-f6 Qc8xd7 Kf6-g7 Qd7xc7 g6-g5 Nh3xg5 Kg7-h6 Qc7xf7 e6-e5 Qf7-e6+ Kh6-g7 Qe6xe5+ Kg7-h6
23/30- 01:38 130,892k 1,332k +91.21 a2-a4 e7-e6
23/30+ 01:41 135,298k 1,329k +M17 a2-a4
23/32 01:51 147,420k 1,324k +M14 a2-a4 g7-g5 a4-a5 f7-f5 a5-a6 Ke8-f7 a6-a7 d7-d5 a7-a8Q d5-d4 Qa8-d5+ Kf7-f6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12 a2-a4 h7-h5 a4-a5 g7-g5 a5-a6 g5-g4 a6-a7 e7-e6 a7-a8Q+ Ke8-e7 Qa8-h8 g4-g3 e2-e4 g3xf2+ Ke1xf2 Ke7-d6 Qh8-f8+ Kd6-e5 d2-d4+ Ke5xe4 Qd1-d3+ Ke4-d5 Qf8-c5+
50/24 6:44:51 33,542,538k 1,381k +M12 a2-a4 h7-h5 a4-a5 g7-g5 a5-a6 g5-g4 a6-a7 e7-e6 a7-a8Q+ Ke8-e7 Qa8-h8 g4-g3 e2-e4 g3xf2+ Ke1xf2 Ke7-d6 Qh8-f8+ Kd6-e5 d2-d4+ Ke5xe4 Qd1-d3+ Ke4-d5 Qf8-c5+
51/24 7:58:45 39,719,138k 1,383k +M12 a2-a4 h7-h5 a4-a5 g7-g5 a5-a6 g5-g4 a6-a7 e7-e6 a7-a8Q+ Ke8-e7 Qa8-h8 g4-g3 e2-e4 g3xf2+ Ke1xf2 Ke7-d6 Qh8-f8+ Kd6-e5 d2-d4+ Ke5xe4 Qd1-d3+ Ke4-d5 Qf8-c5+
52/24 9:03:16 45,073,635k 1,383k +M12 a2-a4 h7-h5 a4-a5 g7-g5 a5-a6 g5-g4 a6-a7 e7-e6 a7-a8Q+ Ke8-e7 Qa8-h8 g4-g3 e2-e4 g3xf2+ Ke1xf2 Ke7-d6 Qh8-f8+ Kd6-e5 d2-d4+ Ke5xe4 Qd1-d3+ Ke4-d5 Qf8-c5+
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfish version with hash saving capability

Post by zullil »

duncan wrote:this is not related to hash but I was just wondering about this position . I gave stockfish the first 2 moves and it decides it is a mate in 11.


[d]4k3/2pppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQ - 0 1

[pgn]
[Event "Computer chess game"]
[Site "PC"]
[Date "2017.07.31"]
[Round "?"]
[White "Stockfish_x32_modern_170724_savehash"]
[Black "Stockfish_x32_modern_170724_savehash"]
[Result "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 g7-g5 Qc7xe7+ Kf7-g6 Qe7xf6+ Kg6-h7 Qf6-f7+ Kh7-h8
Nd5-f6 h6-h5 Qf7-h7+) +M6/32 1} h5 {(h6-h5 Qc7xe7+ Kf7-g6 Qe7-e6 Kg6-h7
Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) -M5/36 2} 7. Qxe7+ {(Qc7xe7+ Kf7-g6
Qe7-e6 Kg6-h7 Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) +M5/39 2} Kg6 {(Kf7-g6
Qe7-e6 Kg6-h7 Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) -M4/65 1} 8. Qe6
{(Qe7-e6 Kg6-h7 Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) +M4/72 2} h4 {(h5-h4
Nd5-e7+ Kg6-h5 g2-g4+ h4xg3/ep h2xg3+) -M3/127 0} 9. Ne7+ {(Nd5-e7+ Kg6-h5
g2-g4+ h4xg3/ep h2xg3+) +M3/127 0} Kh5 {(Kg6-h5 g2-g4+ h4xg3/ep h2xg3+)
-M2/127 0} 10. g4+ {(g2-g4+ h4xg3/ep h2xg3+) +M2/127 0} hxg3 {(h4xg3/ep
h2xg3+) -M1/127 0} 11. hxg3# {(h2xg3+) +M1/127 0} 1-0

[/pgn]

however on its own after a 52 ply search all it can find is a mate in 12. can perhaps someone explain this ?

Maybe the position really is mate-in-12 with best play by Black? In other words, perhaps 1... f6 is a "blunder"?

[EDIT] --- No, that's not it. It seems that the initial position is indeed mate-in-11, with 1. d4 being a correct first move.
Last edited by zullil on Thu Aug 03, 2017 1:25 pm, edited 1 time in total.
peter
Posts: 3185
Joined: Sat Feb 16, 2008 7:38 am
Full name: Peter Martan

Re: Stockfish version with hash saving capability

Post by peter »

zullil wrote: I reported this issue at the asmFish github site.
Thanks, Louis
:!:
Peter.
duncan
Posts: 12038
Joined: Mon Jul 07, 2008 10:50 pm

Re: Stockfish version with hash saving capability

Post by duncan »

zullil wrote:
duncan wrote:this is not related to hash but I was just wondering about this position . I gave stockfish the first 2 moves and it decides it is a mate in 11.


[d]4k3/2pppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQ - 0 1

[pgn]
[Event "Computer chess game"]
[Site "PC"]
[Date "2017.07.31"]
[Round "?"]
[White "Stockfish_x32_modern_170724_savehash"]
[Black "Stockfish_x32_modern_170724_savehash"]
[Result "1-0"]
[BlackElo "1000"]
[Time "18:58:41"]
[WhiteElo "1000"]
[TimeControl "0+2"]
[SetUp "1"]
[FEN "4k3/2pppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQ - 0 1"]
[Termination "normal"]
[PlyCount "21"]
[WhiteType "program"]
[BlackType "program"]

1. d4 f6 {(f7-f6 Qd1-d3) -40.18/14 2} 2. Qd3 h6 {(h7-h6 Qd3-c4) -41.56/17}
3. Qc4 {(Qd3-c4 e7-e6 Qc4xc7 Ke8-e7 e2-e4 f6-f5 Ng1-f3 Ke7-f7 Qc7xd7+
Kf7-g8 Qd7xe6+ Kg8-h7 Bf1-c4 f5xe4 Nf3-e5 Kh7-h8 Qe6-g8+) +M9/28 2} d6
{(d7-d6 Qc4xc7 Ke8-f7 Nb1-c3 Kf7-e6 Nc3-d5 g7-g5 Qc7xe7+ Ke6xd5 Qe7-d7
g5-g4 e2-e4+ Kd5xd4 Qd7xd6+ Kd4xe4 Bf1-d3+) -M8/29 2} 4. Qxc7 {(Qc4xc7
Ke8-f7 Nb1-c3 Kf7-e6 Nc3-d5 g7-g5 Qc7xe7+ Ke6xd5 Qe7-d7 g5-g4 e2-e4+ Kd5xd4
Qd7xd6+ Kd4xe4 Bf1-d3+) +M8/29 2} d5 {(d6-d5 Nb1-c3 Ke8-f7 Nc3xd5 g7-g5
Qc7xe7+ Kf7-g6 Qe7xf6+ Kg6-h7 Qf6-f7+ Kh7-h8 Nd5-f6 h6-h5 Qf7-h7+) -M7/30
1} 5. Nc3 {(Nb1-c3 Ke8-f7 Nc3xd5 g7-g5 Qc7xe7+ Kf7-g6 Qe7xf6+ Kg6-h7
Qf6-f7+ Kh7-h8 Nd5-f6 h6-h5 Qf7-h7+) +M7/30 1} Kf7 {(Ke8-f7 Nc3xd5 g7-g5
Qc7xe7+ Kf7-g6 Qe7xf6+ Kg6-h7 Qf6-f7+ Kh7-h8 Nd5-f6 h6-h5 Qf7-h7+) -M6/32
1} 6. Nxd5 {(Nc3xd5 g7-g5 Qc7xe7+ Kf7-g6 Qe7xf6+ Kg6-h7 Qf6-f7+ Kh7-h8
Nd5-f6 h6-h5 Qf7-h7+) +M6/32 1} h5 {(h6-h5 Qc7xe7+ Kf7-g6 Qe7-e6 Kg6-h7
Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) -M5/36 2} 7. Qxe7+ {(Qc7xe7+ Kf7-g6
Qe7-e6 Kg6-h7 Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) +M5/39 2} Kg6 {(Kf7-g6
Qe7-e6 Kg6-h7 Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) -M4/65 1} 8. Qe6
{(Qe7-e6 Kg6-h7 Nd5-e7 g7-g5 Qe6-g8+ Kh7-h6 Ne7-f5+) +M4/72 2} h4 {(h5-h4
Nd5-e7+ Kg6-h5 g2-g4+ h4xg3/ep h2xg3+) -M3/127 0} 9. Ne7+ {(Nd5-e7+ Kg6-h5
g2-g4+ h4xg3/ep h2xg3+) +M3/127 0} Kh5 {(Kg6-h5 g2-g4+ h4xg3/ep h2xg3+)
-M2/127 0} 10. g4+ {(g2-g4+ h4xg3/ep h2xg3+) +M2/127 0} hxg3 {(h4xg3/ep
h2xg3+) -M1/127 0} 11. hxg3# {(h2xg3+) +M1/127 0} 1-0

[/pgn]

however on its own after a 52 ply search all it can find is a mate in 12. can perhaps someone explain this ?

Maybe the position really is mate-in-12 with best play by Black? In other words, perhaps 1... f6 is a "blunder"?

[EDIT] --- No, that's not it. It seems that the initial position is indeed mate-in-11, with 1. d4 being a correct first move.
what makes you say 1. d4 is the correct first move. did you test it?
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfish version with hash saving capability

Post by zullil »

duncan wrote:
what makes you say 1. d4 is the correct first move. did you test it?
I said d4 seems to be *a* correct first move. I tested it briefly. I gave asmFish the position after 1. d4 and a search showed:

Code: Select all

info depth 49 seldepth 21 multipv 1 time 444193 nps 50067169 score mate -10 nodes 22239486440 hashfull 996 tbhits 0 pv h7h6 d1d3 e7e5 d4e5 e8e7 b1c3 f7f6 c1h6 f6e5 c3d5 e7d6 d3g6 d6c5 h6e3 c5d5 e1c1 d5c4 g6a6 c4b4 a2a3
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfish version with hash saving capability

Post by zullil »

duncan wrote:this is not related to hash but I was just wondering about this position . I gave stockfish the first 2 moves and it decides it is a mate in 11.


[d]4k3/2pppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQ - 0 1


however on its own after a 52 ply search all it can find is a mate in 12. can perhaps someone explain this ?
asmFish eventually found mate-in-11 from the original position. But it took a while.

Code: Select all

info depth 54 seldepth 24 multipv 1 time 5491130 nps 50956798 score mate 11 nodes 279810404462 hashfull 999 tbhits 0 pv a2a4 h7h5 d2d4 c7c6 e2e4 g7g6 d4d5 g6g5 d1h5 e8d8 h5f7 c6d5 f1b5 d5e4 f7d5 d8c8 d5d7 c8b8 b5a6 b8a8 d7b7
duncan
Posts: 12038
Joined: Mon Jul 07, 2008 10:50 pm

Re: Stockfish version with hash saving capability

Post by duncan »

zullil wrote:
duncan wrote:this is not related to hash but I was just wondering about this position . I gave stockfish the first 2 moves and it decides it is a mate in 11.


[d]4k3/2pppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQ - 0 1


however on its own after a 52 ply search all it can find is a mate in 12. can perhaps someone explain this ?
asmFish eventually found mate-in-11 from the original position. But it took a while.

Code: Select all

info depth 54 seldepth 24 multipv 1 time 5491130 nps 50956798 score mate 11 nodes 279810404462 hashfull 999 tbhits 0 pv a2a4 h7h5 d2d4 c7c6 e2e4 g7g6 d4d5 g6g5 d1h5 e8d8 h5f7 c6d5 f1b5 d5e4 f7d5 d8c8 d5d7 c8b8 b5a6 b8a8 d7b7
so it needs a 54 ply search. thanks for doing this.

question to daniel jose. I tried to 'educate' the hash by setting it this position

[d]4k3/2pp1ppp/4p3/8/3P4/3Q4/PPP1PPPP/RNB1KBNR b KQ - 0 2 and waiting till it found the mate in 11.

saved the hash and reloaded it. however it still did not find the mate in 11. do you know why this is ?
BeyondCritics
Posts: 396
Joined: Sat May 05, 2012 2:48 pm
Full name: Oliver Roese

Re: Stockfish version with hash saving capability

Post by BeyondCritics »

There is new flag, that forbids stockfish to clear the hash. Did you set it on?
Please always tell, how big your hash file is, this is highly significiant. Make it as big as possible. I use typically sizes in the giga bytes.
A Hash table in a chess program is a probabilistic data structure, that does not promise anything, not even a correct entry. Take this into account.
If you use persistent/sticky hashing, you are required, to only search root positions, which are related somehow. Otherwise you will get into deep trouble in the long run.
Rodolfo Leoni
Posts: 545
Joined: Tue Jun 06, 2017 4:49 pm
Location: Italy

Re: Stockfish version with hash saving capability

Post by Rodolfo Leoni »

BeyondCritics wrote:There is new flag, that forbids stockfish to clear the hash. Did you set it on?
Please always tell, how big your hash file is, this is highly significiant. Make it as big as possible. I use typically sizes in the giga bytes.
A Hash table in a chess program is a probabilistic data structure, that does not promise anything, not even a correct entry. Take this into account.
If you use persistent/sticky hashing, you are required, to only search root positions, which are related somehow. Otherwise you will get into deep trouble in the long run.
Everybody here thinks you can do a better, alternative work. We're waiting for it.
F.S.I. Chess Teacher