im doing a tutorial of a matching cards game, just like chris’s.
the problem is that the tutorial is in swift 4, so idk if the error is because of that.
PLEASE HELP!!!
im doing a tutorial of a matching cards game, just like chris’s.
the problem is that the tutorial is in swift 4, so idk if the error is because of that.
PLEASE HELP!!!
You can’t pass the type Int
there; you have to pass an actual Int
, like 2
or 17
or 8
.
But, really, you shouldn’t even need to pass anything to that init
method. In the init
method, you set self.identifier
from the getUniqueIdentifier()
method and never use the passed-in parameter. So just change it to:
init() {
self.identifier = Card.getUniqueIdentifier()
}
thanks man! you really helped me i was so upset