Code Monkey home page Code Monkey logo

mancala's Introduction

Mancala

Command line Mancala game and library written in C

The game backend is implemented in the Mancala library and the command line program provides a frontend. Consult the header file for details regarding the available function calls. Where expressions may seem unclear, the implementation is also commented.

Mancala is a strategy game in which pebbles are moved around a board to score points. Game rules can be found in the man page in the doc folder.

License

Mancala frontend and library available under GPLv3.

Contributing

If you would like to contribute to the code base, please add a copyright line to the opening comments of any source files you modify. Please try to maintain the same coding conventions.

Implementing a custom frontend

To use the library to implement a frontend, it must be kept in mind that the computerMove(MancalaBoard*, ComputerMoveData*) method should be called repeatedly should the computer obtain an extra turn. Because the frontend may need to display animations or otherwise react to the end of the computer's turn, a recursive algorithm is not implemented. The frontend must handle re-calling the method after displaying appropriate feedback to the user. In the command line frontend, this is implemented in the performComputerMove() method.

Please consult the provided frontend for more details regarding frontend implementation.

mancala's People

Contributors

arc676 avatar

Watchers

 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.