Giter Site home page Giter Site logo

mustafadalga / mangala Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 19.73 MB

Mangala Mind Game

Home Page: https://mangala-game.vercel.app

License: GNU General Public License v3.0

TypeScript 98.91% CSS 0.88% JavaScript 0.21%
brain-training educational-game entertainment-game iq-game mangala mental-exercise strategy-game mangala-mind-game mangala-zeka-oyunu brain-teaser

mangala's Introduction

Mangala Mind Game

What is Mangala?

Mangala is a Turkish Intelligence and Strategy Game played by two people. The game board consists of 12 small pits in pairs of 6 opposite each other, and a large treasure for each player to collect their stones. Mangala is played with 48 stones.

Players distribute 48 stones, 4 in each pit. Each player owns the 6 small pits in front of them, while the opposite 6 belong to the opponent. Players aim to collect the most stones in their treasury. The player with the most stones at the end wins the game.

Game Rules

  • The player whose turn it is takes 4 stones from any pit in their area. They leave one stone in the pit they took from, and distribute the rest one by one in the next pits counter clock wise.
  • If the last stone lands in the player's treasure, they get another turn.
  • If a pit has only one stone, the player can move this stone to the next pit on their right during their turn. The turn then passes to the opponent.
  • While distributing stones, if the player still has stones in hand, they continue placing stones in the opponent's pits. If the last stone makes the number of stones in an opponent's pit even (2, 4, 6, 8, etc.), the player takes all stones from that pit into their treasure. The turn then passes to the opponent.
  • If the last stone lands in an empty pit on the player's side, and there are stones in the opponent's pit opposite, the player takes all stones from the opponent's pit and the stone from their own pit into their treasure. The turn then passes to the opponent.
  • The game ends when one player's pits are emptied of stones. The player who empties their pits first takes all remaining stones from the opponent's pits.
  • At the end of the game, the stones in the treasuries are counted, and the player with the most stones wins. The game is drawn if the number of stones is equal.

Why Play Mangala?

There are several reasons to play the Mangala Mind game:

  • Enhancing mental skills and strategic thinking: Players need to distribute stones effectively and predict their opponents' moves
  • Providing a competitive and fun environment: Players develop strategies to win against their opponents while having fun​1​.
  • Social interaction: Since Mangala is a game for two, it encourages social interaction between players​1​.

Used Technologies

  • Next.js
  • Typescript
  • Firebase for auth and real time database
  • Zustand for state management
  • TailwindCSS for user interface

Demo

https://youtu.be/8RvGgvTmkdA

License

License

mangala's People

Contributors

mustafadalga avatar

Stargazers

 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.