GithubHelp home page GithubHelp logo

jeu-de-dames's Introduction

Draughts

Overview

It's a small Draughts video game (call « jeu de Dames » in French), implemented for the class of « Méthodes informatiques et techniques de programmation » (Université Grenoble 1).

This video game it's not totally finished.

Features

This game wants respect WCDF Rules of Draughts.

This program valid every move of man according to the rules :

  • « 1.13 The first move in each game is made by the player with the Whight men (…) »
  • « 1.15 An ordinary move of a man is its transfer diagonally forward left or right from one square to an immediately neighbouring vacant square.  »
  • « 1.16 When a man reaches the farthest row forward (known as the “king-row” or “crown-head”) it becomes a king, »
  • « 1.18 A capturing move of a man is its transfer from one square over a diagonally adjacent and forward square occupied by an opponent`s piece (man or king) and on to a vacant square immediately beyond it. (A capturing move is called a "jump"). On completion of the jump the captured piece is removed from the board. »
  • « 1.19 If a jump creates an immediate further capturing opportunity, then the capturing move of the piece (man or king) is continued until all the jumps are completed. (…) At the end of the capturing sequence, all captured pieces are removed from the board. »
  • « 1.20 All capturing moves are compulsory, whether offered actively or passively. If there are two or more ways to jump, a player may select any one that they wish, not necessarily that which gains the most pieces. Once started, a multiple jump must be carried through to completion. A man can only be jumped once during a multiple jumping sequence. »
  • « 1.23 If a player on their turn to move touches a piece they must play that piece (…) »

@TODO

  • Modular programming.
  • Import a clock.
  • Change libraries, use the cross-platform development library SDL.
  • King is not totally finished. He can't move and capture an opponent's piece.
  • Display result of the game.
  • Make a mode single player (play against the computer).

Installation

  1. Compile graphsimple.c: gcc -c graphsimple.c
  2. Compile graphlib_w2.c: gcc -c graphlib_w2.c
  3. Links: ar -r libgraph.a raphsimple.o graphlib_w2.o
  4. Make libary: ranlib libgraph.a
  5. Step 5
  • For root user : 1. Put include files *.h in /usr/include, and put the libary in /usr/lib. 2. Compile: gcc Demineur.c -lgraphe -lX11

  • For not root user : 1. Put include files *.h in custom direcotry, for example /home/toto/include. Put libary in a custom directory lib, for example /home/toto/lib. 2. Compile: gcc monprog.c -I/home/toto/include -L/home/toto/lib -lgraphe -lX11

Licenses

  • The file Jeu_de_Dames.c, by juanes10 in under MIT license. Libaries Graphsimple and Graphlib_w2 are under copyright, see this files for credits. ## Version

Development started in december 2014. Last modified : january 2015. First realase : november 2015.

jeu-de-dames's People

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.