Bankrupt the Bank
VulcanWM (2284)

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 are viewing a single comment. View All
VulcanWM (2284)

You've definitely changed the code @PowerCoder

PowerCoder (734)

@VulcanWM This game is very hackable

VulcanWM (2284)

yh I know. Do you know a way I can make this unhackable? @PowerCoder

aguy11 (126)

@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.

PowerCoder (734)

@VulcanWM You can wrap the whole thing in an anoymouos function like so:

(function() {

This will call the anonymous function immediately after declaration.

VulcanWM (2284)

Do you know the code for it, cos I don’t know @aguy11

VulcanWM (2284)

Oh right, I’ll do that. Thanks! @PowerCoder

aguy11 (126)

@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.

Yeah, this was a very short example.

Hope this helps!


@aguy11 I dont know why but I always add a

function supersecrethack() {
score = score + 10000000000000;

to my JS games. All you have to do is Ctrl + Shift + J and you enter this function into the console.

zplusfour (879)

@aguy11 no no no no

function somefunc(name){
window.onload = somefunc('creeper aw man')