As you can see from the above screenshot, one of the engines possible moves is e8g8, which is for the black king to castle on the king’s side. This is […]
picoEngine?! Where is the king?!
What good is king safety if the king refuses to capture it’s attacker? I guess I had programmed a cowardly lion… er… uh… king. Actually the real problem was that […]
This is not checkers, picoEngine….
Then why does he say “king me?!” Today I worked on the king moves for picoEngine. Note that I did not include castling moves yet. Without the castle moves, the […]
Uh, picoEngine? I thought you said the king was safe?
Except he’s not. That’s right. I big technical oversight on my part allowed the king to not be safe at all! while (boardPositions[k] == ‘*’ && notI) { Needed to […]
Is the king safe, picoEngine?
One of the really important rules of playing chess, in fact, the rule upon which the entire game hinges, is king safety. You can’t make a move that puts your […]
Fool’s Mate Friday: Is the King safe from pawns?
Pawns can be scary things. They can en passant, they can form chains and islands, they can promote to the all powerful queen. Not to mention they can checkmate you. […]
Fool’s Mate Friday: Keeping the king safe!
The word “Checkmate” in Chess comes from the Persian phrase “Shah Mat,” which means “the King is dead.” While in the starting position, there are eight different ways to checkmate in […]