Rock, Paper, Scissors
I started on the Friday Challenge this morning, which I spoke about yesterday. I managed to finish it off by 11:30am, so personally I think it went very well! I wrote a plan out yesterday, so I am going to start by comparing what I did to what I planned.
- Home page accepts name – Yes it does, although I said I would create a player class to deal with this, I decided instead that I didn’t need that, as the param only had to store the weapon of choice.
- Game page has 3 buttons – yes, although I added more later
- Results – there is a results page, and I have got a class for game and computer player running in the background doing all the work
- Scoring – I did add a class in for scoring
- Multiplayer – Added, works fine, if name is entered as computer it generates a random choice, otherwise it lets player 2 pick something.
- Lizard – Spock – Added these in as buttons along with the other options
Overall it all went pretty much as I planned. I used TDD to create it, and all my tests pass with 100% coverage. There is some potential refactoring I could do, and possibly some better tests for randomness, but I think for the moment I am happy with it. Here is the program in action:

I decided to upload it to heroku so it would be playable, here it is!
I wanted to share a couple of interesting programming related things I read this morning on the train.
The first is this post which was about a guy trying to get his old motherboard to run with more RAM than it was meant to. Very interesting to read and see a bit more about how computers work when they are booted up.
The second is this video from Morphcat Games, which talked about how they optimised their game design to fit on an original 40kb NES cartridge.
This led me onto another youtube channel called Gamehut, where a previous director of Traveller’s Tales goes through some of the old tricks and techniques they used to make their games.
Todays song of the day is:

