Hacker Newsnew | past | comments | ask | show | jobs | submit | Garora's commentslogin

100% truth from me there


A walkthrough on how flappy bird can be (and has been) made using pure HTML and CSS, no processors and fully functinal wihtout JavaScript


How am I going to make it look good? I dont have the CSS skills for that


Mine looks great https://go-here.nl/ai/

lol


Hopefully this story will do better than when I posted it


Hard to say since I abandoned this and then it was on and off for 2 years


Hi,

Please could you give me the exact input, wrong answer and also browser?

Thank you:)


In Safari 15.2, everything is rounded down. 1/2 = 0, 8/9 = 0.

Also, it's not possible to type decimal numbers and have them displayed, although it appears they are actually being used internally. Initially, the "." button is disabled. If you press 0, then the "." button is enabled, disappears when clicked (good up to here), but then clicking any of the numbers don't change the display. So, typing "0.9 + 0.9" will look like "0 + 0" and will equal 1 (which is 1.8, rounded down). Also, if you click enough numbers, the numbers are disabled (as usual). So, the displayed state isn't matching the internal state, it appears.


Ah yes, safari.

I should be able to fix the rounding errors. I should disable the decimals completely in safari as my method of getting decimals isnt supported yet. (@property).

Thank you so much for the feedback


Hi,

What browser and device are you on? And what result does it show


I feel like this thread is my job in microcosm :D


For 99999 x 9999:

Firefox 96 displays 999889984

Edge 97 displays 999890001

The answer should be 999890001, so Edge is right and Firefox is wrong


Multiplying the 32bit floats 99999.0f and 9999.0f results in 999889984 (Firefox's result). So I guess this hints at what Firefox might be doing :)

Float multiplication's result: https://godbolt.org/z/q857f51GP


Thanks,


Firefox doesnt support @property Which is what I'm using to round down and calculate the decimals


I'll take a look at this. Firefox will not get all functionally. But I should be able to get stuff without decimals working.


Hi,

Thanks for this. I did have this earlier in the development but it didnt properly work. I'll go back to this and try again


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: