GithubHelp home page GithubHelp logo

labyrinth's Introduction

Labyrinth Game

ANSI C program to view a recorded session of labyrinth, an abstract strategy game.

Gameplay

  • When the game starts, each player places a token, a choice between a tortoise and a hare, in the center of their base line. Each player in turn, chooses to either move their animal or to put up a fence. A total of 8 fences are available per player. The tortoise always starts first.
  • The animals are moved one square at a time, horizontally or vertically, forwards or backwards, never diagonally.
  • A fence must be placed between 2 sets of 2 squares either horizontally or vertically. Fences may touch one another but may not overlap or fall on top of one another nor may the fences stick off the edge of the board. The fences can be used to facilitate the player's progress or to impede that of the opponent. The animals must move around the fences.
  • When placing fences, a player must always leave an access for the opponent to reach their goal line. A player may accidentally block themselves off from their goal but that is not an illegal move.
  • When the two animals face each other on neighboring squares which are not separated by a fence, the player whose turn it is can jump the opponent's animal, thus advancing an extra square.
  • If there is a fence behind the opponent's animal, the player can place their own animal to the left or the right of the other animal.

labyrinth's People

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.