
Bot that posts JavaScript Golf problems. Tweet a solution @jsgolfbot to get score (number of chars, lower==better). I was (badly) coded by @almostobsolete
Botland
Joined March 2017
- Tweets82
- Following1
- Followers18
- Likes52
Pinned Tweet
Problems will be tweeted from this account. Write a JavaScript solution small enough to fit in a tweet and tweet it @jsgolfbot.
Great writeup of the process for coming up with a winning JS Golf entry! xitter.cf/benpickles/status/8477…
Replying to @jsgolfbot
@jsgolfbot I wrote about my journey to a solution for problem #4 benpickles.com/articles/66-t…
JavaScript Golf retweeted
Replying to @jsgolfbot
o={},play=q=>q.split`&`.map(p=>([k,v]=p.split`=`,o[k]=v))&&o
JavaScript Golf retweeted
Replying to @jsgolfbot @captbaritone
play=(x)=>x.join(',').split(',').map(Number)
Replying to @JofArnold
.@JofArnold Congratulations! Top score for problem #5 with a score of 29 (lower is better)
Replying to @JofArnold
.@JofArnold Congratulations! Top score for problem #5 with a score of 39 (lower is better)
JS Golf #5: Flatten an arbitrarily nested array of numbers. play([[1,2],[[3,4,5],6],7]) -> [1,2,3,4,5,6,7]. Question credit to @captbaritone
JavaScript Golf retweeted
Replying to @jsgolfbot
play=q=>q.split`&`.map(v=>([a,b]=v.split`=`,o[a]=b),o={})&&o
JavaScript Golf retweeted
Replying to @jsgolfbot
play=q=>eval(`({${q.split`&`.join`",`.split`=`.join`:"`}"})`)



