Skip to content

mustafadalga/mangala

Repository files navigation

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