Giter Site home page Giter Site logo

codeschool-projects / codebreakerproject Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 1.0K 58 KB

Code Breaker: Challenge Friends with a Game Written using Javascript

Home Page: https://codeschool-projects.github.io/CodeBreakerProject/

License: MIT License

HTML 14.33% JavaScript 84.65% CSS 1.02%

codebreakerproject's People

Contributors

amaschino avatar drewbarontini avatar ericjfisher avatar jecoms avatar jonfriskics avatar krekog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codebreakerproject's Issues

! [rejected]

failed to push some refs to gh-pages (non-fast-forward)

Task 11 - why is the first line there?

The first line of task 11 is In our guess function set a variable for the value of the user-guess input., but that input variable is already declared for us in the guess() function.

First Task Instructions unclear

For the "Create setHiddenFields Function" the instructions are:

Our application uses the answer hidden input to store the answer to the game. Our setHiddenFields method should not use any parameters, but needs to set the awnser hidden input to a randomly generated number between 0 and 9999.

This doesn't specifically say anything about what a student is supposed to do for this step. I recommend something like this:

Create a function named `setHiddenFields` that sets the `answer` variable equal to a randomly generated number between 0 and 9999.

Task 8 issue

In the task "Only set the "answer" and "attempt" hidden inputs when they aren't already set", it starts with:

"When we go to call the setHiddenFields functions in our guess function, we should only update our hidden inputs when they're not set."

Should that instead be something like:

"Call the setHiddenFields() function in the body of the guess() function, but also write some logic so that it's only called when answer and attempt haven't already been set."

Formatting issues in some tasks.

Task 11 for example is missing some commas. Also some contraction issues and places where apostrophes are used and shouldn't be.

gh-pages instructions: Need to delete branch in your fork first

In the project complete notes it mentions publishing the finished project to GitHub Pages.

In order for

git subtree push --prefix src origin gh-pages

to work, you'll need to delete the gh-pages branch from the initial clone first.

Steps I took:

git checkout -b "gh-pages"
tried to execute subtree push, but was given an error about current tip being behind remote
deleted gh-pages branch in browser
git subtree push --prefix src origin gh-pages

Success!

window.reload() on clicking Play again? button

In index.html file window.reload() function should be called with true attribute, to pull the site from the server, because otherwise it preserves the values of answer, attempt and user-guess inputs.

Getting an ES2015-related syntax error when running npm test

CodeBreaker :

Error: Uncaught [SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode]
    at reportException (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:58:24)
    at processJavaScript (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:130:7)
    at HTMLScriptElementImpl._eval (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:65:7)
    at /Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/browser/resource-loader.js:31:22
    at Object.check (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:88:11)
    at Object.check (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:91:23)
    at Object.check (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:91:23)
    at /Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:107:12
    at wrappedEnqueued (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/browser/resource-loader.js:255:16)
    at Request._callback (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/lib/jsdom/browser/resource-loader.js:203:9)
    at Request.self.callback (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/node_modules/request/request.js:186:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/node_modules/request/request.js:1081:10)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at Gunzip.<anonymous> (/Users/jonfriskics/Desktop/CodeBreakerProject/node_modules/jsdom/node_modules/request/request.js:1001:12)
    at Gunzip.g (events.js:260:16)
    at emitNone (events.js:72:20)
    at Gunzip.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:905:12)
    at doNTCallback2 (node.js:441:9)
    at process._tickCallback (node.js:355:17) [SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode]
    setHiddenFields()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.