Комментарии:
I have coded this game in Java, great game to earn experience
ОтветитьThis was more than the comedy........but learning too
ОтветитьWhere is this random function come frome ?
ОтветитьLiked your video within one minute because I know it gonna be great video.
ОтветитьIn all your vids you're doing stuff with ES6 functions like arr = arr.concat(arr2);
why not use arr.push(...arr2); ?
Hey, what web server are you using? My index.html won't show my sketch.js for some reason.
Ответитьdoing this for a class project, I've got the board set up written, (like place 2s and 4s down in a random spot) and let me just say, my code is WAY messier than the like 50 lines it took you to write it
ОтветитьNUMBER 1 VICTORY ROYALE FORTNITE YEAH WE BOUT TO GET DOWN
ОтветитьWhich plateform do you use
ОтветитьHallo The Coding Train
Do you have tutorial create game candy crush with canvas and JS ??
what is that random function? where does it come from?
Ответитьhey,help me plz.
in my function , my code miss this condition(key == " ")
Where we declared this variuble ,i don't understand .
(problem function)
function keyPressed() {
if (key == ' ') {
console.log("hi")
for(let i = 0; i < 4; i++) {
console.log("hi")
grid[i] = operate(grid[i]);
}
}
addNumber()
}
If Dan was a teenager in the 1940s, then One Direction was 98 degrees. Lawl
ОтветитьThis is 2020. I don't know JSON.stringify existed in 2018 but if it did your compare function could have been as simple as:
var compare = (a, b) => JSON.stringify(a) !== JSON.stringify(b);
Quite amusing how you can change a 5-line piece of code with two nested for loops (not even a forEach!) in only one single line.
I have decided to take on the challenge of creating a self learning neural net that can win at 2048.
My grade 10 teacher told me if you want to solve a problem do it yourself OR find someone that has already solved the problem. I am using the latter strategy to deal with the first level of 2048 and then move on
I love your enthusiasm btw. I love that you are open about the journey being adventures and ideas we learn via by trial and error.
Your coding challenge is great, Dan! Honestly, it feels good to see how you code without planning it in advance. I can see your thought process and it's very helpful to improve my problem-solving ability. Thank you so much! Xoxo
ОтветитьYour every action puts a mile long smile on my face.
ОтветитьIwantlearnjavascript.. 🤓
Ответитьi try this same code but i couldn't not achieve the output
Ответитьwhen did this happen!?!?!?
Ответитьi like this game... i find them in faucet ctyptocurrency like bitcoin, litecoin etc hhhh
ОтветитьLoop Poo
Over = Lover
poti face acest joc in visual studio in c#??
ОтветитьI think first you should have called combine(); then slide(); Please correct me if I am wrong.
Ответитьgabriele's surname pronunciation is Ci like chill, ru like room, lli like lli. Chi-Roo-lli
Ответитьthis:
function combine(row){
for(let i = 3; i >= 1; i--){
let a = row[i-1];
let b = row[i];
if(a == b){
row[i] = a + b;
row[i-1] = 0;
}
}
return row;
}
should be:
function combine(row){
for(let i = 3; i >= 1; i--){
let a = row[i-1];
let b = row[i];
if(a == b){
row[i-1] = a + b;
row[i] = 0;
}
}
return row;
}
and then you can just slide and combine without a problem
with textAlign(CENTER);
text(val, i * w - w/2 + w, j * w - w/2 + w+20);
is correct
does random method even exist?
ОтветитьJust finished this challenge myself, now to see how you implement the tile shifting! (I was stuck on it for longer than I'm proud to admit, considering how simple it sounds).
Ответитьhow i cand do it in Angular 4 ?
ОтветитьI made mine in python!
Ответить"I'm gonna take a short break, and have a part two of the 2048 challenge where I deal with the rotation of the matrix, and I hope you enjoy watching that part and then the game will be finished!"
lul
For me, in the console, there's an error that says, "Uncaught ReferenceError: past is not defined". Var works, but let doesn't, how do you fix that?
ОтветитьHalo
If i wanna try something like this
What kinds of software that i need?
completed my own version today😊😊 please upload a video on how to animate the tiles.. thank you
Ответитьgive me 2 kg of whatever u snorted before this video pls
Ответитьyou are like a comic.
Ответитьnext time i propose Tetris
Ответитьfigured it out
let options = new Array(4).fill().map( x => Array(4).fill(0) )
i love you
Ответитьit has === .. how it is compiling sir ?
Ответить