changelog shortlog tags changeset files revisions annotate raw

bin/Data Structures: The Card Game

changeset 347: 2d38841aac9c
child:f91906e0f5da
author: Gregor (codu.org)
date: Sun Dec 06 23:41:28 2009 +0000 (2 years ago)
permissions: -rwxr-xr-x
description: medit/bin/Data Structures: The Card Game chebang=#!/usr/bin/env .wiki cont=This is a card game, created by Gregor Richards and Harrison Metzger. It is absurdly complicated.

== The data structures

=== Deck
The game is played with two standard 52-card decks.

=== Queue
In the center of the table is a queue. The queue has a maximum of five cards, and moves in a predetermined direction. The stack of cards is placed at the beginning of the queue to indicate its direction. The cards in the queue are face-up.

=== Stacks
Each player has a stack. The stack is face-up in front of the player.

=== Hands
Each player has a five-card hand.

=== Lists
Each player has three stacks called the "lists" (this needs a much less stupid name). The objective of the game is to get all three lists to have every value (2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K) in order. The lists may start with any value, but must loop back 'round to one less than that value.

== Setup

At the beginning of the game, the deck is placed to one side. All five cards of the queue are set out, as are a single card for each stack, and each player's five-card hand.

== Gameplay

Place text here.
1#!/usr/bin/env .wiki
2This is a card game, created by Gregor Richards and Harrison Metzger. It is absurdly complicated.
3
4== The data structures
5
6=== Deck
7The game is played with two standard 52-card decks.
8
9=== Queue
10In the center of the table is a queue. The queue has a maximum of five cards, and moves in a predetermined direction. The stack of cards is placed at the beginning of the queue to indicate its direction. The cards in the queue are face-up.
11
12=== Stacks
13Each player has a stack. The stack is face-up in front of the player.
14
15=== Hands
16Each player has a five-card hand.
17
18=== Lists
19Each player has three stacks called the "lists" (this needs a much less stupid name). The objective of the game is to get all three lists to have every value (2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K) in order. The lists may start with any value, but must loop back 'round to one less than that value.
20
21== Setup
22
23At the beginning of the game, the deck is placed to one side. All five cards of the queue are set out, as are a single card for each stack, and each player's five-card hand.
24
25== Gameplay
26
27Place text here.