edrogers / gobblet Goto Github PK
View Code? Open in Web Editor NEWCreating a framework to play the board game of Gobblet
Creating a framework to play the board game of Gobblet
% 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.