New answers tagged

1

Simple HTML solution without AI !DOCTYPE html> <html> <head> <title>Basic Pong HTML Game</title> <meta charset="UTF-8"> <style> html, body { height: 100%; margin: 0; } body { background: black; display: flex; align-items: center; justify-content: center; } </style> </...


0

05AB1E, 10 bytes 3.Æ€øO3ÖPO Port of @Bubbler's Jelly answer, so make sure to upvote him! Try it online or verify all test cases. Explanation: 3.Æ # Get 3-element combinations of the (implicit) input list of lists €ø # Zip/transpose each inner list of lists; swapping rows/columns O # Sum the inner lists of columns together for ...


1

05AB1E, 35 34 bytes [6Lε₄ε6LΩ}{¦O}©O¹@i®δ.SεN‹NQà}P#]® Can probably be shorter, but this will do for now. First input is t, second input is a pair [l,h]. Try it online or try it online with added debug lines. Explanation: [ # Start an infinite loop: 6L # Push list [1,2,3,4,5,6] ε # Map each value to: ₄ ...


Top 50 recent answers are included