js1024

js1024

Annual JavaScript Golfing Competition

CLOSED. Starts on 1 July

Concave Mirror
by Muhammad Rifqi Priyo Susanto
1006/1024 bytes - HTML project

Run Demo Minified code Readable code Run Demo (Without Navigation Bar)

W2hdIEhvdyB0byB1c2UgWy9oXQ0KLSBTZXQgdGhlIG9iamVjdCdzIGRpc3RhbmNlIChTKSBhbmQgdGhlIGNlbnRyZSBvZiBjdXJ2YXR1cmUncyBkaXN0YW5jZSAoUikgZnJvbSB0aGUgb3JpZ2luIChPKS4NCi0gU2VlIHRoZSByZXN1bHQgaW4gdGhlIGNhbnZhcyBhYm92ZS4gVGhlIGltYWdlJ3MgZGlzdGFuY2UgKFMnKSBpcyBhbHNvIHNob3duIGJlbG93Lg0KUFM6IFlvdSBjYW4gdXNlIG5lZ2F0aXZlIG51bWJlcnMgZm9yIHRoZSBvYmplY3QncyBkaXN0YW5jZSB0byB1c2UgdGhlIG1pcnJvciBhcyBjb252ZXggbWlycm9yLg0KDQpbaF0gTGVnZW5kIFsvaF0NCi0gTzogdGhlIG9yaWdpbiBwb2ludCAodGhlIG1pcnJvcidzIHBvc2l0aW9uKQ0KLSBmOiB0aGUgbWlycm9yJ3MgZm9jdXMNCi0gUjogdGhlIG1pcnJvcidzIGNlbnRyZSBvZiBjdXJ2YXR1cmUNCi0gcmVkIGxpbmU6IHRoZSBvYmplY3QgKGFsd2F5cyAxIHVuaXQgdGFsbCkNCi0gcHVycGxlIGxpbmU6IHRoZSBpbWFnZSBvZiB0aGUgb2JqZWN0ICh0aGUgcmVzdWx0IG9mIHRoZSBvYmplY3QncyByZWZsZWN0aW9uKQ0KLSBjeWFuIGxpbmVzOiBmb3VyIGxpZ2h0IHJheXMgZnJvbSB0aGUgb2JqZWN0DQoNCltoXSBMaXN0IG9mIGxpZ2h0IHJheXMgWy9oXQ0KMS4gUGFyYWxsZWwgdG8gdGhlIGNlbnRyYWwgYXhpcw0KMi4gUGFzc2VzIHRocm91Z2ggdGhlIGZvY3VzDQozLiBQYXNzZXMgdGhyb3VnaCB0aGUgY2VudHJlIG9mIGN1cnZhdHVyZQ0KNC4gRW50ZXJzIHRoZSBjZW50cmUgb2YgdGhlIG1pcnJvcg0KDQpSZWFkIG1vcmUgb24gV2lraXBlZGlhOiBbbGlua10gaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvQ3VydmVkX21pcnJvciBbL2xpbmtdDQoNCltoXSBUb29sIFsvaF0NCi0gUmVnUGFjayB2NS4wLjQNCg==

Ratings

Anonymous participant 64/100: Accurate!
Anonymous participant 50/100: could be instructive
Anonymous participant 70/100: no comment
Anonymous participant 70/100: Controlling angles with mous would be more interesting
Anonymous participant 60/100: no comment
Anonymous participant 47/100: Displays a diagram of concave mirror and traces of light. Interface is pretty bare bones, `type=number` would have been helpful.
Anonymous participant 64/100: Right on theme, edge cases are accounted for, code style is clear and easy to read. However this is a serious tool for learning, not a fun demo
Anonymous participant 78/100: no comment

Public comments

No public comments yet.

Leave a comment