Three-car pileup whilst waiting in traffic…

I was involved in my first car accident as a driver last week. It was a bit of a shock, and I’m glad to say that no-one was hurt and the car wasn’t too badly damaged. I was in traffic, sat waiting behind a car that wanted to change into a very busy lane. The …

Learning Unit Testing VII – Running and Redesigning

I can see this page 10 being a pretty big thorn in my side. After stating fairly clearly models can move up to their move rate under the ‘Moving’ heading, it then says A running fighter can move at double speed: 8″ rather than 4″, for example. This is going to have a fairly large …

IE9 Beta + VS2010, and a blog-reading tip

I’ve been experimenting with IE9 beta in work recently, and been finding it annoying when I go to show someone what I’ve been working on and need to refresh a page a couple of times after running it from Visual Studio 2010 before it ‘takes’, and will display the page and work properly. I’m getting …

Unimaginative film posters

I saw a poster on the side of a bus the other day, advertising the film London Boulevard. I thought it looked a bit familiar… It’s almost identical to the poster for Quantum of Solace. Man standing protectively in front of woman, looking in different directions, no background details, gun held casually by the side, …

Back on the Wagon

My gaming has been suffering recently. I’ve definitely been on target with “spend less” – although the temptation to grab a new rulebook or two has been pretty strong, I’ve managed to avoid it. Unfortunately, real life has been getting in the way of getting any actual gaming done – I’m busy, my gaming group …

Learning Unit Testing VI – Code Coverage

Before I get into finally finishing off that blasted page 10, I thought I’d go through a code coverage run to see how I was doing. Test Driven Development, see, everything should be covered by a test. 7.41% of the code is not covered by tests! I must be doing this wrong… Phew, that was …

Learning Unit Testing V – Refactoring Mistakes

I implied in the last post that I had made a mistake when I moved the MoveModel code into the Model class from the MovementManager class. Now, tests on the MovementManager class are actually testing functionality in the Model class. I also discovered that I am not properly testing the ‘GetDistanceFrom’ method with known data …

Learning Unit Testing IV – Diagrams and Mathematics

Programming uses maths. It’s hard to ignore sometimes, especially when modelling something that is inherently graphical and position based such as a game. I’ve decided to give the models three different position indicators – PositionX, PositionY and PositionZ. This will describe their exact position anywhere on the board – including on a ladder, a walkway …

Does anyone like spam?

I’ve just had to put CAPTCHA on the blog comments here, because of too much spam. The spam filters are fine, but there was just too much spam being added. Part of the problem was that BlogEngine.NET’s SQL provider deletes a post (!) before re-adding it, with every comment, all over again. So to add …