Giter Site home page Giter Site logo

sharkdp / quizzity Goto Github PK

View Code? Open in Web Editor NEW
129.0 8.0 17.0 440 KB

A fast-paced geography quiz

Home Page: http://david-peter.de/quizzity/

License: MIT License

Shell 4.44% Python 13.50% CartoCSS 2.57% PHP 9.09% JavaScript 34.55% HTML 17.21% Less 18.64%
game map leaflet website quiz countries cities

quizzity's Introduction

quizzity

quizzity is a geographical quiz built on top of a Leaflet map. You have to guess the location of several cities on a map while receiving points for being both accurate and fast.

Play the game here!

Score distribution

Score distribution

JavaScript libraries, CSS, icons

Geodata, map rendering

The game idea is inspired by Geosense.

quizzity's People

Contributors

sharkdp 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  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  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  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

quizzity's Issues

Improve UX for comparing one’s most recent guess with the city’s actual location

Thanks for this awesome little game!

The user experience could be further improved by making it easier for the player to compare their most recent guess with the city’s actual location.

With a little experience, most of your guesses will be pretty close. So you’ll end up zooming in as much as possible for every city asked.

When you have placed your marker on the map, however, while the actual answer (i.e. the city’s correct location) is being revealed, the map is immediately zoomed out and re-centered.

This lets you lose focus and makes it hard to compare your guess against the actual answer. In order to compare the two, you have to zoom in again and move to the area surrounding the two markers.

That’s because quizzity.js handles all this in Quizzity.prototype.userClick, where in the this.isGameActive() case, this.removeMarkers() is being called.

Instead, only the minimal amount of zooming out should be applied that makes both markers (the one for your guess and the one for the actual answer) show up on the map, if any at all. If the solution is in the section last focused on, there’s no need to zoom in or move the map at all.

Only after that, and after the user had the chance to view the solution and its distance, the map should be zoomed out and re-centered, as in the !this.isGameActive() case. So it could be something like this:

_.delay(_.bind(function() {
    this.resetMapView();
}, this), 2500);

Taiwan belongs to China

A very rewarding game that helps people learn geography. But Taiwan is not a country, it is part of China. Hope this can be fixed.
@sharkdp 🖖

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.