Giter Site home page Giter Site logo

matchstick's Introduction

Matchstick

{EPITECH} | First year | Elementary programming in C project

This project is based on a very famous game based on matchsticks. There is a certain number of matchstick lines. The two players take turns; each player can, on a same line, take one or several matchsticks. The losing player is the one to take the last matchstick.

The goal of the project is to create a program that you can play against. The basic version must generate a game board with n matchstick lines (1 < n < 100) and have a simple interface so that the user could play against the computer.

The number of lines is given as parameter to the program. The second parameter of the program indicates the maximum number of matches that can be taken out each turn (must be > 0). When matchsticks are removed, they must be removed starting from the right (like in the example below). The user will always start the game.

See the subject for further details !

========================

1st semester Elementary programming in C (part II) unit

Grade : C | Mark : 16

Category Percentage Tests Crash ?
Initial display of 4x4 board 100% 3/3 x
Bad inputs 50% 6/12 x
Full_games 100% 20/20 x
AI effectiveness 50% 5/10 x
End scores 75.6% 34/45 Yes (1)

Beware of -42 Epitech students !!!

matchstick's People

Contributors

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