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, 7 months ago

Just lucky I guess!

Diane · 6 years, 7 months ago

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

Mal · www · 6 years, 7 months 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, 7 months ago

Fix!

Reid · www · 6 years, 7 months ago

Not blimin' likely!

Diane · 6 years, 7 months 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, 7 months 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, 7 months 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, 7 months ago

Let me test ;)

coda · www · 6 years, 7 months ago

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

coda · www · 6 years, 7 months ago

Bugger.

Phil · 6 years, 7 months 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, 7 months ago

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

Mal · www · 6 years, 7 months ago

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

Phil · 6 years, 7 months ago

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

Diane · 6 years, 7 months ago

Commenting on this post has been disabled.