I'm having trouble with the auto-grader.

This article provides more details on how Skill Struck's auto-grader works, and how to get your code to pass.

Last updated - July 12, 2023

Each challenge and checkpoint on Skill Struck comes with a set of requirements, graded by our auto-grader, that you must meet in order for your code to pass. Sometimes, even though you have written code for a challenge, it may not pass the requirements. This can be one reason why even though you have attempted a challenge or checkpoint it is not marked as complete. If your progress seems like it isn't updating even though you have attempted the challenge or checkpoint, check that you have met all of the requirements for that section. Following are some tips on working with the auto-grader:

  •  Before starting a challenge or checkpoint read the full description and all of the requirements. Code that does not meet every requirement will not pass.
  • Remember that coding is specific; make sure that your code is correct in spelling, syntax, and spacing.
  • Just because code is accurate and runs in the terminal does not mean it meets all of the requirements of the challenge or checkpoint.
  • When incorrect code is submitted to the auto-grader, a hint will be provided. The hint provided will state a possible issue with the code, but may not state the exact problem.
  • Check your code, double-check your code, and check it again just to be sure! If your code will not pass try checking for bugs. A bug can be as small as a missing semi-colon, a misspelled word, or an extra letter typed where it should not be.

For many checkpoints and challenges, the auto-grader will be checking to see if your code matches the requirements EXACTLY. It needs to match capitalization, punctuation, spacing, and wording in some cases. Read and re-read the challenge description and requirements carefully for any specific details that may be needed for code to pass.

The auto-grader won't grade my code

  • Your code could be too long.
    • Try shortening your code by removing unnecessary text and spaces.
  • If the auto-grader won't grade your code, first try a hard refresh. Hold down the Shift key and clicking the refresh button in your browser. 
    • Next, try clearing your cache and cookies. Follow these instructions  to clear the cache and cookies on Chrome or Safari:

      Google Chrome (on a PC or Mac)

      1. Click on the three vertical dots located in the top corner of your web browser.
      2. From the menu that appears, click on “History”.
      3. Click on “History” again from the new menu that appears.
      4. Click on “Clear browsing data” from the menu on the left of the screen.
      5. Select “All Time” from the time range dropdown menu.
      6. Make sure the boxes for “Cookies and other site data” and “Cached images and files” are checked.
      7. Click “Clear data” located in the bottom of the pop up menu.
      8. It can take several minutes to completely clear the cache and cookies.

      Safari

      1. Click on “Safari” in the top left corner of your screen.
      2. Click on “Preferences” from the menu that appears.
      3. Click on “Privacy”.
      4. Click on “Remove Now”.You are experiencing a technical issue.