GithubHelp home page GithubHelp logo

mancala's Introduction

Mancala

C++ Mancala Board Game by Jon Binder

This is my final project for my class, ELEC 3150, Object Oriented Programming.

This program uses five object types: Pit, Board, EasyCPU, MediumCPU, and HardCPU. The Board object contains 14 Pit objects. Each of these Pits can hold Marbles.

As the Player, you will be going against a CPU of your choice.. Easy, Medium, or Hard. The CPU objects MediumCPU and HardCPU are child objects of the class EasyCPU. Each CPU has a technique to win, building on each other as their difficulty increases.

Rules

Marbles move counterclockwise, skipping the opponent's Mancala. The bigger Pits or Stores on the top and bottom of the board are called Mancalas. Each Player has 6 Pits, starting with 4 Marbles in each. The Pits on the left are the Player’s and the Pits on the right are the CPU's. On the Player’s turn, a Pit is picked and marbles are placed by one around the board.

On the Player’s turn: If the last Marble lands in the Player’s Mancala, an extra turn is awarded. If the last Marble lands in an empty Pit on the Player’s side a capture takes place. Capturing takes the single marble placed in the Player's empty pit and all the Marbles on the opponent's opposite side. These Marbles are added to the Player’s Mancala.

When a Player’s side runs out of Marbles, remaining Marbles are placed into their Player’s Mancala. Whoever has the most Marbles in their Mancala Wins!

mancala's People

Contributors

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