1
I made a small little binary game. I only spent an hour or so on it so it isn't perfect, comment any bugs you find and be sure to give feedback!
https://rawstr.us/binary
https://rawstr.us/binary
Create an account or sign in to comment.
10
1
McHorse
I think you need to work on your code.
Also, I made this within an hour or so, I am yet to do code revisions.
I am going to tidy it up now and remove unnecessary lines that were there for debugging purposes originally. This was just a test of function.
1
craftykidsTorrumxD, im not entirely sure how to play this.
The goal is to convert decimal (base 10) numbers to binary (base 2). If you're not familiar with number systems/binary, one of these search results might be useful.
Oh I thought the OP meant he had coded a game in binary xD
1
craftykids15 points on my first two attempts
Nice!!
1
craftykids15 points on my first two attemptsTorrumxD, im not entirely sure how to play this.
The goal is to convert decimal (base 10) numbers to binary (base 2). If you're not familiar with number systems/binary, one of these search results might be useful.
Thanks you
1
15 points on my first two attempts
The goal is to convert decimal (base 10) numbers to binary (base 2). If you're not familiar with number systems/binary, one of these search results might be useful.
TorrumxD, im not entirely sure how to play this.
The goal is to convert decimal (base 10) numbers to binary (base 2). If you're not familiar with number systems/binary, one of these search results might be useful.
1
xD, im not entirely sure how to play this.
1
clicking the numbers seems to be quite unresponsive
1
How so?
1
Because you've got syntax error in your application:
And you're getting syntax error in your application, because you're using ES6 operator **. There's still lot of people who use browsers without ES6 support, that why front-end developer using babel or similar to translate their code into ES5 friendly code.
Simply change:
To:
I think you need to work on your code.
SyntaxError: Unexpected token '*'
And you're getting syntax error in your application, because you're using ES6 operator **. There's still lot of people who use browsers without ES6 support, that why front-end developer using babel or similar to translate their code into ES5 friendly code.
Simply change:
function resetBits(){
for(i=0;i<8;i++){
$('#bin' + 2**i).removeClass("active");
$('#bin' + 2**i).attr('src', 'img/0.png');
currentSum = 0;
}
}
To:
function resetBits(){
for(i=0;i<8;i++){
$('#bin' + Math.pow(i, 2)).removeClass("active").attr('src', 'img/0.png');
}
currentSum = 0;
}
I think you need to work on your code.
1
ah yes I was originally working with Python, forgot to use this for js, thanks for spotting it!