I originally got this idea while playing monopoly with my cousin. We kind of got bored giving each other rent, and teamed up to get all the money from the bank. When I lost all my game ideas, I remembered our game and based this on the game.
Most of my games are based on luck, and this one is as well. I got the idea of the cards from @Bookie0 's and @ChezCoder 's game 4 Chances.
@VulcanWM Make it all into one function so that you can't just call a certain function to hack it. That makes it less hackable, though hacking it's still possible.
@VulcanWM I don't really know JS, and it would be hackable anyway, but here's my prediction:
// This is really unnecessary and unorganized, but it's the best example I can give.
window.onload function game() {
// Basically do all of the stuff here(Even function declaring), so hackers can't reference a single part of the program and be done.
}
Bankrupt the Bank
This is my second game in js: Bankrupt the Bank.
I originally got this idea while playing monopoly with my cousin. We kind of got bored giving each other rent, and teamed up to get all the money from the bank. When I lost all my game ideas, I remembered our game and based this on the game.
Most of my games are based on luck, and this one is as well. I got the idea of the cards from @Bookie0 's and @ChezCoder 's game 4 Chances.
Thanks @aguy11 for the logo on the card!
If you have any ideas on how this game could be better, comment below.
You've definitely changed the code @PowerCoder
@VulcanWM LOL yeah
@VulcanWM This game is very hackable
yh I know. Do you know a way I can make this unhackable? @PowerCoder
@VulcanWM Make it all into one function so that you can't just call a certain function to hack it. That makes it less hackable, though hacking it's still possible.
@VulcanWM You can wrap the whole thing in an anoymouos function like so:
This will call the anonymous function immediately after declaration.
Do you know the code for it, cos I don’t know @aguy11
Oh right, I’ll do that. Thanks! @PowerCoder
It's not working :( @PowerCoder
@VulcanWM I don't really know JS, and it would be hackable anyway, but here's my prediction:
Yeah, this was a very short example.
Hope this helps!
ok @aguy11
@aguy11 I dont know why but I always add a
to my JS games. All you have to do is Ctrl + Shift + J and you enter this function into the console.
@aguy11 no no no no