Code Monkey home page Code Monkey logo

gobblet's Introduction

% Instructions to compile 
%
% You need g++ and the standard libraries of C++
% For Ubuntu or a debian-like system, try
sudo aptitude install build-essential
% Then to compile, I use:
find . -type f -name '*.c' ! -name 'main.c' | xargs g++ -o main main.c
% Then to play, just:
./main

% To pick up on the game against Liam last week,
% copy the contents of liam-white--eamon-black.txt
% to the clipboard, start the game, and paste directly
% into the game.  It is then Liam's (white's) turn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Gobblet -- A board game made by Blue Orange
Ed Rogers has been working on making an online version of this game (without permission -- please don't sue!)

RULES
I.    Blue Orange's Official Rules of Gobblet
II.   Ed Rogers's Rules of Gobblet


I.    Blue Orange's Official Rules of Gobblet
  A.    Object of the Game
    Be the first player to align 4 gobblets in a row.

  B.    Winning
    The first player to align 4 gobblets in a row wins. The gobblets forming the line do not all have to be the same size and can be lined up vertically, horizontally or diagonally.

  C.    Turns
    In turns, players can either:
       Put a new gobblet on board
       Move one of their gobblets
  D.    Set Up
    Each player chooses a color and arranges his gobblets in 3 stacks of 4 gobblets each. Only the 3 biggest gobblets are showing at the beginning. These stacks are called external stacks.
  E.    Setting Up: 
    Each player arranges his gobblets in 3 stacks.
  F.    Playing
    In turns, players can either put
        a new gobblet on the board, 
        move one of their gobblets already on the board to any empty space or gobble up any smaller size gobblet with a bigger gobblet already in play.
    Blacks' turn to move. Player can either
        put another black gobblet on the board or 
        move the black gobblet already on the board to an empty square or gobble up the smaller white piece on the board.
    Gobble up any smaller size gobblet already on the board with a bigger one.
    The first player to align 4 gobblets in a row wins.
    If you put a new gobblet in play, you must place it on an empty square. However, there is one exception to this rule: if your opponent already has 3 gobblets in a row on the board, you may gobble up 1 of the 3 pieces in the line with a gobblet taken directly from one of your external stacks.
        
   G.   Examples
    Whites' turn to move. There are 3 black gobblets lined up, so the player with the white gobblets can gobble one of them directly from one of his external stacks.
    If you place all 12 of your pieces on the board before the game is over, you simply continue playing with the pieces on the board until a winner or a draw is declared.

   H.   Playing from Stacks: 
    Players must play pieces in the order they appear, starting from the top.

   I.   Playing from the Board: 
    Gobblets must be lifted to ensure that only one piece is moved at a time.

   J.   Gobbling: 
    You can gobble up your own pieces. 
    You can gobble up any smaller size gobblet; it does not have to be the next size down.

   K.   Touched Gobblet: 
    Once you touch a gobblet that is on the board you must play it. 
    If you touch a gobblet that cannot be played, you automatically lose that game.

   L.   Uncovering Gobblets: 
    You can move any gobblet on the board whether it is covering another gobblet or not. However, if you uncover one of your opponent's pieces, and this move reveals a line of 4 of your opponent's pieces, you lose unless you can place your gobblet over a different piece in this same line of 4.

   M.  Draws: 
    The game is declared a draw if 3 repetitions of identical moves between whites and blacks occur or by mutual agreement between players.


II.   Ed Rogers's Rules of Gobblet
   All the same as Blue Orange's EXCEPT
   A.   Playing from Stacks:
    Pieces played from the stacks can be used to gobble up other pieces, even if the player is not in "check."
   B.   Touched Gobblet:
    No (silly) touched gobblet rule.

gobblet's People

Contributors

edrogers avatar

Stargazers

 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.