Caravan (game)

Caravan is a card game played by caravan guards and travelers in the Mojave Wasteland.

Background
Out in the wasteland, the game of choice is Caravan. Created by caravan guards using whatever cards they could find lying around, this is a one-on-one card game played with a cobbled together deck of loose playing cards. Caravan is not played in casinos, but is very popular among caravan guards and other frequent travelers on the Long 15. Because Caravan allows players to build decks from any card they can find, crafty caravan guards often come up with devious decks and strategies. Caravan is played for standard money of any and all kinds: caps, NCR dollars, or legion coins. Because the players are often poor, the stakes tend to be low.

Obtaining a deck and additional cards
A free 54 card starter deck and game instructions can be received from Ringo in Goodsprings. This deck is composed of 53 of the 54 cards from the The Tops' set (There are 2 Kings of Diamonds, the King of Clubs is missing). Additional cards can be obtained from various merchants and corpses across the Mojave wasteland, or by beating Festus at Lucky Horseshoes, or alternatively you may find cards in the Sierra Madre should you have Dead Money installed.

Bidding
At the outset of the game, the opponent will place a bid. The player can then either match or raise. Non-player characters will not match every bid, only raising to about 50% of their initial bid. The player can bid any amount they want, limited only by their opponent's bid and the amount of money they have.

Building a deck
Caravan decks are composed of at least 30 cards from one or more traditional playing card sets. The deck may have any number of cards of any type, although it cannot have duplicate cards from the same set. For example, a King of Spades with The Tops on the reverse and a King of Spades with Gomorrah on the reverse is acceptable, but more than one King of Spades from The Tops deck is not. Any duplicate cards purchased by the player are automatically filtered out of the selection process.

Building a custom deck
Prior to beginning the game, the player is presented with the "deck creation interface". This interface consists of two rows of cards, both representing every card in the deck. The visible cards in the top row represent the playable deck, while the bottom row are the unused cards.

A deck is created by moving cards from the bottom row to the top row using the Add button. Cards can also be removed using the Remove button. The "Randomize Deck" button will randomly select cards, creating a new caravan deck each time from all the available cards in your total card pool. Once the player is finished creating their deck, they can move on to the game. The finished deck will be saved and cannot be edited until the next time Caravan is played.

Gameplay
Caravan is played with two players building three opposing caravans (or "bids") of numbered cards. The goal is to outbid the opponent in all of the three caravans by keeping the number of points on each above 20 and below 27 (21-26) while preventing the opponent from doing the same.

The game begins with each player taking eight cards from their deck and placing either one numerical card or Ace on each of their caravans. A player may not discard during this initial round. (This is currently bugged, see Bugs.) Once both players have started their three bids, each player may do one of the following on their turn:
 * 1) Play one card and draw a new card from their deck into their hand.
 * 2) Discard one card from their hand and draw a new card from their deck.
 * 3) Disband one of their three caravans by removing all cards from that caravan.

After the initial card is played, the following card determines the direction of the caravan, either ascending or descending numerically. All subsequent cards must continue that numerical direction and/or match the suit of the previous card. Playing a same-suit card will change the direction of the caravan, if applicable. Cards of the same numerical value cannot be played in sequence, regardless of suit. Face cards and Jokers can be attached to an Ace or numeric card in a caravan (including your opponents') and affect them in various ways. A total of three cards may be attached to any given regular card, after which the only way to remove that card is through the use of a Jack or discarding the entire caravan.

Winning
A player's caravan is considered sold when the value of its cards is over 20 and under 27. The opponent may still outbid by increasing the value of their opposing pile while staying within the 21-26 range. The game ends when each of the competing caravans is sold to either the opponent or the player, with the victor providing a better bid for at least two of the caravans.

In the event of a tie between any two matched caravans, the game continues until one side has a better bid. The player with two or more sales on their side at the end of the game wins the pot. If either player runs out of cards to discard before a winning condition is met, the player will not be able to discard and will be declared the loser regardless of how many winning caravans they have.

Caravan players

 * [1] Merchants who play Caravan will use one quarter of their currency as starting bid. Spending caps with them increases the amount they hold and the amount they bet, and vice versa. Merchants may also pay out in any alternate currencies they have in their inventory, including any you had already exchanged with them.
 * [2] Certain merchants have a limit on the total number of times they will play Caravan against the player. This limit is absolute and does not "reset" at any point during the game.

Behind the scenes

 * The achievement/trophy names Know When to Hold Them and Know When to Fold Them (in game challenge) are references to the song The Gambler by Kenny Rogers.
 * Both Klamath Bob and Melissa were at one point intended to be Caravan players. The dialogue options which would allow this have been completely removed in both cases, but their Caravan decks remain in the game's resources. Additionally, Poindexter appears to have been intended to be a Caravan player. In this case the dialog option remains, but the associated dialog script, caravan deck, and necessary faction assignment are not present.

Bugs

 * Playing with any no-game-limit non-player character when he holds 59804 caps will result in the player winning up to 52029 caps. Dale Barton will fall back to 59804. This action is repeatable. Also, the game may crash when the non-player character holds more than 65,537 ((2^16)+1) caps into his inventory.
 * Though the rules state no discarding may occur during the initial round, it is nonetheless possible to do so anyway. If the player does so, their opponent does not get a turn and the player gets to go again. The non-player character will also use this bug to their advantage. This is likely due to the fact that if you started with (for example) all queens, you could not make a move and the game could not progress.
 * After the game ends:
 * When it says to press any button to continue pressing start and then hitting start again will cause the game to become unresponsive, while party chat still works.
 * The button to continue will sometimes lag over. (Pressing (O) to exit will sometimes cause the Pip-Boy to open and pressing (X) will sometimes trigger dialogue with the opposing player).
 * It is not possible for the player to discard cards once their main deck is empty. The opponent will still be able to do so once their deck is gone.
 * Upon winning, the player gets the amount of caps in the pot added to their cap total, though the in game message only reports adding half the pot. This is only when the player wins, if the non-player character wins the caps are removed and added properly from both.
 * When putting a card onto any pile, the green validation card will show upside down
 * A bug may occur where the non-player character will not bid any caps even if the player wagers caps. If this happens, the player may lose his wager if he loses and won't win anything if he wins.
 * Some caravan card games may not load up a screen, but rather load up the options to choose cards. The screen will remain with the player looking at their opponent.
 * When drawing or discarding, some cards may change to a different card (ex. 7 to a 10) for the duration of the animation and then change back.
 * Once the game starts and the non-player character places his/her first card for his/her caravan, you're not able to select any cards to be placed in your caravans
 * There is a possibility that you will not be awarded the trophy/achievement "Caravan Master" upon reaching the 30 wins required to get the trophy.