Code Monkey home page Code Monkey logo

mejico's Introduction

Méjico

A fun dice game (inspired from the popular drinking game Mexico 21) built using vanilla JS.

main-menu-screen-image

Méjico is an elimination dice game that requires 2 dice for rolling and one additional dice for keeping track of each player's lives in the game. The goal of the game is to be the only player left standing.

game-image

  • At the beginning of the game, each player starts out with 6 lives.
  • Two dice are used by each player, and on every roll their separate numerical values are combined to form a two-digit number.
  • The player with the lowest roll in that turn loses a life.
  • The game is continued until one of the players loses all 6 lives and is eliminated.
  • The last one standing is the winner.

You can see Méjico in action by playing the game here -> Play Méjico

P.S.: The dice rolls are generated pseudo-randomly and the logic behind the game is coded in vanilla JS (without any added frameworks).

mejico's People

Contributors

soumik-dhar 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.