Has anybody figured out how to make Popeye analyze ?

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

Moderator: Ras

Chessqueen
Posts: 5685
Joined: Wed Sep 05, 2018 2:16 am
Location: Moving
Full name: Jorge Picado

Has anybody figured out how to make Popeye analyze ?

Post by Chessqueen »

This is suppose to be one of the best chess engine to analyze chess positions, but I can NOT make it work under Arena GUI. https://sourceforge.net/projects/popeye-chess/
[fen]8/4p1Rp/4pk1P/4p3/1n2P1p1/B2P2p1/3P2P1/K7 w - - 0 1 [/fen]
[size=13White to play and mate, I used Crystal 4.0 and it solved it in seconds, can giraffe solve it?[/size]
FEN: 8/4p1Rp/4pk1P/4p3/1n2P1p1/B2P2p1/3P2P1/K7 w - - 0 1

FEN: 8/4p1Rp/4pk1P/4p3/1n2P1p1/B2P2p1/3P2P1/K7 w - - 0 1

Crystal.4.0.x64.avx2:
NNUE evaluation using nn-ac07bd334b62.nnue enabled
1/1 00:00 295 295k +7.36 Ba3xb4
2/2 00:00 649 649k +8.04 Rg7xg4 Nb4-c2+ Ka1-b2
3/3 00:00 973 973k +7.80 Rg7xg4 Nb4-c2+ Ka1-b2
4/4 00:00 2k 847k +7.88 Rg7xg4 Nb4-c2+ Ka1-a2 Nc2-d4 Rg4xg3
5/5 00:00 2k 1,152k +8.21 Rg7xg4 Nb4-c2+ Ka1-a2 Nc2-d4 Rg4xg3
6/6 00:00 7k 3,357k +8.68 d3-d4 Nb4-c2+ Ka1-b2 Nc2xa3 Kb2xa3 e5xd4
7/7 00:00 9k 2,987k +8.68 d3-d4 Nb4-c2+ Ka1-b2 Nc2xa3 Kb2xa3 e5xd4 Rg7xg4
8/10 00:00 16k 3,987k +8.87 d3-d4 Nb4-c2+ Ka1-b2 Nc2xa3 Kb2xa3 e5xd4 Rg7xg4 Kf6-e5 d2-d3
9/15 00:00 36k 4,450k +8.76 Rg7xg4 Nb4xd3 Rg4xg3 Nd3-f2 Rg3-g7 Nf2xe4 Ba3xe7+ Kf6-f5 g2-g3 Ne4xd2
10/15 00:00 60k 4,262k +8.93 Rg7xg4 Nb4xd3 Rg4xg3 Nd3-f4 Rg3-g7 Nf4-g6 Rg7xh7 Kf6-g5 Ka1-b1 Kg5-f6 Kb1-c2 Kf6-g5 g2-g3 Kg5-g4 Kc2-c3 Kg4xg3
11/27 00:00 673k 4,608k +M9 Ka1-b1 Nb4-d5 Kb1-c1 Nd5-b4 Kc1-d1 Nb4-d5 Kd1-e1 Nd5-b4 Ke1-f1 Nb4-d5 Kf1-g1 Nd5-b4 Kg1-h1 Nb4-d5 Ba3-c5 Nd5-b4 Bc5xe7+
12/17 00:00 674k 4,619k +M9 Ka1-b1 Nb4-d5 Kb1-c1 Nd5-b4 Kc1-d1 Nb4-d5 Kd1-e1 Nd5-b4 Ke1-f1 Nb4-d5 Kf1-g1 Nd5-b4 Kg1-h1 Nb4-d5 Ba3-c5 Nd5-b4 Bc5xe7+
Ferdy
Posts: 4851
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Has anybody figured out how to make Popeye analyze ?

Post by Ferdy »

There are some resources at https://github.com/thomas-maeder/popeye.

Try to do this.
1. Create a file say p.pe with the following content.

Code: Select all

BeginProblem
forsyth     8/4p1Rp/4pk1P/4p3/1s2P1p1/B2P2p1/3P2P1/K7
Stipulation #9
Option      Variation
EndProblem
In the fen, exclude the side to move, the side to move should be white, if black to move it has different Option value, feel free to experiment.
Change N to S and n to s.

2. Open command prompt and run popeye

Code: Select all

PS F:\Chess\Tools\popeye> ./popeye.exe p.pe >m9_output.txt
The output will be in m9_output.txt with the following content.

Code: Select all

Popeye Windows-64Bit vAndernach-2022-4.88 (5030 MB)


+---a---b---c---d---e---f---g---h---+
|                                   |
8   .   .   .   .   .   .   .   .   8
|                                   |
7   .   .   .   .  -P   .   R  -P   7
|                                   |
6   .   .   .   .  -P  -K   .   P   6
|                                   |
5   .   .   .   .  -P   .   .   .   5
|                                   |
4   .  -S   .   .   P   .  -P   .   4
|                                   |
3   B   .   .   P   .   .  -P   .   3
|                                   |
2   .   .   .   P   .   .   P   .   2
|                                   |
1   K   .   .   .   .   .   .   .   1
|                                   |
+---a---b---c---d---e---f---g---h---+
  #9                          8 + 8

   1.Ka1-b1 ! zugzwang.
      1...Sb4-a2
          2.Ba3*e7 #
      1...Sb4-c2
          2.Ba3*e7 #
      1...Sb4*d3
          2.Ba3*e7 #
      1...Sb4-d5
          2.Kb1-c1 threat:
                  3.Ba3-c5 zugzwang.
                      3...Sd5-b4
                          4.Bc5*e7 #
                      3...Sd5-c3
                          4.Bc5*e7 #
                      3...Sd5-e3
                          4.Bc5*e7 #
                      3...Sd5-f4
                          4.Bc5*e7 #
                      3...Sd5-c7
                          4.Bc5*e7 #
                      3...Sd5-b6
                          4.Bc5*e7 #
              2...Sd5-b4
                  3.Kc1-d1 zugzwang.
                      3...Sb4-a2
                          4.Ba3*e7 #
                      3...Sb4-c2
                          4.Ba3*e7 #
                      3...Sb4*d3
                          4.Ba3*e7 #
                      3...Sb4-d5
                          4.Kd1-e1 threat:
                                  5.Ba3-c5 zugzwang.
                                      5...Sd5-b4
                                          6.Bc5*e7 #
                                      5...Sd5-c3
                                          6.Bc5*e7 #
                                      5...Sd5-e3
                                          6.Bc5*e7 #
                                      5...Sd5-f4
                                          6.Bc5*e7 #
                                      5...Sd5-c7
                                          6.Bc5*e7 #
                                      5...Sd5-b6
                                          6.Bc5*e7 #
                              4...Sd5-b4
                                  5.Ke1-f1 threat:
                                          6.Kf1-g1 zugzwang.
                                              6...Sb4-a2
                                                  7.Ba3*e7 #
                                              6...Sb4-c2
                                                  7.Ba3*e7 #
                                              6...Sb4*d3
                                                  7.Ba3*e7 #
                                              6...Sb4-d5
                                                  7.Ba3-c5 zugzwang.
                                                      7...Sd5-b4
                                                          8.Bc5*e7 #
                                                      7...Sd5-c3
                                                          8.Bc5*e7 #
                                                      7...Sd5-e3
                                                          8.Bc5*e7 #
                                                      7...Sd5-f4
                                                          8.Bc5*e7 #
                                                      7...Sd5-c7
                                                          8.Bc5*e7 #
                                                      7...Sd5-b6
                                                          8.Bc5*e7 #
                                              6...Sb4-c6
                                                  7.Ba3-c5 zugzwang.
                                                      7...Sc6-a5
                                                          8.Bc5*e7 #
                                                      7...Sc6-b4
                                                          8.Bc5*e7 #
                                                      7...Sc6-d4
                                                          8.Bc5*e7 #
                                                      7...Sc6-d8
                                                          8.Bc5*e7 #
                                                      7...Sc6-b8
                                                          8.Bc5*e7 #
                                                      7...Sc6-a7
                                                          8.Bc5*e7 #
                                              6...Sb4-a6
                                                  7.Ba3*e7 #
                                      5...Sb4-d5
                                          6.Kf1-g1 threat:
                                                  7.Ba3-c5 zugzwang.
                                                      7...Sd5-b4
                                                          8.Bc5*e7 #
                                                      7...Sd5-c3
                                                          8.Bc5*e7 #
                                                      7...Sd5-e3
                                                          8.Bc5*e7 #
                                                      7...Sd5-f4
                                                          8.Bc5*e7 #
                                                      7...Sd5-c7
                                                          8.Bc5*e7 #
                                                      7...Sd5-b6
                                                          8.Bc5*e7 #
                                              6...Sd5-b4
                                                  7.Kg1-h1 zugzwang.
                                                      7...Sb4-a2
                                                          8.Ba3*e7 #
                                                      7...Sb4-c2
                                                          8.Ba3*e7 #
                                                      7...Sb4*d3
                                                          8.Ba3*e7 #
                                                      7...Sb4-d5
                                                          8.Ba3-c5 zugzwang.
                                                              8...Sd5-b4
                                                                  9.Bc5*e7 #
                                                              8...Sd5-c3
                                                                  9.Bc5*e7 #
                                                              8...Sd5-e3
                                                                  9.Bc5*e7 #
                                                              8...Sd5-f4
                                                                  9.Bc5*e7 #
                                                              8...Sd5-c7
                                                                  9.Bc5*e7 #
                                                              8...Sd5-b6
                                                                  9.Bc5*e7 #
                                                      7...Sb4-c6
                                                          8.Ba3-c5 zugzwang.
                                                              8...Sc6-a5
                                                                  9.Bc5*e7 #
                                                              8...Sc6-b4
                                                                  9.Bc5*e7 #
                                                              8...Sc6-d4
                                                                  9.Bc5*e7 #
                                                              8...Sc6-d8
                                                                  9.Bc5*e7 #
                                                              8...Sc6-b8
                                                                  9.Bc5*e7 #
                                                              8...Sc6-a7
                                                                  9.Bc5*e7 #
                                                      7...Sb4-a6
                                                          8.Ba3*e7 #
                      3...Sb4-c6
                          4.Ba3-c5 zugzwang.
                              4...Sc6-a5
                                  5.Bc5*e7 #
                              4...Sc6-b4
                                  5.Bc5*e7 #
                              4...Sc6-d4
                                  5.Bc5*e7 #
                              4...Sc6-d8
                                  5.Bc5*e7 #
                              4...Sc6-b8
                                  5.Bc5*e7 #
                              4...Sc6-a7
                                  5.Bc5*e7 #
                      3...Sb4-a6
                          4.Ba3*e7 #
      1...Sb4-c6
          2.Ba3-c5 zugzwang.
              2...Sc6-a5
                  3.Bc5*e7 #
              2...Sc6-b4
                  3.Bc5*e7 #
              2...Sc6-d4
                  3.Bc5*e7 #
              2...Sc6-d8
                  3.Bc5*e7 #
              2...Sc6-b8
                  3.Bc5*e7 #
              2...Sc6-a7
                  3.Bc5*e7 #
      1...Sb4-a6
          2.Ba3*e7 #


solution finished. Time = 4:58.551 m:s
I like that it showed refutations and threats. It could be improved by converting the output to a variation line like in the game annotation. I don't know how, just use this excellent tool today.
User avatar
F.Huber
Posts: 867
Joined: Thu Mar 09, 2006 4:50 pm
Location: Austria
Full name: Franz Huber

Re: Has anybody figured out how to make Popeye analyze ?

Post by F.Huber »

Chessqueen wrote: Sun Jul 03, 2022 3:42 pm This is suppose to be one of the best chess engine to analyze chess positions, but I can NOT make it work under Arena GUI.
Well, you can use PopeyeUCI from my website:
https://fhub.jimdofree.com/
This is an UCI interface for Popeye that can be used in Arena like any other UCI engine.

But Popeye is definitely far away from being "one of the best chess engine to analyze chess positions" -
I suggest to used ChestUCI (also on my website) instead of it, which is much better and faster!

Regards,
Franz