All Questions
Tagged with code-challenge javascript
11 questions
4
votes
2
answers
578
views
Chase the Easter Bunny and collect his eggs
Chat room: https://chat.stackexchange.com/rooms/106513/easter-bunny-challenge
Git repo: https://github.com/AJFaraday/easter_bunny_hunt
The garden is a 2-dimensional grid with 49 rows and 49 columns.
...
43
votes
9
answers
7k
views
Reserved JavaScript
As of ECMAScript 2015, JavaScript has 33 reserved keywords, such as break, const and new, as ...
11
votes
2
answers
5k
views
Creating a function over multiple lines
I'm attempting to create a function over multiple lines.
Parameters of the challenge:
Function returns 'barbarian'
Only 2 characters per line
40 lines maximum.
I keep trying to use a fat arrow to ...
2
votes
2
answers
3k
views
Javascript function challenge add(1,2) and add(1)(2) both should return 3 [closed]
A friend of mine challenged me to write a function that works with both of these scenarios
add(1,2) // 3
add(1)(2) // 3
My instinct was the write an add() ...
17
votes
4
answers
2k
views
Program a 2048 AI using an existing Framework
EDIT : Recently, my question has been proposed as a duplicate of 2048 Bot Challenge. I would like to stress that this question is different from that question, and will require answers to be thought ...
2
votes
2
answers
2k
views
Babylon.js - loop through a scene and apply a simple fragment shader to all of the objects
You have a library - a fully loaded 2014 Babylon.js.
You have a fragment shader - let's call it sample.fragment.fx.
You have a scene - loaded ahead of time, possibly from a .babylon JSON file.
Your ...
20
votes
5
answers
4k
views
2048 Bot Challenge
We have been cloning 2048, analyzing 2048, but why haven't we played it yet? Write a 555 byte javascript snippet to play 2048 automatically, the best score after an hour will count (see scoring below)....
6
votes
2
answers
2k
views
2D javascript table graphics
The challenge
Make a JavaScript program that can use a HTML table as a canvas, having each cell a pixel.
You can either input the position and color values in a form or by using the console.
Score ...
30
votes
11
answers
3k
views
Make StackOverflow Explode (bookmarklet) [closed]
Sometimes people get frustrated on the StackExchange network (specifically SO).
Your task is to create a bookmarklet that causes StackOverflow to explode/implode/destroy in some fashion. This will ...
6
votes
4
answers
782
views
Display a bézier curve in the browser [closed]
The goal is to display a bézier curve in any classical browser (except maybe old IE versions, because... are they really browsers?) client side.
Rules:
You must provide one or more files (or their ...
1
vote
4
answers
8k
views
Make an HTML page goto infinite loop? [closed]
Write a code using HTML, JavaScript, jQuery to make the page go into infinite loop.
Restrictions:
No looping or control structures of javascript and jQuery allowed. You can only use alert, events, ...