GithubHelp home page GithubHelp logo

vidacalura / what-gm-are-ya Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 114 KB

What chess GM are ya????

Home Page: https://vidacalura.github.io/what-GM-are-ya/

TypeScript 100.00%
chess guessing-game

what-gm-are-ya's Introduction

What GM are ya?

What GM are ya? is a game in which a random chess GM is chosen and you have to guess who it is solely based on your previous guesses. For example, If the chosen master is of the same country as the GM you guessed, the game will inform you.

This game is 100% free and open-source. If you want to try out this challenge, you can find the game here

Contributing

Since this project is completely free and open-source, any help to keep this site updated and improving is extremely welcome. This project is still up thanks solely to kind contributors who devote even if just a little of their time to help.

If you are willing to contribute to this project, you can:

Help updating or extending our database

If you want to add a GM that's not on our database yet, or change some outdated info on an existing one, run on your terminal:

git clone https://github.com/vidacalura/what-GM-are-ya
cd what-GM-are-ya/dist/JS
ls

After doing so, you should see a db.js file. That's where all the GMs data is stored.

After opening this file, you will see all GMs data saved on a map called GMsMap. If you want to add a new GM to this map, all you have to do is copy the code below replacing the example to your own GM.

GMsMap.set("magnus carlsen", new ChessPlayer( // First and last names of the GM, all in lowercase
    "Magnus Carlsen",                         // First and last name of the GM with the initials in uppercase
    "NO",                                     // GM's country abbreviated
    2835,                                     // GM's rating
    1,                                        // GM's world rank
    "M",                                      // GM's gender M or F
    calculateAge(new Date("11/30/1990"))      // Call to calculate the GM's age based on his/her birthday
));

If you want to change outdated info on a GM, just find where he/she is inserted into the map, and replace the old info

Special thanks to TulioTheGreat for helping with the design

what-gm-are-ya's People

Contributors

vidacalura avatar

Stargazers

Rafael dos Santos Giorgi avatar Moyseys Ferreira Veroni 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.