Code Monkey home page Code Monkey logo

mancala's Introduction

Mancala: The Game Test

Screenshot

Mancala is a two player game where players take turns moving stones or seeds around a board. The objective is for the player to capture more seeds or stones than their opponent.

Installation

Currently, this package is not available on PYPI so the easiest way to install it is to use pip and install from git

From inside a virtualenv, run the following:

pip install git+https://github.com/kyokley/mancala/

Alternatively, if you are running docker, and have make installed, you may simply run make build.

Playing the Game

Single Game

Getting Started

After installing, a new game can be started by entering mancala (or mancala-series to run multiple games) at the prompt. You will then be asked for the number of seeds per cup to begin the game with. Once this value has been provided, the game begins.

Objective

Player 1 will attempt to collect seeds in the leftmost cup while Player 2 will attempt the same in the rightmost cup. The player with the most seeds in their cup at the end of the game is the winner. The game is over when all seeds have been moved to either Player 1 or Player 2's cups.

Taking Turns

Players take turns selecting indices (a, b, c, ...), removing all "seeds" from that "cup", and placing them one-by-one in subsequent "cups" in a clockwise direction. If the last seed falls in the player's cup, the player gets to take another turn.

mancala's People

Contributors

kyokley avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.