Sunday, February 22, 2009

Lost Among The Trees

I've been taking some time off of chess, partly since I've had two consecutive bye weeks in the Club Championship Qualifier. My Pocket PC lacks a Scrabble anagrammer so I've been trying to write one of my own. The one I wrote in SQL Compact Edition is ok, but it chokes on the wildcard searches, taking about 150 seconds to return the anagrams. I ran across a neat data structure called a DAWG - Directed Acyclic Word Graph which seems to be an optimization of searching the dictionary. A guy named Sam Allen wrote a blazing fast anagrammer that I wished to emulate, so I've been building and scrapping data structures, testing and debugging algorithms. The DAWG is a bit like Kotov's tree of analysis in that there is a starting position with branches for every possible node and branches from there outward to an exponentially increasing number of nodes. What's interesting about the DAWG is that it is almost within the human brain's ability to grasp the magnitude. Words in Scrabble range from 2 to 15 letters and can only end on one of 26 letters, so the DAWG converges on itself like a gigantic geodesic lemon, tapered at two ends. The analogous structures in chess are that the opening diverges and the tablebases converge upon checkmate.

I started reading "Word Freak". In one chapter, the author quotes Joe Edley, many-times Scrabble champion, basically saying that winning takes concentration on winning; everything else is extraneous. I probably quoted this once before, but in "Stand and Deliver", Edward James Olmos tells the kids in his math class that "You got to have the ganas." Perhaps I'm getting old. Perhaps sitting on my rating floor is getting to be too comfortable. But I'm finding that my priority is shifting to having a good time rather than winning. Do I really want to win the club championship? It should be a rhetorical question answered with an emphatic yes, but somehow it's not. Continental Chess Association is running the new Western Chess Congress tournament in the East Bay within a couple weeks of the Far West Open. Chess is coming to my doorstep, yet I don't think I'll play in either tournament, not because of a lack of funds or time, but I just can't psych up for the battle.

On Facebook, my brother-in-law got me hooked on a silly pseudo-adventure game called Dragon Wars. There is the gaming aspect of beating up AI monsters and taking their treasure, but there is also an aspect where you match up with other Dragon Wars players and battle for glory and treasure. I enjoyed seeing the new monster quests, but when other players beat up my character, I only got slightly annoyed. There is a small voice that wants to be vindictive as the game seems to engender, but so far I haven't succumbed to the dark side of the force.

I've been helping direct some scholastic tournaments. It's funny watching children struggle to manage board, pieces, clock, scoresheet and rules. Sometimes, kids forget to punch the clock and end up taking two turns in a row because they think that the clock button being up means it's their turn again and nobody is paying attention to what's actually moving on the board. Many mates in 1 are missed. Kids' technique often requires an extra queen and rook for mating material. It's only been two tournaments and I've seen kids come back from being down a rook and a knight, queening a pawn because the opponent got careless, and winning the game. I've seen kids stalemate with two extra queens, a rook, and a knight against a bare king. The players barely know how to call touch move let alone illegal moves. 50-move draws and three-time repetitions are never claimed, but they could be useful because I've seen players just keep checking with their queens, leaving their extra pieces at home. We have an extra rule that checkmate and stalemate must be verified. One team had the match in the bag until one player proposed a draw with an extra queen because he was afraid he'd screw up. They ended up losing the playoff. One child burst into tears for the last ten minutes of the game and just let his time run out. I thought of Tom Hanks yelling "There's no crying in baseball!" in "A League Of Their Own". All in all an entertaining new dimension to chess.

Lest you get the wrong idea, it's not that my main reason for directing kids' tournaments is seeing all the errors. It's refreshing to see children in their naive states before the years of frustrating plateaus squeeze all the ganas out of them. The parents have been surprisingly free of any craziness so far.

Well, back to my DAWG. If I could just figure out the algorithm for an iterative node depth counter...

Friday, February 6, 2009

Chess For Tigers

Last night I played a Class C player in the club championship qualifier. I had a few jitters about an upset, especially because the week before, just such an upset had occurred. Alekhine said "During a chess competition, a chess master should be a combination of a beast of prey and a monk." The late Simon Webb devoted a chapter in "Chess For Tigers" to "How to catch Rabbits".

"Do you know how Tigers catch Rabbits? Do they rush after them and tear them limb from limb? Or do they stalk them through the bush before finally creeping up on them when their resistance is low? The trouble with the first method is that even Rabbits have sharp teeth and when cornered can be surprisingly ferocious. So a sensible Tiger takes no chances - he patiently stalks his Rabbit, and when the poor thing makes a bolt for freedom, he pounces and kills it swiftly and easily."

Webb goes on to basically recommend the Keep It Simple Stupid method of chess plus waiting for your weaker opponent to make a couple mistakes. For the most part it worked for me in this game, but there were still several good moves that I missed.



Plus, I struggled with several of Blue Devil Knight's coach's rules, namely #1, #2, #4, and #5. But it was fun to watch the woodpile imbalance grow. As a contrast, Drunknknite sought complications by violating #3. I wish I could play like a swashbuckler.

I'm afraid I have come to the admission that my style is quite boring and tame. I'm a mostly toothless tiger these days. But I'm trying to play sharper openings to get the Eye of the Tiger back.

Monday, February 2, 2009

Reno Blogosphere

Nathaniel has joined the blogosphere in Reno. You can check out his site at http://64squaresofmymind.blogspot.com/. Eric Shoemaker has revived his blog again at The Wizard's Castle. I'm experimenting with the possibility of linking to ChessBase-generated games like Drunknknite has already done. Here's Nate's game in a simul with GM Kudrin.

Sunday, February 1, 2009

Canterbury Tale

Rowan Williams, the Archbishop of Canterbury

On Blue Devil Knight's resurrected blog, he posted Part 6 of his review of Rowson's Chess For Zebras. Because of BDK's discussion, I bought Chess For Zebras, mostly from the good things I was reading, but partly because I own Chess For Tigers by the late Simon Webb and I can't resist collecting a set of books on an animal theme. I also own The Hippopotamus Rises, but it's not quite in the "Chess for (animal name here)" format. The discussion turned to Rowson's opinion of how we think about a chess position and that Rowson doubted the utility of the natural language narrative. His point was that NARRATIVES correlate more with weaker amateurs while IMAGES about how the position is resolved and evaluated correlate better with how strong professional players process the position. Not that I wish to contradict Rowson or even BDK, but I found it useful to understand the following endgame position in terms of language. Otherwise it didn't make sense to me. Plus, my memory requires all kinds of verbal and nonverbal underpinnings these days.

Centurini 1856. White to play and win.

This position was first shown to me by a friend at the club. He whispered a couple sentences to a low-rated kid to defend the position. I floundered about for a while gaining nothing except that I noticed that the kid kept returning to attack the d6 square. Only by inference did I begin to suspect there was something crucial about d6. My friend showed me the solution, but it didn't sink in why the d6 square was so important until four years later (a month ago) when I could verbalize what was going on.

We begin with White's winning plan, Plan A: to evict the Black bishop from the h2-b8 diagonal by placing his own bishop on that diagonal. Since c7 is guarded twice and the Black bishop can mark time on the diagonal, then the route to victory has to go partly through...

Plan B: to maneuver the bishop through the g1-a7 diagonal to a7 and then to b8. Will Plan B work? The only way for Black to hang on once the White bishop gets to b8 is to move his own bishop to the g1-a7 diagonal, wait for the enemy bishop to move out on the diagonal h2-c7 diagonal so that the pawn can advance, and then post his own bishop on a7 to kill the newly born Queen. But, assuming White retreated his bishop to e5, f4, g3, or h2 can then put his own bishop en prise on the g1-a7 diagonal to distract the Black bishop at a7. The pawn can then queen by force.

So Plan B works if Black simply allows it. In a sense, this endgame helps support the endgame Theory of Two Weaknesses. If there are two weaknesses to spread the defense enough, the stronger side can win by quickly switching targets. But Black has a defensive resource in that his king at c6 can move to a6 whenever the White bishop gets close to the g1-a7 diagonal.

Centurini 1856. White to play and win.

From the diagram position, 1.Bh4 Kb6 2.Bf2+ (2.Bd8+ Kc6 simply repeats the position.) Ka6 and the a7 square is defended. If the White bishop tries to tack back to d8, the Black king comes back to c6 to prevent Bc7: e.g. 3.Bd4? Bd6 4.Bf6 Kb6 5.Bd8+ Kc6 and now the position only differs in that the Black bishop is at d6 instead of h2.



This opens a new possibility that is not quite enough. 6.Be7 tries to distract the bishop from its guardianship of the b8 square, but 6...Bh2 Black wants none of it and returns to a square where it cannot be chased.



Now notice that the White bishop at e7 could get to a7 in two moves if only the Black king at c6 wasn't covering the pivot square on c5. This provides the winning idea and is the key to understanding why d6 is so crucial to this endgame. So White can take another crack at it. 7.Bh4 Kb6 8.Bf2+ Ka6 9.Bc5! preventing Bd6.


9...Be5 10.Be7 Kb6 11.Bd8+ Kc6 12.Bf6 Bh2



Notice that this diagram after move 12 is different from the diagram after move 6 in that the bishop can now pivot through d4 to get to a7 instead of c5. The Black king is now caught with his pants down. 13.Bd4! Kb5 14.Ba7 Ka6 15.Bb8 Bg1 16.Bg3 Ba7 17.Bf2 and the pilgrims finally get to Canterbury.



My tale of this endgame is that White must maneuver his bishop through d6 on his way to e7 and d8 in order to prevent the Black bishop from being in the optimum square at d6. When the White bishop pops back out from d8, it can quickly pivot over to a7 without running into the Black king. Whether this information is "better" stored in my brain as an image or as a narrative surrounding the d6 square, I'm not sure. But now that I can say it aloud, I feel that I understand it or grasp it, which is better than feeling like it is a memory that will run away as soon as my hippocampus turns its back.

Friday, January 30, 2009

Divergence

This is the third part of my series of -ergence-themed posts. I was going to call this one "Two-Timing" but realized "Divergence" ties my ideas and past posts all together.

I mentioned in my last post that "The Big Bang Theory" is currently my favorite show. This is mainly because of the brilliance of Jim Parsons who seems cast as a supporting actor, but who usually steals the show. He's a young gangly actor who seems to have studied the comic stylings of both David Hyde Pierce and Rowan Atkinson. Again, the pilot begins with the two main characters discussing the mysterious properties of the dual slit experiment. The weirdness of quantum physics comes into play in that electromagnetic radiation seems to behave differently when you're looking at it directly versus not looking at it.

A while back I recorded a Nova episode about Hugh Everett's son Mark's quest to learn about his late father's work. Everett's theory was that whenever a quantum event happens, such as a physicist deciding to look at a dual slit experiment, the universe splits amoeba-like into two universes and both universes go on their happy way. This is very hard for us mere mortals to understand because we have both intuition and third grade science class telling us that matter has mass and takes up space. Where do you hide a whole second universe of matter where it won't interfere with traffic in this universe? Anyway, Mark Everett talked of two selves: one which took a hiatus from his music career to revisit some painful memories of his father and one who just stayed home on his front porch and smoked. One more footnote: I watched the mediocre movie "The One" where Jet Li plays a monomaniacal universe hopping serial killer who gets stronger every time he kills his parallel self.

Whew! No wonder I don't have readership. Get to the point already! Last June, I visited my brother in the bay area. As I was leaving, my sister-in-law gave me my brother's old Palm Tungsten computer. At first, I tried to put chess software on it, but finding it was only capable of playing about 1600 chess or so left me wanting more. Eventually, I found a program for playing Scrabble. It was great: no tiles to clean up or keep track of around the kids, no scoresheets to tally. It even looked up obscure words for you.

My wife and I really got into playing Scrabble; so much so that we both signed up to play our first Scrabble tournament this past Martin Luther King weekend at the Sparks Nugget. The Scrabble tournament was actually three tournaments in one: an early bird special on Friday, the main event from Saturday through Monday, and night Scrabble on Saturday and Sunday evening. My wife and I only signed up for the early bird, which was a 10-hour, 8-round round robin with the other 7 people in your rating group with a rematch in round 8 versus whoever is closest to your performance.

Scrabble ratings have some resemblance to those in chess with the range of almost all players between 500 and 2000. Since I've always been above average in chess, I went in kinda cocky thinking that I should at least make about a 1200 provisional rating. It was a miserable, humbling experience. Basically, I lost to everyone except that my wife and I split our fourth-round game and the rematch of doormats in round 8. My provisional Scrabble rating is 500 which is comparable to 150 in chess. My wife won one more game than I did and is rated 551.

So yeah, I've been unfaithful to chess. ChessLoser wrote a nice awkward conversation a year ago that sums up our twisted relationship with chess. Chess is still a much greater game than Scrabble. There's the luck factor of drawing the right tiles that offends the meritocracy of chess. But it's interesting that there is a much more even gender balance for Scrabble including in my own household. There might even be more women. I wouldn't recommend a Scrabble tournament for picking up hot chicks, though. My round 2 opponent who ended up second in our 10-person division has about a 2000 Canadian chess rating, but he had chosen to emphasize tournament Scrabble. There's a small bluffing factor in Scrabble for playing legitimate-looking phony words. Time control was G/25 with 10 points per minute penalty for overstepping on the clock.

A strange thing has been happening to me lately. I've been staying up nights playing Scrabble against my handheld computer. It's a junkie drive that I remember having with chess a long time ago. Partly it's because my handheld computer is annoying and deserves to be put into its place, yet it keeps on beating me. Another dysfunctional relationship with a board game, this time 15x15. There is a crazy aspect to tournament Scrabble that is virtually identical to chess. I've heard so many good things about Word Freak that I'm going to have to read it soon. Perhaps I'll read it back to back with King's Gambit to compare the crazy.

Scrabble has reams of words, extensions, and hooks with bingo stems to memorize. There are also rack management and board management strategies which are sort of like the balance of offense and defense in chess. Don't paint yourself into a losing corner. My fifth round opponent had been tracking all the tiles that were played and at the end of the game, he knew that I had four I's and a couple U's, so he milked his plays in the endgame to maximize his winning spread. His 300-point spread against me became the decisive tiebreaker in winning our section.

I think I'm going to straddle both universes for a while. Sometimes I'll be a particle. Sometimes a wave.

Tuesday, December 30, 2008

Convergence

I originally wrote this a month ago near New Year's Eve.
Today I realize I've been living under a rock. Well, not so much realize, but had highlighted once again. My brother-in-law has been recommending for some time that I check out Firefly since I made the declaration that "the new Battlestar Galactica is the FINEST science fiction series ever aired on network television". I especially appreciate the contrast of man-made life form searching for the meaning of life partly through monotheistic litany and partly through tormenting its former creators, who have their own polytheistic mythology and search for meaning following the Judgement Day wrought by their own version of Skynet. I rented the first disc of the Firefly DVD series and then promptly purchased the whole boxed set. Listening to writer/director/songwriter Joss Whedon talk about his various arts simply provokes awe. For example, he described two of his main characters as coming from different genres, western and noir, so he consulted his professor who promptly recommended some examples of noir westerns to study. I didn't even know there were different brands of western. Because I fancy myself a purist of sorts, I had resisted looking into Firefly's mish-mash of dystopian sci-fi western, but I found it incredibly refreshing to the point that I joined the legion of fans who treated the cancellation like the accidental death of a family member: sudden and painful to accept.

At its heart, Malcolm Reynolds is the unconventional hero who doesn't so much triumph over unspeakable fears with bravado and resourcefulness, but has to summon the strength to overcome a universe that has killed his faith and hope as well.

Take my love.
Take my land.
Take me where I cannot stand.
I don't care, I'm still free.
You can't take the sky from me.

Take me out to the black.
Tell 'em I ain't comin' back.
Burn the land, boil the sea.
You can't take the sky from me.

There's no place I can be
since I've found serenity.
But you can't take the sky from me.

While I was catching up on Firefly, Law and Order had Katie Sackhoff (Starbuck on Battlestar) on one week and then two weeks later, it had a judge named Malcolm Reynolds.

A day after finishing Firefly, I had the chance to finally watch Children of Men which my sister had raved about. Amidst the backdrop of Bush bashing, the main character played a similar existential hero, one who by all rights should have lost all motivation, hope, and faith, but who soldiers on despite. However, I failed to appreciate Alfonso Cuaron's brilliance, even in the technically difficult, long single takes of cinema verite similar to Saving Private Ryan. I found a reviewer who eloquently expressed much of my own feeling, which is a little analogous to Wahrheit's reaction to my expressed affection for Starship Troopers. "Some piece of Eurotrash director took a work of serious ideas (agree with them or not) and deliberately twisted and distorted them in order to trash the very concepts that the original work embodied, THEN was allowed to use the original title and draw people to the theater in the belief they were seeing a movie that was actually 'based on' the book."

Besides the criss-crossing linkages with Law and Order, the main converging theme seems to be the existential noir character, the one living in quiet desperation. Even in a time of increased need for escapism, it's people's story of misery and how they deal with it that both entertains me and provokes me to think. In my pathetic way, I try to relate my own "suffering" to the movie. "Oh, woe is me. I can't figure out how to memorize the Najdorf/calculate open positions/maintain positional dynamism of my pieces."

I even had a two-week period where I began to watch all kinds of "Married...with Children" reruns. My friend ragged on my viewing choices for a while, but it was all in good fun because he admitted that he was not wholly unfamiliar with the Bundys. He steered me toward "The Big Bang Theory" which is my new favorite show. It's kinda like Frasier meets Bosom Buddies, only instead of two elitist psychiatrist brothers there are two geeky physicists. The opening of the pilot has the two roommates discussing the mysterious behavior of light in the double-slit experiment while they're going to a sperm bank. Before "Big Bang" he recommended "Dr. Horrible's Singalong Blog" which is yet another example of Whedon's brilliance. I think Whedon not only wrote the story and characters, but also the music that the characters sing, sometimes in interlacing melodies.

Seeing Whedon' brilliance, I have the same reaction that I had when I was about 11 and listened to 8-year old Tammy Huang play virtuoso piano. I want to give up writing since I really got nothin' to say. The noir character would have soldiered on through the crushing oppression of it all. At least I'll have a little more time for chess.

Thursday, November 20, 2008

Flash


Flash Gordon was a very mediocre movie blending bad 70s with bad 80s. This title prompted my memory of the sound of Queen singing in high falsetto chorus "Flash! Fla-ash!"

A while back, I tried to emulate Rolf Wetzell's Chess Master At Any Age. I discussed it in this post. I even wrote a computer program in C# to help me make nice flashcards.



I've spent a couple days back at Chess Tempo. Since I've missed 20 of the last 50 problems (and my rating has plummeted), I decided to try to solidify the learning by making a flashcard of each missed problem.

Here is a pdf file of my efforts to date, generated by my chess flashcard program. Going over some of the older flashcards, I remembered a Python-inspired title that could lead to another Python-themed post. See if you can spot it.