Git Product home page Git Product logo

hex_game_project's Introduction

Hex101 - Command Line Hex Game

How to create an Hex Game in C language ?

Description

A command line C language implementation of Game of Hex, with a text interface.

It was created as a requirement of the Advanced Programming course at IUT Paris-Descartes, Paris.

This program requires C99 support, which is not always provided by older versions of gcc.

Sample Game

---------------- HEX -----------------

                         1
      0 1 2 3 4 5 6 7 8 9 0
   10  - - - - - - - - - - B  10
     9  - - - - - - - - - W B  9
      8  - - - - W - - W W B -  8
       7  - - - - - W - - W B -  7
        6  - - - - - - - - W B -  6
         5  - - - - - B W - - - -  5
          4  - - - - B W - - - - -  4
           3  - - - - B B B B - - -  3
            2  - - - W W W W B B - -  2
             1  - - - - - - W W B - -  1
              0  - - - - - - - - B - -  0
                  0 1 2 3 4 5 6 7 8 9 1
                                       0

---------------------------------------------

Black just moved (9, 6).
Player (White) connects horizontally.
CPU (Black) connects vertically.
Enter move coordinate X:

hex_game_project's People

Contributors

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