Top Bird

After a few weeks on top of the pile, Mal has been dislodged from the top of the Mindblaster scoreboard. Well done Diane!

Posted 6 years, 1 month ago

Just lucky I guess!

Diane · 6 years, 1 month ago

Blimey - congratulations! Thought I’d be there for good.

Mal · www · 6 years, 1 month ago

More chance of guessing it right the first time than winning the lottery and some lucky sods still manage that.

Well done though.

Tim · 6 years, 1 month ago

Fix!

Reid · www · 6 years, 1 month ago

Not blimin' likely!

Diane · 6 years, 1 month ago

I just cheated and got 2, ner ner ;)

I was clicking back in my browser. Dunno what your backend is like, but it might be worth fixing with session vars or a unique id or something. Nice site!

coda · www · 6 years, 1 month ago

Aargh! I’ll have to fix that.

There’s a session which runs whilst you play, but all it holds is the answer string. I guess I can add a session ID... Or I could store the number of attempts in the DB as soon as the puzzle is solved, then update the record if someone adds their details. Hmm...

I’ll have to strike your score off mate, but bonus points for hacking ;-)

Phil · www · 6 years, 1 month ago

Hmm, think I’ve fixed it. I’ve added some extra PHP code to validate the session each time. Once the score is revealed, the session is destroyed. You can click back in your browser, but if you submit another set of numbers, you’ll reset the game. I don’t think it’s 100% reliable, but it’ll do until I think of something else ;-)

Phil · www · 6 years, 1 month ago

Let me test ;)

coda · www · 6 years, 1 month ago

"nice try but no cigar"
yay I beat my old score! ;)

coda · www · 6 years, 1 month ago

Bugger.

Phil · 6 years, 1 month ago

Plan B. I’ve added another session var containing the number of attempts made. This method should track how many times you submit an answer (regardless of clicking back in the browser history). Hopefully this method is a bit more effective... ;-)

Phil · www · 6 years, 1 month ago

Can you make it discount scores of fewer than 5 guesses too...? :)

Mal · www · 6 years, 1 month ago

Heh - more than my life’s worth mate ;-)

Phil · 6 years, 1 month ago

Oi! I won fair and square! (and yes, it is more than your life’s worth...)

Diane · 6 years, 1 month ago

Commenting on this post has been disabled.

My name is Phil Lindsay, a web guy from Scotland, now living in Newcastle upon Tyne in England. I also run a web design company called Presence. You can email me at phil@xlab.co.uk, read more ramblings on my Twitter stream and view my photos on Flickr. You can grab the RSS feed for this weblog here.