The inspect method will return a result based on whether the entrant ID_card (only issued to citizens of Arstotzka) These properties may include the following: passport This object will contain zero or more properties which Will receive an object representing each entrant's set of identifyingĭocuments. Inspection booth to gain passage into Arstotzka. Updates to the list of nations (comma-separated if more than one) whose citizens may enter (begins empty, before the first bulletin):Įxample 1: Allow citizens of Obristan example 2: Deny citizens of Kolechia, RepubliaĮxample 1: Foreigners require access permit example 2: Citizens of Arstotzka require ID card example 3: Workers require work passĮxample 1: Citizens of Antegria, Republia, Obristan require polio vaccination example 2: Entrants no longer require tetanus vaccinationĮxample 1: Wanted by the State: Hubert PopovicĮach day, a number of entrants line up outside the checkpoint The bulletin is provided in the form of a string. Procedures and the name of a wanted criminal. This bulletin will provide updates to regulations and The methods you will need to create are as follow:Įach morning you are issued an official bulletin from the Ministry ofĪdmission. Instance methods to perform the tasks of the border checkpoint Your task is to create a constructor function (or class) and a set of I love constructive criticism, so don't hesitate.īelow, I am going to add the task of the project, just in case the link gets deleted or something: ![]() If you would like the version with all print statements, tell me. I had a lot of print statements during debugging, but I've deleted all of them. I know the code is long, so only check it out if you've got the time. Would love to hear opinions on how to improve the readability, optimizing some stuff that you notice. I'd like to know if YOU can understand something from the code I've written. ![]() I'm trying to work on my code readability, but also optimizing the code as much as possible. I've been working on this one for about an hour a day for about 2 weeks, 90% of the time it's only been debugging. ![]() This is possibly one of the longest katas I've finished so far.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |