I am trying to compile a contract on remix and have run into the following warning :
Use assert(x) if you never ever want x to be false, not in any circumstance (apart from a bug in your code). Use require(x) if x can be false, due to e.g. invalid input or a failing external component.
The parts of my code that use assert are :
assert(checkPlayerExists(msg.sender) == false);
assert(number >= 1 && number <= 10);
assert(msg.value >= minimumBet);
Would love someone to explain this as it seems a bit cryptic.
require
?