Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Based on the setting of the problem, this would only prevent the user from getting in when they, in actuality, have a valid ticket, but would not allow them to get in with a ticket that has been used and is actually invalid. No?
This would allow you change the value of
used
as much as you want, as long as theuseTicket
method hasn't been called yet. So you can have a ticket that says it's used because you changed it, but it's not really used - you can change it back because you haven't called theuseTicket
method and it's not frozen.Well done! This should be at the top!