arcade-mode icon indicating copy to clipboard operation
arcade-mode copied to clipboard

Added solution project euler challenge 52

Open johnking205 opened this issue 7 years ago • 4 comments

I added my solution to the Project Euler Challenge 52. If you would like me to change the formatting of the comments in future commits, please let me know how I can view my solution on the site.

johnking205 avatar Feb 21 '18 22:02 johnking205

Hi John

Thanks for your contribution! If you follow instructions in https://github.com/freeCodeCamp/arcade-mode/ section "Quick start", you're almost there.

After step 4 npm install, execute gulp watch-dev, which builds the application in development mode. If you run into problems with gulp, try node_modules/gulp/bin/gulp.js watch-dev instead. Then start server using npm start. After this, you can view the application in localhost:8080.

tpoikela avatar Feb 22 '18 16:02 tpoikela

Hi Tuomas,

I've done that, and it brings me to the website. In the website, I can click skip this challenge enough times until I see the challenge that I'm adding. What I want to know is how can I see how my solution would appear to the user? For my last commit #70 , @timolawl said that he had to add some line breaks to my in-code comments to improve how they show up in arcade-mode. I would like to be able to see how my comments appear on the site so that I can add the line breaks myself in the future.

johnking205 avatar Feb 22 '18 17:02 johnking205

Hi John

Sorry, I interpreted your first message incorrectly.

There should be "Insert Solution" -button on the left-hand side panel to insert your code into the editor. If it's not there, you are not running the development build, but the production one. To make sure you have the correct version running and not a cached production version, it's best to run the browser in incognito mode, and refresh the browser using Ctrl-shift-R (Reload and override cache). Also, in the development version you don't have to skip challenges, but you can select your own challenge from a dropdown menu when you start.

tpoikela avatar Feb 22 '18 20:02 tpoikela

Thank you Tuomas! I figured out how to see my solution thanks to your description. In my solution to Project Euler 51, some of my comments were too long for the in-page editor and caused some lines to wrap. Checking my solution to Euler 52 that this pull request is about though, it appears that my comments are short enough to not wrap. Therefore, I don't believe I need to cancel this pull request to make any changes. I had already ran npm run test:client before on this branch before making this pull request.

johnking205 avatar Feb 22 '18 20:02 johnking205