The Worst Minesweeper 💣 Ever
Switch branches/tags
Nothing to show
Clone or download
Latest commit d646ff5 Oct 4, 2018
Permalink
Failed to load latest commit information.
public meta Sep 17, 2018
src tweak Sep 17, 2018
.eslintrc.json refactor files Sep 7, 2018
.gitignore add image fallback Sep 16, 2018
LICENSE readme Sep 7, 2018
README.md add WarriorJS Oct 4, 2018
package-lock.json 1.0.0 Sep 16, 2018
package.json meta Sep 17, 2018

README.md

JavaScript Equality Table Game…

…or why you should prefer the === operator.

Screenshot

Screenshot

Trivia

Brendan Eich was asked to add the loose equality checking rules by a coworker in Netscape and considers it a mistake.[citation needed]

Motivation

The initial reason to make this game was to try out state management with immer-wieder, but it's also to demonstrate that the == rules are easy to get wrong even if you feel like you're familiar with them. It's in response to claims like this one by the well-known author getify:

However, implicit coercion is a mechanism that can be learned, and moreover should be learned by anyone wishing to take JavaScript programming seriously. Not only is it not confusing once you learn the rules, it can actually make your programs better! The effort is well worth it.

Emojis

The game uses emojis; your system and browser should preferably support color fonts and have an emoji font like EmojiOne or Noto Color Emoji installed for the emojis to display properly. If not, the game will provide fallback SVG images from emojitwo (using emoji-extractor).

Other Quirky Web-Related Games