11.20.2006

This House Is Clean

I have just finished reinstalling my operating system and all other files on my laptop. My computer is squeaky clean.

Oh, and by the way, I was in Disney World for the last week.

11.08.2006

Pineapple Express


It's rained a lot the last few days here in Seattle. That's what happens when moist air blows up from the Southeast. I think this picture sums it up quite nicely.

11.07.2006

Shuffling Cards Is Hard Work

It's always weird when my Chemical Engineering background shows its ugly face in unexpected places.

I've been working on a collectible card game for the last couple of months and have just completed the second major revision of my game concept. One of the more annoying hassles with these revisions is that I have to print out, cut and then shuffle the revised deck. It always bothers me that putting the new deck together takes almost as much time as the re-design does.

I've managed to reduce the printing and the cutting to about as efficient a process as they can be without investing in new tools. There's definitely more fat to trim, but I need to wait until I know exactly what the base deck is going to look like.

Until recently, shuffling was the real beast and wildly inefficient in that I could spend a significant amount of time shuffling with a mechanical card shuffler and still come away with a deck that I just KNEW wasn't as random as it should be. The deck is currently quite large (I'll shrink it once I have a stable mechanic and can use play testing to figure out what the minimum optimal size is) so it's difficult to get all the cards spread out through the deck.

Usually what I do is split the cards (which start off as a highly ordered stack where numerous cards of the same type are all right next to one another) into a number of smaller decks that can be processed through the mechanical shuffler. I then split each of these smaller sub-decks in half, combine halves from different sub-decks and then run each recombined sub-deck through the shuffler a number of times. I then split each subdeck in half again and repeat the process. If I'm methodical I can get a decent amount of randomization across the deck, but I have to shuffle a number of different sub-decks that is, at minimum, equal to the square of the initial number of sub-decks. Even after all that, the amount of randomization is sub-optimal.

Shuffling is annoying and I hate doing it. So, having printed and cut the most recent revision, I decided to take a shower and vote before getting down to the business.

Oddly enough, showers seem to be where I've had most of my (hopefully) good ideas regarding my card game, and today was no different. My mind was wandering haphazardly around the topic of card shuffling, when I suddenly thought about, of all things, molecular diffusion.

Imagine if you will, a large tank filled with salt water. Then imagine that I very carefully and slowly add another volume of water, this time with no salt dissolved in it, such that the layer of fresh water essentially sits on top of the salt water. The dissolved salt will immediately begin to diffuse via brownian motion into the fresh water. The water will also diffuse from the fresh water layer into the salt water layer, though probably at a slower mass rate.

Diffusive mixing of liquids is an exceedingly slow process. I remember reading in one of my mass transfer texts that after a year the diffusing molecules described in the system above would only have managed to penetrate a few centimeters into the other layer. This why you stir when you want to mix two things together rapidly. Adding convection into the mix greatly increases the rate of mixing.

And that's the mental leap. Shuffling cards in the previously described manner is essentially a macro version of diffusive mixing. No matter what I do, it's going to take a long time to randomize the molecules, err I mean cards. The only way to increase the rate of mixing is to add in convection. So that's what I did.

I grabbed two large plastic tubs from the basement closet under the stairs and dumped the entire revised deck into one of the tubs. I then transferred those cards into the other tub by letting them fall into it over a distance of a couple of feet. Within about five minutes, the deck was entirely random. Now all I have to do is go through all the cards, repack them into a proper deck and flip half of them around. That will still take far less time than it would have to properly randomize the deck via diffusive mixing.

11.01.2006

Sir! Please Put The Christmas Wreath Down!

My partner sent out this email about something that happened last night. I'm just going to paste it here for posterity.

Happy Halloween!

You'll never believe the hilarious end that Aaron and I had to our Halloween night.

We go all out for Halloween with ghosts, ghouls, gravestones, dead bodies, cauldrons, mannequins - the works - and thus we've plunked quite a bit of money into decorations. In past years, teenagers have decided to steal some of the decorations out of our yard late on Halloween night and so we've begun the habit of moving all decorations into the garage after the last trick or treater to avoid theft.

By about 9:00 p.m. Halloween night, the trick or treaters had peetered out and Aaron and I, along with our friend, Suzanne, began to remove our Halloween deocrations from the front garden. This took only approximately 20 minutes (setting up takes 2 days!). Suzanne then took her leave and Aaron and I began to take care of the mannequins and pumpkins that were inside the house. By 9:30 p.m., I was standing on a stool on the back balcony removing a hanging ghoul. I noticed a group of late trick or treaters walking across the street. I quickly jumped down and shouted to Aaron to turn off the lights and close the blinds (as this is what you do when you don't want anymore trick or treaters). I ran inside and helped blow out candles and the like until the inside of the house was completely dark and all Halloween decorations had been removed.

Aaron sat down to work at his computer in the dark kitchen while I ran downstairs to fetch the Fall wreath to put on the front door. When I returned to the main floor, I noticed a light flash across our side windows. I didn't think much of it until I looked through the window adjacent to our front door and saw two people moving around in our front yard with flashlights. I moved closer to the door and noticed two police cars outside and recognized that the people in the front yard were police officers.

"Aaron?" I called into the kitchen, "Why are their police officers on our front lawn?"

Assuming the officers were looking for a thief who had escaped into our neighborhood I opened the front door, the fall wreath still clutched in my hand, and walked out onto our porch. The porch was pitch black as we had turned off all outside lights in addition to those inside. Suddenly, flashlights were pointed at me and a voice shouted at me from the yard (our porch has a half flight of stairs down to the yard).

"Sir! Please step down here! Quickly, Sir!" The voice boomed from behind the flashlight.

I descended our front stairs assuming that I was in danger as there was a "bad guy" using our backyard to hide from the police and the officers were attempting to protect me. I came face to face with one of the officers, a stocky, somewhat attractive white male, and he looked at me very seriously and continued to speak in his firm tone.

"What do you have in your hand? Do you live here, Sir!? Who are you?"

For a fleeting moment, I thought my friends had gotten me a stripper and this was all a joke. But then I noticed a third police car pull up to the house and before I knew it, six police officers were surrounding me. They continued to ask me who I was and if I lived in this duplex. I kept explaining that my partner and I lived in the house and that it was a single-family dwelling, not a duplex. I also explained that it was just a Fall wreath in my hand and I slowly set it down on the front steps.

By now, Aaron had descended the stairs and joined me on the front lawn. The officers continued to pummel us with questions and we kept explaining that we lived at this residence and that there was no one else in the house. They didn't seem to believe us and they kept asking the same questions over and over.

One of the officers checked Aaron's car in the driveway and asked if one of us was Aaron Cooke. Aaron, of course, raised his hand in response.

The head officer finally explained that a burglary had been reported at our house and they needed to confirm that we were not the burglars! The lightbulb went off in my head and I told the officers that we had quickly removed our extensive Halloween decorations and it may have looked as if we were robbing the house - especially when I was high on a stool on the balcony removing a hanging ghoul.

Two of the officers then asked if they could come inside with us and examine our ID's. We continued to explain that the fast removal of our decorations most likely looked suspicious to a neighbor who had not yet met us. When the officers entered the house, they saw the back balcony and it became clear to them that the neighbor assumed that the back balcony was the entrance to the second-half of our supposed "duplex" and my actions to remove the ghoul very much could look as if I was breaking and entering.

The officers examined our ID's and clearly saw that we did indeed live in the house. By then, the officers had calmed down and began laughing with us over the circumstances. At that point, a fourth police car pulled into our driveway! The officers explained that they take burglary calls very seriously and had responded within minutes (no lie!) to the 911 call from our neighbors.

As the officers apologized and thanked us for our cooperation on their way out the door, I asked them if they'd be willing to take a picture with us as our friends would never believe what happened.

Five officers posed with us on our front stairs - the sixth officer took the picture and the other two remained in their car.

As they departed, I jokingly told the lead officer that I thought, at first, he might be a stripper. This caused all of his colleagues to burst into laugther. He looked up at me sheepishly and told me that I had just given his fellow officers teasing ammunition for weeks to come. I apologized, but he then grinned at me. I think I gave him a bit of an ego boost that night!

So...if you live in West Seattle and your report a burglary, know that four police cars and eight officers will come to your rescue!

Enjoy the pic of Aaron and I with Seattle's finest! We're considering using it as this year's Christmas picture!

Happy Halloween!!

Scottland & Aaron