Saturday, April 6, 2013

"Catwoman is in my kitchen washing dishes. This is weird."

That was my status update when The Murloc returned from Wondercon last Saturday.

So, while holy people were doing holy things during holy week like taking unholy toddlers to the triduum and such, the Murloc was running around getting her costume ready for Wondercon, in Anaheim, CA, March 29-31.

For this, she created a brand-new classic Catwoman outfit:

Let's Code - CPM2DoB Part 4: WHAM!

That, my friends, is the sound of running head-first into the solid brick wall of poor code structure.

I just wanted to let you know that yes, this project is still alive. As Easter loomed, I had a major project due at work that kept me from working on it much, and The Murloc also had a thing happening that required I look after the boys at home. All in all, not much time was to be had for coding.

But I did get it working and playable! (Barely.)

So back to the aforementioned skull-shattering, neck-breaking, spine-telescoping, head-on collision. I was probably about an hour away from a playable build of the game, just putting the finishing touches on the methods that handled pieces movement, damage, captures, transformation, and victory checks, when I discovered a fatal flaw in my code organization. It was caused mainly due to laziness and not thinking ahead, but resulted in a flaming crash.

(The specifics were that I was writing the piece transformation method, y'know to allow a pawn to turn into a queen. Unfortunately, the master list of the different piece types (or "masterPieces" as it's known in the code), was not visible in scope to the transformation algorithm. I could have patched it by awkwardly passing the list as a parameter through the several layers of function calls necessary to get it where it was needed, but that would have been an awkward kludge on what was already a very kludgy mess. The alternative was to move the master piece list to the class where it was needed. But that required one change, which required a restructuring over here, which meant these other methods wouldn't work and would need to be redesigned, which meant this part was now over-complicated and should be streamlined, etc., etc. All in all, what was looking to be an hour or so of coding turned into a week. On the plus side, the code was much better organized once I finished.)

So after struggling fuming, and fussing, I finally got a working build! You can move pieces! And capture! And it will even check for victory conditions! (Yay!)
Rememeber: victory is capture-based, not checkmate-based, since checkmate is impossible to determine for random damage and kings that can fight back after taking a few hits.
NYI: Auras.

Friday, March 29, 2013

The Joy of Suffering

The steeple of the town church was just barely visible over the horizon, about five miles away. That was as far as Giuseppe was allowed to venture on his own. He stopped in the middle of the dirt road, staring out towards the hills beyond, and waited.
The first sun had set a little over three hours ago, and now the second one, further and dimmer, was dipping ever closer to the horizon. A cold wind was blowing from the south, stirring the fields of dry grass and making them look for all the worlds like a beige ocean, waves crashing and white caps shimmering in the waning light. The air was pregnant with the smell of straw.
A shiver caught Giuseppe off-guard. Now that he had stopped, he was beginning to cool off. The antarctic breeze made the small rivulets of sweat feel as if they would freeze to his skin.
The wind carried with it the deep bong of the church bell, sounding the evening Angelus. Giuseppe turned around to look.
You could go back, a whispering voice as cold and subtle as the wind said to him. Papa would understand.
Read the rest here.

Sunday, March 24, 2013

Quick Takes Addendum

Forgot some quick takes yesterday

What do you get when you have a cumulative 9.75% off at Target and a tax return? Everything, apparently. We are proud new owners of everything Target sells.

In our defense, I had been making a list for about two months of the things we needed, in hopes that one day  the gods of crass commercialism would look upon us with favor and bestow the means and opportunity to spend our fleeting wealth. Among the items purchased were:

New dress clothes for Damien. He had no dress pants that fit him. Well, I suppose technically they did fit, but they would have been better-classified as dress shorts at this point. Conveniently, Anthony automagically has a whole wardrobe that suddenly, mysteriously fits him.

A new belt for me. I should take pictures of my old one. It had run the gamut from hilarious, to sad, to hilariously sad.

New undershirts for me. I still occasionally wear undershirts that me dear mother bought for me in high school. You know, the ones I used to wear to dance?

New pillows. I can't remember if the ones we have now were bought new when we got married, 9 years ago, or moved into this condo, 7 ½ years ago.

Whiskey and rum, to end the torment and misery felt when looking up at the liquor shelf, sighing loudly, and muttering forlornly, "why is the rum gone?"

The Murloc also purchased sundries and miscellany. I have learned not to look too closely at the things she purchases. They might bite.

#

And Anthony is sick again. Fever of 102°-103° running for the last couple days. He just finished a dose of antibiotics for his last illness/ear infection on Monday. This marks the fourth consecutive Sunday that he's missed Sunday Mass due to illness.

The Murloc went into full panic/remorse mode, wondering why her baby gets sick so often, and questioning, among other things, if he's sick because of her cooking or because she doesn't clean the house enough. Discussing this with a family friend, it was remarked that nobody can beat oneself up quite like a mother. It was also mentioned by said friend that "if not cleaning caused illness, then we'd [her family] all be dead."

Saturday, March 23, 2013

Quick Takes

A-yup

It would have just been embarrassing if Microsoft couldn't provide better results for help searches on their own programming language.
 I for one blah blah Google Overlords blah blah....

This bit at the bottom was extra funny, though.

Bing: so bad they have to pay you to use it!
#

Thursday, March 21, 2013

Brothers

Because, apparently, it isn't Lent unless I've written a short story.

You know in the holos, when the good guy finally catches up with the bad guy and winds up to deliver a solid blow right to the bad guy’s kisser? You know what they never show in those movies? How much belting the bad guy hurts.
That was the first thing I noticed after I sent my brother reeling backwards. Dadgum, my fist stung like it had been slammed in the door of dad’s hovercar.
“What the heck was that for, John?” my brother screamed, blood trickling from his mouth, trying to act all innocent-like.
“You know perfectly well, James!” I screamed back, trying to ignore the pain in my hand.
“Like spit, I do! I’m not some Tellurian mind-reader.”
I scowled at him, as if the look could bore a hole through his head. “Mary,” I said.
He rolled his eyes. “You’re not hung up about that, are ya? What’s the big deal?”
I lunged for him, but didn’t catch him off guard, like the first time. He blocked my jab, but I caught him with my left hook. He stumbled to the ground, and now both my fists hurt like the dickens.

Read the rest here.