Closed ananas-block closed 1 year ago
https://github.com/Shigoto-dev19/ZK-Battleships-Solana/blob/39e42bc8ee11b75b3559b9ad005c97b33dc9baf3/src/gameSimulation.ts#L64
make it a parameter in the class, initialize it once, then use it with this.F
true, It's better to initialize it outside of the class
do it in the initialization function
and pass it into the constructor, the constructor will assign it to an attribute constructor(F) { this.F = F; }
https://github.com/Shigoto-dev19/ZK-Battleships-Solana/blob/39e42bc8ee11b75b3559b9ad005c97b33dc9baf3/src/gameSimulation.ts#L64
make it a parameter in the class, initialize it once, then use it with this.F