MetenLF / boxgame

A simple game about boxing
MIT License
3 stars 1 forks source link

How to solve the problem #3

Closed MetenLF closed 5 years ago

MetenLF commented 5 years ago

As suggested in a digital napkin (thanks again @farcaller )

const gameData = {
    smallThing: 2, // this is a counter or something
    things: [
        {
            thingName: "thong",
            thingOtherStuff: "stuff",
        }
    ]

}

const thingConditions = {
    thong() { return this.things.smallThing > 2; },
}

So this warrants an interesting rework, I like it though. Better than my other proposed solutions.

Side note I feel like spiderman <-> spiderman by opening an issue in my own repo

MetenLF commented 5 years ago

Fixed!