Category: chess

  • Deleting Duplicate Chess Games from a Database

    On my machine, I have two files. The All_white.pgn and All_black.pgn files are the files which contain wins for white and black for my favorite openings. However, because they were extracted from popular free Chess databases, there may be duplicate games.

    Therefore, I used these commands to reprocess them and remove extra games with the exact same move sequences. This will save disk space but also time loading them into ChessX.

    Commands to remove dupes

    pgn-extract All_white.pgn -oAll_white-noduplicates.pgn -D

    pgn-extract All_black.pgn -oAll_black-noduplicates.pgn -D

    After the process was done, I then deleted the original files with the duplicates because they were no longer necessary. If I update the entire database with more sources and openings, I will need to repeat this process though.

    More specifically, this database on my machine, while not yet open to the public, is based upon the downloadable sources included in En Croissant. All I did was download them, export them to .pgn files, and then sort them according to these openings. Therefore, anyone could create the same thing with this information.

    The Queen’s Gambit

    1. d4 d5 2. c4

    The London System

    1. d4 d5 2. Bf4

    The Indian Defense

    1. d4 Nf6

    The French Defense

    1. e4 e6

    The Sicilian Defense

    1. e4 c5

    These openings were chosen because of their popularity and my preference. Interestingly, I did not include the Caro Kann because my preference is for the French Defense and I don’t want to divide my attention when studying openings any more than I already have.

    For more information on using pgn-extract to manage Chess databases, I recommend the official pgn-extract documentation.

  • Chapter 11: Song Lyrics

    Besides writing about Chess in this book, I also sometimes write poems about Chess which double as song lyrics. The lyrics for my top 3 best songs are below.

    Chastity’s Chess Challenge Lyrics

    [Verse]
    Chastity sat down
    Chessboard in the light
    Pieces in a row
    Ready for the night
    
    [Verse 2]
    Every piece unique
    Knights jump around
    Bishops slide oblique
    Soon the pawns surround
    
    [Chorus]
    Checkmates and castles
    Battles on the squares
    Chastity’s got the tactics
    Winning everywhere
    
    [Verse 3]
    Opponents get nervous
    Rooks move with speed
    Chastity keeps her cool
    Focused indeed
    
    [Verse 4]
    She'll show you the websites
    Where she likes to play
    Just watch her stream highlights
    And you'll learn the way
    
    [Bridge]
    Every move calculated
    Every step so clear
    She's the queen of the board
    No need to fear
    
    [Verse 5]
    We don't always make the best move
    But the point of Chess is to have fun
    If you keep playing you will improve
    You'll believe me when the game is done
    
    [Verse 6]
    Whether you are a powerful queen
    Or just a slow moving pawn
    Soon you'll become a chess machine
    Playing in your dreams from dusk to dawn
    
    [Verse 7]
    Some people call Chess a game
    While others say it's a fight
    Perhaps it's all the same
    The dance of black and white
    
    [Verse 8]
    Chess is for people of every kind
    It doesn't matter who or what you are
    You have all the power in your mind
    Learn to checkmate like a star
    

    Chastity’s Chess Chapters Lyrics

    I was trying to inspire people to play chess
    My plans were good, but the execution was a mess
    If people don't know how to start
    Then they will never know that chess is art
    
    I decided to write my own chess book
    With large pictures for people to take a look
    The new player needs some motivation
    Before they even know chess notation
    
    My graphic design was quite berserk
    Most of my time was spent on artwork
    They needed to be the right size
    I failed so many of my tries
    
    I never give up because I am a nerd
    I put my heart into every single word
    I want my readers to understand
    The vision of chess that I have planned
    
    Because chess is not hard to learn
    As long as you do not rush your turn
    It's not a game for the strong or fast
    But for the patient who can outlast
    
    With every piece that you take
    You question if you made a mistake
    The book I write will not mislead
    But you need the patience to read
    
    If there is something I should show
    Then message me and let me know
    The game of chess should always be free
    If you take the time, I know you will agree
    

    Chess for All Lyrics

    [Verse]
    Board is set let's play our game
    Everyone can join the same
    Pieces move their timeless dance
    In chess there's always a chance
    
    [Verse 2]
    Kings and queens on either side
    Pawns advance with humble pride
    No one's left out in this fight
    A game of skill no dark no light
    
    [Chorus]
    Chess for all chess for you
    Every move it's something new
    No matter who or where you are
    In this game we're all a star
    
    [Verse 3]
    Black or white it doesn't matter
    On this board no walls to shatter
    Rich or poor we all belong
    In this fight we're going strong
    
    [Verse 4]
    Even if you've never played
    There's no need to be afraid
    Anyone can learn this game
    That's why chess has so much fame
    
    [Bridge]
    Male or female gay or straight
    At this table no one's late
    Every voice and move unique
    All together we are sleek
    
    [Verse 5]
    Anyone can win this game
    But when you lose feel no shame
    Even masters make mistakes
    All your games are just remakes
    
    [Verse 6]
    Each new player finds their style
    When you find it you will smile
    Books and courses help us learn
    What we need to take our turn
    
    [Chorus]
    Chess for all chess for you
    Every move it's something new
    No matter who or where you are
    In this game we're all a star
    
    
  • Technical Writer

    After publishing my first Chess book, Chastity’s Chess Chapters, I have come to realize that what I was accidentally doing is the start of Technical Writing. When I think about the majority of what I have been reading in my lifetime, I discovered it was not story novels. I am much more likely to be reading a book or a PDF manual written for Open Source Software.

    In the process of writing my Chess book, I depended greatly on the Technical Writing of other people. For example

    These three people were extremely influential to what I needed to learn. The Markdown Guide provided me with the knowledge to separate chapters from paragraphs and link to images which I needed to include in my book. It also pointed me to Gabriel’s blog post about using only open source tools to publish a book. His blog post introduced me to Pandoc, which is a perfect complement to using Markdown as described in the Markdown Guide. These 3 unrelated authors of Technical Writing about how to use these Open Source tools all accidentally worked together in helping me include the images in my own book.

    The end result is that my book, Chastity’s Chess Chapters, is a Technical Writing book about how to play the game of Chess, what software and websites can help, and also some about the process of how the book was made. There were a few Pandoc commands included in the book to remind myself how I did the process of making my book files, but also for the purpose of sharing the information to help other authors write whatever books they want and get them published.

    After speaking with Career Coaches Susan Smey and Mary Helen Norris, I am starting to see that a Technical Writer is what I am becoming without even trying. The kind of things that I have been reading and writing have a name. Once you know a name of something, it can be Google searched, and then opportunities are available! I am very excited for what career I may have because of my Full Sail University education and my self taught computer skills.

  • Chastity’s Google Translate Process

    The following steps outline what I did to convert my Chess book I recently published into Spanish through the power of Google Translate. I did this because I have Spanish speaking friends and Spanish is the second most commonly spoken language in the United States of America.

    First, I had to take the original ebook in English and convert it into an OpenOffice Document.

    pandoc ChastityChessChapters-ebook.md -o book.odt --reference-doc custom-reference.odt

    Then I saved it as a Microsoft Word docx file from within LibreOffice. This is so Google Translate will accept it as a valid document.

    Then, I had to go to Google Translate and convert the entire document to Spanish.

    The final step was converting this document into an epub for the Spanish ebook.

    pandoc book-spanish.docx -o ebook-spanish.epub -s --metadata title="Capítulos de ajedrez de Chastity" --metadata subtitle="¡El ajedrez no es tan difícil de aprender como te han dicho!" --metadata author="Chastity White Rose"

    When I published it, I did not edit the results at all because I know so little Spanish that if there was something wrong, I would not have a clue how to fix it.

    However, I also changed the text on the cover of the book to the Spanish equivalent of what I had on the English cover. I suspect that my book will provide a much needed resource to Spanish speakers because most books on Chess are written by players who are English, French, and Indian. Since my goal is to promote Chess to people of every kind, it was essential to make a Spanish translation, and perhaps other languages will follow in the future now that I have a working process to translate an entire book very quickly.

    The Spanish version I made can be found on Smashwords and Amazon.

  • Chastity SVG Xiangqi Set Chinese

    This is the Chinese character version of my previous Xiangqi set that used westernized pieces. I made this to help me get used to the Chinese pieces by choosing a set from the Pychess repository that looked visually appealing to me and then placing it on the exact same board I designed for the western version.

    See the western version below for reference.

    As I mentioned in my book, I have played Xiangqi but I am not very good at it yet. I am much more experienced with Chess and Shogi, but Xiangqi is definitely in the same category of games.

  • The Albin Counter Gambit

    There is a response that black can use against white’s queen’s gambit. The result is that black can take white’s queen if they make two critical mistakes,

    I have pictures of the most common sequence of moves here. I will explain the ideas behind the Albin Counter Gambit and why it can be used to turn the tables against white and destroy their queen. They can of course avoid the trap in a few ways, but this opening is psychologically very tricky.

    First, we are in the Queen’s Gambit position. White offers a free pawn on c4 to tempt black into taking it. I have previously covered why you should not accept the gambit pawn. Those who are playing black can use the following tricks.

    Instead of taking the pawn, or using the common declines of moving a pawn to e6 or c6, black instead moves their king’s pawn two squares to e5. This is a counter gambit because now white will think “Yay, a free pawn!”. Usually they will take it without question.

    White takes the pawn. There is no reason not to because it really is a good move. However, white will be overconfident at this point, thinking they are playing someone who doesn’t know what they are doing.

    Black moves the d5 pawn one square forward to d4 where white’s pawn was before. This doesn’t look like a problem except that it means white cannot move their knight to c3 or the pawn will take it.

    White will probably try to advance their king’s pawn to e3 with the idea of trading queens if the black pawn captures it.

    Black now moves the bishop to b4 and puts the king in check. White has 4 options here, not a single one of which is any good. Either they move the king out of the way to e2 and block their bishop, or they put their knight, bishop, or queen in the way on d2 to block the check.

    Not wanting to sacrifice a knight, white sacrifices the bishop on d2.

    But black never intended to capture anything with the bishop. They check was just a distraction from the d4 pawn which now takes the e3 pawn. Now it attacks the bishop and pawn. Also, the white bishop on d2 is not able to capture that pawn because then the king will be in check again.

    The white bishop simply takes the black bishop and thinks they are winning the game already.

    But then the black pawn captures the f2 pawn and the king is in check. There are two legal moves here, both of which are losing for white. Either they move the king to e2 and let the pawn kill their knight, or they take the pawn, which seems like the logical option.

    The white king takes the pawn and yet fails to notice that nothing is defending their queen.

    Black queen takes white queen because when the white bishop moved out of the way, they had no obstacles between them.

    At this point, white usually resigns after losing their queen. There really are no good moves for white in this position and the black queen can keep putting the white king in check while taking all their pieces. This is why the Albin Counter Gambit is so dangerous to a Queen’s Gambit player like me. Don’t fall for this trap as I once did!

    But you may wonder, can the Queen be protected if the white king moves to e3 instead of taking the pawn on f2?

    No, because remember that the pawn can promote to any piece, including a knight when it promotes. This puts the king in check.

    Of course, the rook can take this black knight, but that will not help the situation at all.

    The true purpose of taking that knight was to remove the final defender of the king from a bishop on b4 check.

    As you can see, there is no way to protect the queen. As soon as the king moves to one of the 3 legal squares, the white queen will be captured by either the black bishop or queen.

    The Albin Counter Gambit doesn’t always go this way, but it certainly can. This is why it is a perfectly valid response to the Queen’s Gambit.

  • Queen’s Gambit Accepted White Pawn to e3

    Daily writing prompt
    Describe a decision you made in the past that helped you learn or grow.

    When I made the decision to move my king’s pawn to e3 after black accepted the Queen’s Gambit. I learned of a Chess opening trap that led me to prefer pawn to e3 over e4. In this trap, black will lose a knight, bishop, or rook depending on which mistake they make.

    What I learned about this is that even though pawn to e3 blocks the dark squared bishop from getting out past it, the high chance that my opponent will fall into this trap makes it worth it. That bishop also should be kept there to defend the king from diagonal checks in the future.

    If you are the black player, I would recommend against accepting the Queen’s Gambit entirely. It leads to many traps by white. If you do accept it, you will lose your pawn anyway. Don’t waste time with that and instead move out other pawns depending on what pieces you plan to move. Below are the two most common responses to the Queen’s Gambit. The following is my written recommendations black should play instead.

    1. d4 d5 2. c4

    ! Good moves for Black

    • e6 Defend the d5 pawn by moving the king’s pawn to e6. If white decides to capture the d5 pawn black will capture back and then white will still not be able to move their bishop to c4. Playing e6 is called the “Queen’s Gambit Declined”. This is the best move in my opinion because moving this pawn there prevents diagonal attacks on the f7 square even if white does manage to get their bishop or queen lined up there.

    • c6 Although it is less common, c6, known as the “Slav Defense” is another way to decline the gambit. By playing this move, black is hinting at a possible check against the white king by moving the black queen to a5. In any case, this move has the same idea that black will capture back on d5 if white’s c4 pawn takes it. It isn’t bad but

    ? Bad moves for Black

    • dxc4 If black takes this pawn, they can fall into one of many possible traps. It is nearly impossible to prevent white from taking back this pawn with the bishop after moving the e pawn. Also, white now has the option to safely move the e pawn to e4 without it being captured because black no longer has the pawn on d5. If black has played dxc4 here, then they are now in a “Queen’s Gambit Accepted” position. White has the advantage of controlling the center with both their king and queen pawns. Black can still win of course but it will be much harder from here.

    Queen’s Gambit Declined

    d4-d5-c4-e6.png

    1. d4 d5 2. c4 e6

    If black declines the Queen’s Gambit with e6, there are some things white must look out for. First, by moving the e pawn, black allows their dark squared bishop to get out next turn. This can possibly put the king in check and/or pin the knight if it has moved to c3. Therefore, all evaluation of moves should consider this threat.

    ! Good moves for White

    • c5 By advancing the c4 pawn to c5, black is prevented from getting their dark squared bishop out entirely. I recommend this as the best move because now both of black’s bishops are prevented from getting out. They already blocked their light squared bishop on e6 and now our c5 pawn prevents them from moving the dark squared bishop there unless they are prepared to get killed by the d4 pawn in response.

    • a3 is not the most offensive move but it is a nice defensive measure to prevent the dark squared bishop from coming to b4. This move should be done if white wants to safely move their knight to c3.

    • Nf3 Moving the knight to f3 is particularly good in the Queen’s Gambit Declined position because it is safe here and can possibly move to e5 next turn. It also means we have not committed to whether we will move the e pawn one or two squares.

    ? Bad moves for White

    • Nc3 Whatever you do, don’t try moving the knight to c3 on this turn unless you are prepared to lose it! You can move it here later if you wish but not until you have dealt with the threat of black’s dark squared bishop first. There will be some people who disagree with me on this because they think losing a knight to take down a bishop is a fair trade. However, I protect my knights because they are my “Queen Killers” and are often involved in forks later in the end game that my opponents don’t see. If you move the knight to c3 here, the bishop can move to b4 and the knight can’t move because that would put the king in check.

    Slav Defense

    d4-d5-c4-c6.png

    1. d4 d5 2. c4 c6

    I must admit that I have not studied the Slav Defense as much as I have the Queen’s Gambit Declined or Queen’s Gambit Accepted. However, I do have two recommendations for white moves here.

    • Nf3 is a solid move because the knight will certainly be involve in the game at some point and is not under immediate threat.
    • Bf4 is a good idea here because we can target the knight on b8 now that the c pawn is not in the way. We have a lot of options for where the bishop can go from here. It is a safe move at this point with no real downsides. Don’t hesitate to kill the knight with the bishop unless you are player who prefers to keep your bishops alive. There is some matter of preference when it comes to the value of knights vs bishops.

    As I play more games in the Slav defense, I may have more to say here. The Slav Defense has its own merits even though it is not as popular as other responses to the Queen’s Gambit.

    Follow me for More Chess Tips

    I play Chess on Lichess.org almost daily. You can find me as user chastitywhiterose. Send me a challenge for a correspondence game or contact me for setting up a time for some live classical Chess!

    I also stream on Twitch and upload the videos to YouTube also.

  • Obtaining a Chess Database

    The best way to obtain a free database is to play games on lichess.org and then go to your profile and find the export options.

    Then you will want to make sure you have selected only the standard variant and the time controls you want to be included. Chess database programs almost never support anything other than standard Chess. This is unfortunate because I would love to see how a Crazyhouse database would look. Maybe software for other variants will be invented or exists that I don’t know about. In the meantime, stick with standard.

    When you have downloaded a database to the filename of your choice, you will want to install a program such as [ChessX](https://chessx.sourceforge.io/) which can help you play the games out on a graphical chessboard. There are many other applications like [Scid vs. PC](https://scidvspc.sourceforge.net/) or various products sold by the Chessbase company. However, I don’t recommend paying for a program unless you are a professional Chess player who wins prize money to justify the cost of it. Therefore, I have chosen only to recommend free and open-source tools.

  • What I think of Tam

    I was feeling depressed and wrong
    Because my nights of work are long
    Until my student Tam wrote me a song
    And suddenly I somehow felt strong

    Every thought I had Tam could express
    How hard I work and how much I love Chess
    But don’t have time and my life is a mess
    But Tam understands me well I must confess

    Sometimes I am sad and feeling down
    And in my many trials I start to drown
    I still make Tam laugh because I am a clown
    Others don’t care but Tam writes of my renown

    Thank you Tam, for reminding me
    Of my rainbow that you can see
    When the time comes that I am free
    To the Chess Wonderland we will flee

    Tam, you are my student, sister, and friend
    On my commitment you can depend
    Because I speak the truth and never pretend
    But against my knights you must learn to defend!

  • Chapter 10: The Making of the Ebook

    In the ebook edition of this book, a few things were modified. First, the links in the table of contents were changed to internal links for easier navigation in the ebook. They no longer point to the blog posts because the idea is that the ebook can be downloaded and read without requiring an internet connection once downloaded.

    In the paperback, the links cannot be clicked because the book is literal paper and ink instead of a computer. However, they are exceptionally helpful to me as the author because it means I can quickly go to the post for that chapter and check to see if there are any new comments! However, I did not want the links to remain the same for the ebook because it is meant to help you jump to the chapter on whatever device you are reading it on.

    Once I read the Pandoc documentation on the rules for linking to existing headings within a document, I used this command to test it as HTML in a web browser.

    pandoc ChastityChessChapters-ebook.md -o ebook.html

    Once I confirmed that the links worked correctly, I then converted to an epub file.

    pandoc ChastityChessChapters-ebook.md -o ebook.epub -s --metadata title="Chastity's Chess Chapters" --metadata subtitle="Chess is not as hard to learn as you have been told!" --metadata author="Chastity White Rose"

    Then I tested the epub by opening it in Calibre to see how it looked. To my surprise, the conversion worked very well.

    These technical details about software and formatting may not mean much to you as the reader, but this is useful information worth sharing for other authors who may have the desire to write a publish a book. They may already even have a manuscript typed up but don’t know how to get it published as a paperback (the original and true form of a book) or an ebook (the modern convenience of reading a book on your phone, iPad, Kindle, Nook, Kobo, etc).

    The process of publishing my first Chess book has taught me more than I would have ever thought was possible. I hope reading my book has helped you understand why I love Chess. If you are an author who wants some help publishing your book, I can also probably guide you with a few tools and tricks I have learned.

    My number one tip I would like to give authors right now is to publish an ebook through Draft2Digital. If you can write a book and produce a high quality epub file, you can expect that it will look pretty much the same when you publish it through Draft2Digital. This book you are reading is available on the Apple Books store, the Kobo Books store, Barnes and Noble, and some lesser known online book stores that I hadn’t heard about before joining Draft2Digital. This service is the fastest way I know of to get an ebook available in as many places as possible.

    However, the best part of this is that the books you publish through Draft2Digital are also available on Smashwords. Smashwords is particularly good because if you buy a book there, you can download the epub and then load it into whichever ebook reading application you like. This way you are not locked into only one vendor and can freely read the same book if you change from using Kindle to Kobo, Nook, or Apple Books.

    For example, this ebook is available on Smashwords in both English and Spanish.

    My Chess Books on Smashwords

    Chastity’s Chess Chapters

    Capítulos de ajedrez de Chastity

    My final statement on this matter is that I still think original paperback books are superior to electronic books, but my goal is to make my books available to people who also prefer reading ebooks. It is also possible to update ebooks faster than paperbacks because there is no printing cost. Therefore the ebook may have the latest changes and corrections before the paperback does.

    Please do contact me with any questions, comments, corrections, or Chess Challenges! My email address and website are below.

    chastitywhiterose@gmail.com

    https://chastitychesschallenge.com