If a pawn promotes to a checking piece while also revealing a check, it is a double check?Is there a chess engine with divide perft for captures only?C++ vs Java Engine move generation performancePossible chess positon after X ply?Getting started in position-counting by computerHow to write a simple chess engine to statically evaluate a position?How can minimax chess engines do alpha-beta pruning without reaching the final positions?What is the longest possible sequence of double checks?

Ruby language curious integer arithmetic : (-5/2) != -(5/2)

Making Eggs for 50 people

Can an integer optimization problem be convex?

How can an attacker use robots.txt?

Is there any iPhone SE out there with 3D Touch?

Subverting the emotional woman and stoic man trope

Why did UK NHS pay for homeopathic treatments?

What's the next step in this Unequal (Futoshiki) puzzle?

Why does NASA publish all the results/data it gets?

Detect duplicates without exposing underlying data

Guitar tuning (EADGBE), "perfect" fourths?

Is the mass of paint relevant in rocket design?

Would Taiwan and China's dispute be solved if Taiwan gave up being the Republic of China?

Does "as soon as" imply simultaneity?

Is it a good idea to leave minor world details to the reader's imagination?

Is it really necessary to have a four hour meeting in Sprint planning?

Could Apollo astronauts see city lights from the moon?

What's the lowest risk highest reward I can invest in for 5 years?

When is it acceptable to write a bad letter of recommendation?

To what extent is it worthwhile to report check fraud / refund scams?

How to deal with a Homophobic PC

A food item only made possible by time-freezing storage?

Is this Portent-like spell balanced?

How to discover (standard) function names?



If a pawn promotes to a checking piece while also revealing a check, it is a double check?


Is there a chess engine with divide perft for captures only?C++ vs Java Engine move generation performancePossible chess positon after X ply?Getting started in position-counting by computerHow to write a simple chess engine to statically evaluate a position?How can minimax chess engines do alpha-beta pruning without reaching the final positions?What is the longest possible sequence of double checks?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I'm writing a chess engine just for fun, and during the validation of movement generation, I found some positions in Perft Results that differ from what my engine is producing.



As an example, take the below position.



[FEN "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"]


I found in the Chess programming wiki, the number of possible positions in depth 5 is 193690690, and my program matches this value.



However, regarding the number of possible double checks, my program found 8 more positions. The Perft Results from the Wiki indicate a total of 2637, while I found 2645.



I don't know what to think. Maybe the Perft Result from the Wiki does not consider positions where a pawn promotes with check whilst revealing a check, aka a discovered check. But there are only 6 moves where a pawn promotion results in a double check (3 positions, where the pawn may promote to queen or rook). Are the positions from Wiki wrong?



If someone wants to look at the positions, they can be found here on Google Drive.










share|improve this question
































    1















    I'm writing a chess engine just for fun, and during the validation of movement generation, I found some positions in Perft Results that differ from what my engine is producing.



    As an example, take the below position.



    [FEN "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"]


    I found in the Chess programming wiki, the number of possible positions in depth 5 is 193690690, and my program matches this value.



    However, regarding the number of possible double checks, my program found 8 more positions. The Perft Results from the Wiki indicate a total of 2637, while I found 2645.



    I don't know what to think. Maybe the Perft Result from the Wiki does not consider positions where a pawn promotes with check whilst revealing a check, aka a discovered check. But there are only 6 moves where a pawn promotion results in a double check (3 positions, where the pawn may promote to queen or rook). Are the positions from Wiki wrong?



    If someone wants to look at the positions, they can be found here on Google Drive.










    share|improve this question




























      1












      1








      1








      I'm writing a chess engine just for fun, and during the validation of movement generation, I found some positions in Perft Results that differ from what my engine is producing.



      As an example, take the below position.



      [FEN "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"]


      I found in the Chess programming wiki, the number of possible positions in depth 5 is 193690690, and my program matches this value.



      However, regarding the number of possible double checks, my program found 8 more positions. The Perft Results from the Wiki indicate a total of 2637, while I found 2645.



      I don't know what to think. Maybe the Perft Result from the Wiki does not consider positions where a pawn promotes with check whilst revealing a check, aka a discovered check. But there are only 6 moves where a pawn promotion results in a double check (3 positions, where the pawn may promote to queen or rook). Are the positions from Wiki wrong?



      If someone wants to look at the positions, they can be found here on Google Drive.










      share|improve this question
















      I'm writing a chess engine just for fun, and during the validation of movement generation, I found some positions in Perft Results that differ from what my engine is producing.



      As an example, take the below position.



      [FEN "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"]


      I found in the Chess programming wiki, the number of possible positions in depth 5 is 193690690, and my program matches this value.



      However, regarding the number of possible double checks, my program found 8 more positions. The Perft Results from the Wiki indicate a total of 2637, while I found 2645.



      I don't know what to think. Maybe the Perft Result from the Wiki does not consider positions where a pawn promotes with check whilst revealing a check, aka a discovered check. But there are only 6 moves where a pawn promotion results in a double check (3 positions, where the pawn may promote to queen or rook). Are the positions from Wiki wrong?



      If someone wants to look at the positions, they can be found here on Google Drive.







      engines programming pawn-promotion performance double-check






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 hour ago







      Welyab Paula

















      asked 11 hours ago









      Welyab PaulaWelyab Paula

      363 bronze badges




      363 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          3
















          Yes, a double check is when two pieces give check at the same time. It doesn't matter how you got to that position. As to whether there's an error on that wiki, it's probably best to try to ask its author. Maybe they can provide the full list of positions for you to compare.



          I can think of two ways of giving double check while promoting. One is where you have say the black king in front of the white pawn, and a white queen or rook behind the pawn, and the pawn promotes with a capture, ending up as a new white queen or rook next to the black king. The other is where say the black king is on the seventh rank, white has a rook or queen on the other side of the pawn, and White promotes to a knight, queen or bishop giving check.






          share|improve this answer

























          • Thank you for the feedback. The author of perft results is Peter McKenzie, worker of Google. I found him LinkedIn profile and send him a message. Maybe he can answer me.

            – Welyab Paula
            1 hour ago


















          1
















          Yes, the case you mentioned would also qualify as a double check.



          But it also depends on what your definitions are. If the Perft result does consider that to not be a double check, it doesn't mean you have to abide by it.






          share|improve this answer



























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "435"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fchess.stackexchange.com%2fquestions%2f26415%2fif-a-pawn-promotes-to-a-checking-piece-while-also-revealing-a-check-it-is-a-dou%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3
















            Yes, a double check is when two pieces give check at the same time. It doesn't matter how you got to that position. As to whether there's an error on that wiki, it's probably best to try to ask its author. Maybe they can provide the full list of positions for you to compare.



            I can think of two ways of giving double check while promoting. One is where you have say the black king in front of the white pawn, and a white queen or rook behind the pawn, and the pawn promotes with a capture, ending up as a new white queen or rook next to the black king. The other is where say the black king is on the seventh rank, white has a rook or queen on the other side of the pawn, and White promotes to a knight, queen or bishop giving check.






            share|improve this answer

























            • Thank you for the feedback. The author of perft results is Peter McKenzie, worker of Google. I found him LinkedIn profile and send him a message. Maybe he can answer me.

              – Welyab Paula
              1 hour ago















            3
















            Yes, a double check is when two pieces give check at the same time. It doesn't matter how you got to that position. As to whether there's an error on that wiki, it's probably best to try to ask its author. Maybe they can provide the full list of positions for you to compare.



            I can think of two ways of giving double check while promoting. One is where you have say the black king in front of the white pawn, and a white queen or rook behind the pawn, and the pawn promotes with a capture, ending up as a new white queen or rook next to the black king. The other is where say the black king is on the seventh rank, white has a rook or queen on the other side of the pawn, and White promotes to a knight, queen or bishop giving check.






            share|improve this answer

























            • Thank you for the feedback. The author of perft results is Peter McKenzie, worker of Google. I found him LinkedIn profile and send him a message. Maybe he can answer me.

              – Welyab Paula
              1 hour ago













            3














            3










            3









            Yes, a double check is when two pieces give check at the same time. It doesn't matter how you got to that position. As to whether there's an error on that wiki, it's probably best to try to ask its author. Maybe they can provide the full list of positions for you to compare.



            I can think of two ways of giving double check while promoting. One is where you have say the black king in front of the white pawn, and a white queen or rook behind the pawn, and the pawn promotes with a capture, ending up as a new white queen or rook next to the black king. The other is where say the black king is on the seventh rank, white has a rook or queen on the other side of the pawn, and White promotes to a knight, queen or bishop giving check.






            share|improve this answer













            Yes, a double check is when two pieces give check at the same time. It doesn't matter how you got to that position. As to whether there's an error on that wiki, it's probably best to try to ask its author. Maybe they can provide the full list of positions for you to compare.



            I can think of two ways of giving double check while promoting. One is where you have say the black king in front of the white pawn, and a white queen or rook behind the pawn, and the pawn promotes with a capture, ending up as a new white queen or rook next to the black king. The other is where say the black king is on the seventh rank, white has a rook or queen on the other side of the pawn, and White promotes to a knight, queen or bishop giving check.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 10 hours ago









            itubitub

            5,5271 gold badge13 silver badges33 bronze badges




            5,5271 gold badge13 silver badges33 bronze badges















            • Thank you for the feedback. The author of perft results is Peter McKenzie, worker of Google. I found him LinkedIn profile and send him a message. Maybe he can answer me.

              – Welyab Paula
              1 hour ago

















            • Thank you for the feedback. The author of perft results is Peter McKenzie, worker of Google. I found him LinkedIn profile and send him a message. Maybe he can answer me.

              – Welyab Paula
              1 hour ago
















            Thank you for the feedback. The author of perft results is Peter McKenzie, worker of Google. I found him LinkedIn profile and send him a message. Maybe he can answer me.

            – Welyab Paula
            1 hour ago





            Thank you for the feedback. The author of perft results is Peter McKenzie, worker of Google. I found him LinkedIn profile and send him a message. Maybe he can answer me.

            – Welyab Paula
            1 hour ago













            1
















            Yes, the case you mentioned would also qualify as a double check.



            But it also depends on what your definitions are. If the Perft result does consider that to not be a double check, it doesn't mean you have to abide by it.






            share|improve this answer





























              1
















              Yes, the case you mentioned would also qualify as a double check.



              But it also depends on what your definitions are. If the Perft result does consider that to not be a double check, it doesn't mean you have to abide by it.






              share|improve this answer



























                1














                1










                1









                Yes, the case you mentioned would also qualify as a double check.



                But it also depends on what your definitions are. If the Perft result does consider that to not be a double check, it doesn't mean you have to abide by it.






                share|improve this answer













                Yes, the case you mentioned would also qualify as a double check.



                But it also depends on what your definitions are. If the Perft result does consider that to not be a double check, it doesn't mean you have to abide by it.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                Inertial IgnoranceInertial Ignorance

                6,9445 silver badges16 bronze badges




                6,9445 silver badges16 bronze badges































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Chess Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fchess.stackexchange.com%2fquestions%2f26415%2fif-a-pawn-promotes-to-a-checking-piece-while-also-revealing-a-check-it-is-a-dou%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單