Header tag

Thursday, 2 January 2025

Solving PEMDAS Problems

PEMDAS Problems

PEMDAS problems are a common challenge for anyone using math – especially when you're learning PEMDAS in school for the first time, and without much real-life context. PEDMAS stands for Parentheses, Exponents, Multiplication, Division, Addition, and Subtraction. It's a set of rules that tell you the order to follow when solving a math problem to get the right answer, and an answer which mathematicians can agree on internationally.  PEDMAS is the term in the US; BODMAS is the term used pretty much everywhere else.  I can't help wondering if this is going to end badly.

  • Parentheses always come first. You must calculate everything inside the parentheses before moving on.
  • Exponents (like squares, cubes, or square roots) are next.
  • After that, it's the arithmetic functions: Divide, Multiply, Add, Subtract.  In BODMAS, Division always comes first.  For some strange reason I have not been able to fathom, in PEMDAS, you just do everything from left to right.  It's sure to cause confusion, and a quick look at social media will tell you that.  How can it not, if 3 *4 /3+2 is PEMDAS does 3*4 and then divide by three, and then add two?  If it's BODMAS then you do the division first, even though it's not on the left.  Let's leave that for a whole other discussion.

Why is PEMDAS Important?

Imagine you have this expression: 3 * 4 - 2

  • Without PEMDAS, it's unclear whether you should multiply 3 by 4 first, or subtract 2 from 4.
  • PEMDAS helps avoid confusion and makes sure everyone gets the same answer.

Let's Look at Some Examples:

  1. (3 * 4) - 2

    • Parentheses first: 3 * 4 = 12
    • Subtraction: 12 - 2 = 10
  2. 3 * (4 - 2)

    • Parentheses first: 4 - 2 = 2
    • Multiplication: 3 * 2 = 6
  3. 4 * (6 - 2²)

    • Parentheses first:
      • Exponents: 2² = 4
      • Subtraction: 6 - 4 = 2
    • Multiplication: 4 * 2 = 8

Why Does PEMDAS Sometimes Cause Trouble?

  • Tricky Online Problems: Some people intentionally write confusing problems (like 1 + 7 * 3) to see if others can solve them correctly.  There is a correct answer, but the ambiguity is a bigger problem than the math.
  • Everyday Math: Even simple situations can involve PEDMAS. For example:
    • If each car has 4 wheels and is towing a caravan with 2 wheels, how many wheels are there in total for 4 cars?
      • Correct: 4 * (4 + 2) = 24 wheels 
      • Incorrect: (4 * 4) + 2 = 18 wheels.  Four wheels on four cars, and two for a caravan is not enough.

PEMDAS helps us avoid these kinds of mistakes and ensures we get the correct answer every time!



Sunday, 29 December 2024

First times of 2024

You may think that as you get older, you do fewer and fewer things for the first time.  But actually, no, that's not the case.  And here's the list of things I can remember doing for the first time in 2024 - in no particular order.

First time keeping a close eye on how much chocolate I eat, and cutting beetroot out of my diet completely.  In 2023, I was diagnosed with kidney stones - not serious, but potentially painful.  They had been the cause of some discomfort for me in the second half of 2023, and I had various medical checks; the recommended treatment for them is to manage them through my diet.  Anything high in oxalates is out; anything with medium levels has to be taken in moderation.  So, I've not had any beetroot for the whole year, for the first time ever (this was a sad loss for me, I love pickled beetroot) and I've watched my chocolate intake.  I don't think I had any chocolate in January or February, then I lightened up a little.  It's not all bad news, so don't sell your shares in Cadbury's just yet!

First time seeing the Northern Lights.  Twice.  The first time I didn't actually think I'd seen them - they looked more like light pollution on the north horizon.  The second time, there was no mistaking them, even if they were still quite faint.

First time leaving the kids overnight with a babysitter, while spending a night with Naomi at a friend's wedding.  That was during the summer, and was a Friday night/Saturday morning.  We didn't go far, which made it an ideal first time for us to leave them altogether for most of Friday and most of Saturday morning.  They went to the cinema together on the Friday; we went to a wedding, meal and disco.  I think we had the best of it.

First time going to an airshow and giving somebody else my camera to take photos.  It worked out well - I got some mediocre video (a combination of the viewfinder on my camera, and the dreadful weather) while Liz took some amazing photos with the stormy skies.




First time using generative AI to produce a picture... and then produced dozens more.  I've also used generative AI (Chat GPT) to write BASIC programs for me.  I have marvelled at the ability of AI to turn text into images, and then got on and started using it without thinking too much about it!

First time laying loft boarding (successfully too).  Our loft is in two sections - the main part and a smaller section.  For some unknown reason, the smaller section (which has its own separate access) was never boarded over, but was very well stocked with fibreglass insulation.  In November, I boarded over most of the smaller section - enough to house our Christmas decorations when Christmas is finished.  That frees up more space in our main loft... for my train set! :-D

First time going on board a warship - the HMS Belfast in London.  We went on a family trip during October half term and spent three days in London; I took the boys round the interesting sights, while Lizzie and Naomi did the art galleries and Shakespeare's Globe.  We saw some locations we hadn't seen before, including HMS Belfast, which is highly recommended and free if you have Blue Peter badges (the boys do).  I went on a tour of a submarine when I was about six, but considering a submarine is all 'inside' with no windows, I can safely say the warship was far more interesting, with a strange alternating feeling of vertigo (on deck) and claustrophobia (inside).  

First time buying a car online, after the previous one started producing more smoke than one of the Red Arrows during their display.  We drove about four miles back home one Saturday afternoon, billowing huge clouds of bluish-white smoke, and deterring all other motorists within 300 yards.  Within 10 days we'd needed to order a replacement - online.  Same model, newer interior.  It's better than the old one too, with more gadgets inside.

First time playing a massive multiplayer online game - Fortnite - and subsequently the first time I bought my own gaming controller.  I've been a keyboard warrior since the mid 80s (almost before the internet was created) and then migrated to a mouse when I started playing real-time strategy games in the early 90s.  I had been borrowing my son's controller throughout January and most of February, and bought myself my own controller with my birthday money in mid February.  It's taken some minor damage to the cables (in early December) and still works perfectly, even if I'm not as good as my sons at playing!

First time learning, and coding in Python.  My programs are not complicated, and they all work on a local PC without any network access, but it's been very interesting and challenging.  I have considerable experience writing in BASIC and Visual Basic, and this was just the next step - learning a new syntax.  I wrote a program which will calculate how long people will have to wait in a queue at a supermarket, and then calculated the time savings from opening two (or more) checkouts at a supermarket compared to just one.  The results were very surprising, and I actually enjoyed analysing the output of the program.  More to follow next year.

In 2022, I became a Trustee for my church - overseeing the running of the administration of the church (legal compliance, health and safety and so on).  In 2024, I was asked and then was nominated to become the Treasurer of my local Scout group.  No, I don't know exactly what I'm doing, but I can operate a spreadsheet with ease, and I'm getting there.

First time going to a gym.  If you've met me, you can tell from my physique that I'm not a regular gym-goer.  Or ever been to a gym, even.  I was described during my teenage years as a bean-pole, and I've not put on much weight or muscle since then (except when I was at university, cycling six miles a day and becoming very trim indeed).  However, December at my local gym was 'bring a friend to the gym' month, so Lizzie brought me.  I've been three times this month, and I've still got the moves to cover 13 miles in an hour on an exercise bike.  It's not quite as scenic as being on a real bike (took Lizzie on a bike ride for the first time ever this year too) but there's less traffic and the weather is more amenable.

First time running on a treadmill - Isaac decided last December that he wanted one (he's a miniature runner), and so last New Year's Eve we bought him a cheap second-hand one.  I used it more than he did, but even so, it wasn't worth the space it took up.  It was fun while it lasted!




Thursday, 5 December 2024

BODMAS Problems

 BODMAS problems are a recurring challenge throughout the life of a mathematician - especially at school or college.  

BODMAS stands for Brackets, Operators, Division, Multiplication, Addition and Subtraction, and sets out the order in which you must work through a maths problem to get to the correct answer.  Brackets (called Parentheses in the US) always come first, and you have to calculate what's inside them before you do anything else.  Operators are 'powers' or 'indices' and include squares, cubes, square roots and cube roots.  The rest are the normal arithmetic calculations.

For example (3*4)-2 is not the same as 3*(4-2).  And without the brackets, you'd be looking at just 3*4-2 which is ambiguous.  It's not clear which way round you're supposed to do the calculations.  What do you do first?


Mathematicians don't make these rules up to be awkward or difficult.  Mathematicians hate confusion, ambiguity and uncertainty, and therefore they use BODMAS and brackets and all these rules so that when they talk to other mathematicians anywhere in the world, they are entirely clear what they're talking about.  They are even more specific and precise than scientists (in my experience) and will take great care to make sure that they are crystal clear about their calculations.

In my experience, mathematicians who understand BODMAS problems don't get involved in the BODMAS questions that go around on social media, where there are no brackets and a whole flame war kicks off between people who defend their answer to 1+5*3.  These are badly-written problems, written that way on purpose.

Let's take a look at some simple examples of BODMAS problems, and identify some of the possible pitfalls along the way:

a) Let's start with (3*4)-2

The brackets here clearly indicate that we should calculate 3*4 first.  3*4 = 12.  12 -2 = 10.

In fact, the brackets aren't required here - Multiplication always comes before Subtraction.

Let's change the position of the brackets:

3* (4-2)

Without the brackets, we'd do 3*4 first, but with the brackets, we must calculate 4-2 first.

4-2 = 2

3* 2 = 6

So there's a clear distinction between 10 and 6.  We must be careful with our BODMAS problems.


Another one:

b)  4 * (6-22)

First is Brackets.  We must calculate the contents of the brackets, which is 6-22.
Within these brackets, we must do the Operator first.  Operators are squares, square roots, and any other powers.  In this question, the operator is the 2 squared.

22 = 4
6-4 = 2

So the contents of the Brackets comes to 2.

4*2 = 8

Let's compare this with the same calculation without the brackets, and use BODMAS to find out the value of 4 * 6-22

BODMAS says that we do the Operators first (there are no Brackets in this question), and we know that 22 = 4

This gives us:  4 * 6 - 4 

Next, we do the multiplication, so 4 *6 = 24
And finally, the subtraction, 24 -4 = 20

So now we have a difference between
 4 * (6-22) = 8
4 * 6 - 4 = 20 

Clearly we're going to have to be careful!

c) This time, let's do a calculation with algebra:

x2  + (2x * 6x) + (x -z)

Remembering to do our brackets first, we get:

x2  + 12x2 + x - z

Operators: we can't do anything further with these at this stage; all that remains now are Addition and Subtraction.  Addition comes first:

x2  + 12x2 + x - z = 13x2  + x - z

And we can't simplify this any further.

Why does BODMAS cause problems?

BODMAS expressions, like 3* (3+5+6) can occur even in simple everyday maths situations.

For example, how many wheels are there in total with on four four-wheeled cars if each car is carrying a caravan which has two wheels?

A car has four wheels; a caravan has two wheels.  That's six wheels.  And there are four cars and caravans, so that's 4 * 6 = 24 wheels altogether.

However, if you misunderstood or miscalculated, you might work like this:

There are four cars, each with four wheels.  That's sixteen wheels.  And two wheels for the caravan makes 18 wheels.

4 * (4+2) is very different from (4*4) + 2.  And that's why we have BODMAS - to help us avoid problems and misunderstandings, in cases from cars and caravans to planets and stars!

Sunday, 24 November 2024

Testing versus Implementing - why not just switch it on?

"Why can't we just make a change and see what happens? Why do we have to build an A/B test - it takes too long!  We have a roadmap, a pipeline and a backlog, and we haven't got time."

It's not always easy to articulate why testing is important - especially if your company is making small, iterative, data-backed changes to the site and your tests consistently win (or, worse still, go flat).  The IT team is testing carefully and cautiously, but the time taken to build the test and run it is slowing down everybody's pipelines.  You work with the IT team to build the test (which takes time), it runs (which takes even more time), you analyze the test (why?) and you show that their good idea was indeed a good idea.  Who knew?


Ask an AI what a global IT roadmap looks like...

However, if your IT team is building and deploying something to your website - a new way of identifying a user's delivery address; or a new way of helping users decide which sparkplugs or ink cartridges or running shoes they need - something new, innovative and very different, then I would strongly recommend that you test it with them, even if there is strong evidence for its effectiveness.  Yes, they have carried out user-testing and it's done well.  Yes, their panel loved it.  Even the Head of Global Synergies liked it, and she's a tough one to impress.  Their top designers have spent months in collaboration with the project manager, and their developers have gone through the agile process so many times that they're as flexible as ballet dancers.  They've barely reached the deadline for pre-Christmas implementation, and now is the time to implement it.  It is ready.  However, the Global Integration Leader has said that they must test before they launch, but that's okay as they have allocated just enough time for a pre-launch A/B test, then they'll go live as soon as the test is complete.


Sarah Harries, Head of Global Synergies

Everything hinges on the test launching on time, which it does.  Everybody in the IT team is very excited to see how users engage with the new sparkplug selection tool and - more importantly for everybody else - how much it adds to overall revenue.  (For more on this, remember that clicks aren't really KPIs). 

But the test results come back: you have to report that the test recipe is underperforming at a rate of 6.3% conversion drop.  Engagement looks healthy at 11.7%, but those users are dragging down overall performance.  The page exit rate is lower, but fewer users are going through checkout and completing a purchase.  Even after two full weeks, the data is looking negative.  

Can you really recommend implementing the new feature?  No; but that's not the end of the story.  It's your job to now unpick the data, and turn analysis into insights:  why didn't it win?!

The IT team, understandably, want to implement.  After all, they've spent months building this new selector and the pre-launch data was all positive.  The Head of Global Synergies is asking them why it isn't on the site yet.  Their timeline allowed three weeks for testing and you've spent three weeks testing.  Their unspoken assumption was that testing was a validation of the new design, not a step that might turn out to be a roadblock, and they had not anticipated any need for post-test changes.  It was challenging enough to fit in the test, and besides, the request was to test it.

It's time to interrogate the data.

Moreover, they have identified some positive data points:

*  Engagement is an impressive 11.7%.  Therefore, users love it.
*  The page exit rate is lower, so more people are moving forwards.  That's all that matters for this page:  get users to move forwards towards checkout.
*  The drop in conversion is coming from the pages in the checkout process.  That can't be related to the test, which is in the selector pages.  It must be a checkout problem.

They question the accuracy of the test data, which contradicts all their other data.

* The sample size is too small.
* The test was switched off before it had a chance to recover its 6.3% drop in conversion

They suggest that the whole A/B testing methodology is inaccurate.

* A/B testing is outdated and unreliable.  
* The split between the two groups wasn't 50-50.  There are 2.2% more visitors in A than B.

Maybe they'll comment that the data wasn't analyzed or segmented correctly, and they make some points about this:

* The test data includes users buying other items with their sparkplugs.  These should be filtered out.
* The test data must have included users who didn't see the test experience.
* The data shows that users who browsed on mobile phones only performed at -5.8% on conversion, so they're doing better than desktop users.

Remember:  none of this is personal.  You are, despite your best efforts, criticising a project that they've spent weeks or even months polishing and producing.  Nobody until this point has criticised their work, and in fact everybody has said how good it is.  It's not your fault, your job is to present the data and to provide insights based on it.  As a testing professional, your job is to run and analyse tests, not to be swayed into showing the data in a particular way.

They ran the test at the request of the Global Integration Leader, and burnt three weeks  waiting for the test to complete.  The deadline for implementing the new sparkplug selector is Tuesday, and they can't stop the whole IT roadmap (which is dependent on this first deployment) just because one test showed some negative data.  They would have preferred not to test it at all, but it remains your responsibility to share the test data with other stakeholders in the business, marketing and merchandizing teams, who have a vested interest in the site's financial performance.  It's not easy, but it's still part of your role to present the unbiased, impartial data that makes up your test analysis, along with the data-driven recommendations for improvements.

It's not your responsibility to make the go/no-go decision, but it is up to you to ensure that the relevant stakeholders and decision-makers have the full data set in front of them when they make the decision.  They may choose to implement the new feature anyway, taking into account that it will need to be fixed with follow-up changes and tweaks once it's gone live.  It's a healthy compromise, providing that they can pull two developers and a designer away from the next item on their roadmap to do retrospective fixes on the new selector.  
Alternatively, they may postpone the deployment and use your test data to address the conversion drops that you've shared.  How are the conversion drop and the engagement data connected?  Is the selector providing valid and accurate recommendations to users?  Does the data show that they enter their car colour and their driving style, but then go to the search function when they reach a question about their engine size?  Is the sequence of questions optimal?  Make sure that you can present these kinds of recommendations - it shows the value of testing, as your stakeholders would not be able to identify these insights from an immediate implementation.

So - why not just switch it on?  Here are four good reasons to share with your stakeholders:

* Test data will give you a comparison of whole-site behaviour - not just 'how many people engaged with the new feature?' but also 'what happens to those people who clicked?' and 'how do they compare with users who don't have the feature?'
* Testing will also tell you about  the financial impact of the new feature (good for return-on-investment calculations, which are tricky with seasonality and other factors to consider)
*  Testing has the key benefit that you can switch it off - at short notice, and at any time.  If the data shows that the test recipe is badly losing money then you identify this, and after a discussion with any key stakeholders, you can pull the plug within minutes.  And you can end the test at any time - you don't have to wait until the next IT deployment window to undeploy the new feature. 
* Testing will give you useful data quickly - within days you'll see how it's performing; within weeks you'll have a clear picture.





Monday, 18 November 2024

Designing Personas for Design Prototypes

Part of my job is validating (i.e. testing and confirming) new designs for the website I work on.  We A/B test the current page against a new page, and confirm (or otherwise) that the new version is indeed better than what we have now.  It's often a last-stop measure before the new design is implemented globally, although it's not always a go/no-go decision.

The new design has gone through various other testing and validation first - a team of qualified user experience designers (UX)  and user interface designers (UI) will have decided how they want to improve the current experience.  They will have undertaken various trials with their designs, and will have built prototypes that will have been shown to user researchers; one of the key parts of the design process, somewhere near the beginning, is the development of user personas.

A persona in this context is a character that forms a 'typical user', who designers and product teams can keep in mind while they're discussing their new design.  They can point to Jane Doe and say, "Jane would like this," or, "Jane would probably click on this, because Jane is an expert user."

I sometimes play Chess in a similar way, when I play solo Chess or when I'm trying to analyze a game I'm playing.  I make a move, and then decide what my opponent would play.  I did this a lot when I was a beginner, learning to play (about 40 years ago) - if I move this piece, then he'll move that piece, and I'll move this piece, and I'll checkmate him in two moves!  This was exactly the thought process I would go through - making the best moves for me, and then guessing my opponent's next move.


It rarely worked out that way, though, when I played a real game.  Instead, my actual opponent would see my plans, make a clever move of his own and capture my key piece before I got chance to move it within range of his King.


Underestimating (or, to quote a phrase, misunderestimating) my opponent's thoughts and plans is a problem that's inherent with playing skill and strategy games like Chess.  In my head, my opponent can only play as well as I can. 

However, when I play solo, I can make as many moves as I like, but both sides can do whatever I like, and I can win because I constructed my opponent to follow the perfect sequence of moves to let me win.  And I can even fool myself into believing that I won because I had the better ideas and the best strategy.

And this is a common pitfall among Persona Designers. 

"Jane Doe is clever enough to scroll through the product specifications to find the compelling content that will answer all her questions."

"Joe Bloggs is a novice in buying jewellery for his wife, so he'll like all these pretty pictures of diamonds."

"John Doe is a novice buyer who wants a new phone and needs to read all this wonderful content that we've spent months writing and crafting."

This is something similar to the Texas Sharpshooter Fallacy (shooting bullets at the side of a barn, then painting the target around them to make the bullet holes look like they hit it).  That's all well and good, until you realize that the real customers who will spend real money purchasing items from our websites, have a very real target that's not determined by where we shoot our bullets.  We might even know the demographics of our customers, but even that doesn't mean we know what (or how) they think.  We certainly can't imbue our personas with characters and hold on to them as firmly as we do in the face of actual customer buying data that shows a different picture.  So what do we do?



"When the facts change, I change my mind. What do you do, sir?"
Paul Samuelson, Economist,1915-2009


Sunday, 27 October 2024

My Longest Online Chess Game

 

While my search for my oldest recorded Chess game continues, I have digressed into finding my longest online Chess game.  This game was started on 25 September 2014, and again, I was Black.  Again, I faced e4 and replied ... e5.  I know this is very one-sided, but it's purely coincidental that I won this game too.  It's got a few interesting decisions throughout (I still think Chess is a game more than a logic puzzle) but a positive ending for me.  My opponent, New_Titanic, resigned, otherwise this long game could have been even longer.   

1. e4 e5
2. Nf3 Nc6
3. Bb5 a6


The way I usually play the Ruy Lopez as Black.  I'm happy to play 4. Bxf6 5. bxf6 Nxe5 6. Qd5 and then capture White's e-pawn.

4. Ba4 Nf6
5. d4 Nxe4
6. O-O b5


I'm not sure why I didn't play ... exd4, although I suspect that it would have lost to Bxf6, and hence I played ... b5 instead.  Not perfect, but playable.

7. Bb3 Bb7
8. dxe5 Be7
9. Qd5 Nxe5?


I don't think I was concentrating, because here is the first of my blunders.  Surely my move loses on the spot to Qxb7; even ...c6 is not going to be a sufficient response.  I'm not sure where my head was, because this was a poor series of moves from me.

10. Qxe5 O-O
11. Bd5 Bxd5
12. Qxd5 Nf6
13. Qd1 Ne4
14. Ne5 Bd6
15. Re1 Nxf2


I'm not sure if this was brave or stupid.  My thought was if Kxf2, then Qf6+ should win me the knight on e5.  Either way, I'm threatening the Queen which thought it was safe on d1.

16. Qd5 Qh4
17. Nf3 Bxh2+

I think I'm overcomplicating this, because Nxh2 is surely a safe move from white, leaving me material down.  Whichever it is, it seems like White is equally confused, and plays a safe move.

18. Kf1 Qg3
19. Nxh2 Nh1

Threatening checkmate, and moving my knight from the frying pan into the fire.

20. Qf3 Qxh2
21. Bf4 Qh4
22. Nd2 d6
23. g3 Nxg3+
24. Qxg3 Qh1+
25. Ke2 Qh5+
26. Qf3 Rfe8+
27. Kd1 Rxe1+

Forced, although I'd prefer not to trade (being a piece down).  My Queen is still en prise and my rook isn't looking great on e8.  My complications have got the better of me and I'm in trouble.  I'm not even well-developed.

28. Kxe1 Qh4+
29. Kd1 Re8

Two pieces down and trying to complicate as much as possible.  This is another transparent checkmate threat.

30. Bg3 Qd4
31. Kc1 Qg1+
32. Nf1 h6
33. Kb1 Re6
34. Bh4 Qd4


Re-centralising my Queen.  If White plays Qa8+ he will need to be aware of my possible move Qd1#.  I'm also threatening his Bishop on h4, so while I don't have much to do, I'm making the most of it.

35. Bf2 Qf6?
36. Qa8+ Kh7
37. Qg2? Re2!
38. Bh4 Rxg2
39. Bxf6 Rg1
40. b3? Rxf1+

Winning back all the material after two White blunders.  I'm now four pawns up, including three unopposed passed pawns on the kingside.  The long-term view (for me) is very positive; all I need to do know is shepherd them home.


41. Kb2 Rxf6
42. a4 b4
43. Re1 Re6
44. Rf1 f6
45. Rf4 c5
46. a5 g5
47. Rf1 h5
48. Rf2 h4
49. c3 bxc3+
50. Kxc3 Kg6
51. Kc4 Re5
52. Rd2 Re4+
53. Kc3 Rd4
54. Rh2 f5
55. Re2 Kf6
56. Re8 h3
57. Rf8+ Ke5
58. Re8+ Kf4
59. Kc2 h2
60. Rh8 Kg3
61. Rh5 Rh4


Blundering to the end.  Surely Rg4 was better, protecting the g-pawn.  But no, not me - I'm going to play this game my way!

62. Rxg5+ Kh3
63. Rxf5 h1=Q

Brute force.  Effective, but lengthy.

64. Kd2 Rd4+
65. Ke3 Qe4+ 

Centralised Rook and Queen against an isolated and defenceless King?  And I'm about to pick up White's Rook for good measure.

0-1

Thursday, 24 October 2024

My Very Earliest Online Chess Game

 The search continues.  I thought my previous post on my earliest online Chess game was the earliest, at 2020.  I've beaten that, with a Chess game from 2014.  Given that my blog was launched in 2010, I think I might have to search even harder.

Anyway, here's my first Chess game on Chess.com, and this one is another long-term game, with a move every three days.

I played Black, against fergosa, on 20 June 2014.

1. e4 e5
2. Bc4 Nf6

It was a recurring theme of my earliest online Chess games that my opponents would try to mate me as quickly as possible, and would therefore play ill-advised or reckless moves.  Meanwhile, I would play the sensible replies and gain an advantage from a more stable position.
  
3. d3 Nc6
4. Bg5 Be7
5. Bxf6 gxf6



No, it's not great to double my pawns, and I'm sure this would be criticised by all the experts, but I want to open the g file in case my opponent castles short.

6. Qh5 O-O
7. Qg4+ Kh8



Ok, he got a check, but my king is safe in the corner and I've vacated the g-file for my rook.

8. Qd1 f5
9. exf5 d5



Well, goodbye to my doubled pawns, and hello to an activated bishop and a pawn break in the centre.

10. Bb5 Nd4
11. Ba4 Bxf5
12. Nf3 Bg4
13. Nbd2 e4


"Always attack pinned pieces."

14. h3 Bxf3
15. Nxf3 exf3

I wonder if I could have played this better, but in the end I shattered white's kingside pawns - before he can castle short - and was a knight up.  And it's an advanced knight, in the middle of the board.

16. gxf3 c6
17. O-O Qd7

He castled kingside?  Surely the end is nigh!  I played c6 to shore up my pawn, and also to give me the d7 square for my queen.  I'm now eyeing h3.

18. c3? Qxh3

Surely 18. Kh2 was better?  Oh well...

19. b3? Rg8# 


Fiddling with queenside pawns while I finally get to place my rook on the g8 square.  And deliver checkmate!


Not perfect, but a lot of fun!