Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Releases: zhouzi/logicalornot

Moving back to logical operators

17 May 14:32
Compare
Choose a tag to compare
  • Set back restriction to "logical operators"
  • shuffleAnswers is now part of the gameplay's options, the answers are no more shuffled in hardcore mode

After thinking about it, I finally decided to set back the restriction to logical operators. The player should be able to answer the questions and this game shouldn't be a pretext to feature JavaScript's quirks. I am also afraid that removing this limitation will cause the questions to become more "general" and less specific to JavaScript.

Update Gameplay, Splitted in 2 Modes

14 May 12:38
Compare
Choose a tag to compare
  • The game is now responsive, meaning it works on smartphones as well as desktop computers
  • The timer for a round has been increased from 12 to 15
  • Improved the random pick of questions to avoid repetition
  • The game now also ends when the player answered all the questions
  • There is now two modes:
    • normal: A right answer rise the timer to its maximum
    • normal: A wrong answer doesn't affect the timer
    • hardcore: A right answer rise the timer of 1 to 3 seconds
    • hardcore: A wrong answer drop the timer of 1 to 3 seconds
    • hardcore: The amount of the "gap" depends on the complexity of the question
  • The answers are now displayed randomly
  • The structure of a question is now pretty simple and tested
  • Fixed and improved some questions
  • Fixed taunts to display "So, what's the result of..." only at the start of a new round
  • Added a <noscript> tag
  • Updated description to remove restriction to JavaScript "logical operators"
  • Updated CONTRIBUTING.md according to the new changes

Best Score, Tests

02 May 10:49
Compare
Choose a tag to compare
  • Clarify score in the game over modal and tweet
  • Display and store user's best score
  • Add unit tests

Full refactor

29 Apr 19:19
Compare
Choose a tag to compare
  • Complete refactor to separate concerns
    • Model: RoundClass
    • View: ViewClass
    • Controller: GameClass
    • The three communicate through a shared event stream
  • Life bar now change color depending on life bar's state (normal, low or critical)
  • Add CONTRIBUTING.md
  • Add eslint and gulp task
  • Increase game duration to 12 (instead of 10)
  • Add 10 "easy" questions
  • The first question is now also set randomly (instead of always picking the first one)

First release

27 Apr 12:05
Compare
Choose a tag to compare
  • Setup repository, first version
  • The first question starts the game
  • Display a random question after an answer
  • Added 20 questions src/questions
  • Added life bar
    • Takes 10 seconds to go from 100% to 0%
    • When giving a wrong answer, lose 1 second
    • When giving a right answer, win 1 second
  • Added a Game Over modal
    • Display the score and offer a way to tweet it
    • The replay button, mapped to the space bar, restarts the game (you can restart the game at any moment)
  • When giving a wrong answer, screen blinks with a "bloody" effect
  • When giving an answer, show a random taunt depending on whether the answer is correct or not src/taunts.json