Giter Site home page Giter Site logo

christian-ek / mapmaster Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 843 KB

๐ŸŒ MapMaster: The Ultimate Flag Guessing Game! Test your geography skills by identifying flags from around the world. ๐ŸŒŸ๐Ÿ’ก Built with React & TypeScript.

Home Page: https://map.christianek.io

License: GNU General Public License v3.0

JavaScript 1.30% HTML 0.54% TypeScript 84.96% SCSS 13.20%
flags game google-geocoding-api google-maps-api maps react restcountries-api geography

mapmaster's Introduction

MapMaster

Play MapMaster Now

MapMaster is an innovative game developed using React and TypeScript, offering a unique gaming experience. This project includes all necessary files to set up and run the game. Experience the challenge and excitement of identifying world flags right in your browser!

Features

  • React and TypeScript: Built using modern web technologies for a seamless gaming experience.
  • Engaging Gameplay: MapMaster challenges players to guess the country of a displayed flag. Points are awarded for correct guesses, with a time limit to add excitement. Clues are available to assist, but they come at a points cost. The game demands quick thinking and sharp knowledge of world flags, offering a fun and educational experience. Whether you're a geography enthusiast or just looking for a fun challenge, MapMaster provides an engaging and interactive way to test your skills.
  • Responsive Design: MapMaster offers an optimized experience on both desktop and mobile devices. Its interface adjusts seamlessly to different screen sizes, ensuring enjoyable gameplay on any device.

APIs and Integrations

MapMaster utilizes several APIs for its core functionalities:

  • Google Maps API: For map integration.
  • Google Geocoding API: To determine the country when clicking on the map.
  • Restcountries.com API: For fetching random flags and country information.

Code Quality and Standards

We keep things neat and tidy at MapMaster with ESLint and the Airbnb style guide. It's our little way of ensuring the code is not just good, but great! Easy to read, easy to follow โ€“ because everyone should enjoy diving into our code as much as they enjoy playing the game.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js
  • Yarn (recommended) or npm

Installation

  1. Clone the repository:
    git clone https://github.com/christian-ek/mapmaster.git
    
  2. Navigate to the project directory:
    cd mapmaster
    
  3. Install dependencies:
    yarn install
    
    or
    npm install
    

Running the Game

To start the game, run:

yarn dev

or

npm run dev

This will start the game on a local server, usually at http://localhost:3000.

Environment Setup

To run MapMaster locally, you need to set up the following environment variables in an .env file in the project root directory:

VITE_REACT_APP_GOOGLE_MAPS_API_KEY='' # Your Google Maps API key
VITE_REACT_APP_SUPABASE_KEY='' # Your Supabase key for high score integration
VITE_REACT_APP_SUPABASE_URL='' # Your Supabase URL for high score integration

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU General Public License v3.0. See LICENSE for more information.

Contact

Christian Ek - [email protected]

Project Link: https://github.com/christian-ek/mapmaster.git

mapmaster's People

Contributors

christian-ek avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.