<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.doc.boardgamearena.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ShaPhi7</id>
	<title>Board Game Arena - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.doc.boardgamearena.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ShaPhi7"/>
	<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/Special:Contributions/ShaPhi7"/>
	<updated>2026-12-05T15:32:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Stock&amp;diff=25790</id>
		<title>Stock</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Stock&amp;diff=25790"/>
		<updated>2025-07-13T10:08:53Z</updated>

		<summary type="html">&lt;p&gt;ShaPhi7: /* Selection */ Corrected default&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Studio_Framework_Navigation}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stock&#039;&#039;&#039; is a javascript component that you can use in your game interface to display a set of elements of the same size that need to be arranged in single or multiple lines.&lt;br /&gt;
&lt;br /&gt;
Stock is very flexible and is the most used component in BGA games.&lt;br /&gt;
&lt;br /&gt;
Examples of stock use cases:&lt;br /&gt;
&lt;br /&gt;
* Display a set of cards, typically hands (examples: &#039;&#039;Hearts&#039;&#039;, &#039;&#039;Seasons&#039;&#039;, &#039;&#039;The Boss&#039;&#039;, &#039;&#039;Race for the Galaxy&#039;&#039;).&lt;br /&gt;
* Display items in player panels (examples: &#039;&#039;Takenoko&#039;&#039;, &#039;&#039;Amyitis&#039;&#039;, ...)&lt;br /&gt;
* ... Many other situations. For example, black dice and cubes on cards in &#039;&#039;Troyes&#039;&#039; are displayed with stock components.&lt;br /&gt;
&lt;br /&gt;
Using stock:&lt;br /&gt;
&lt;br /&gt;
* Your items are arranged nicely and sorted by type.&lt;br /&gt;
* When adding or removing items to a set, all items slide smoothly to their new position in the set.&lt;br /&gt;
* Selecting and unselecting items are built-in functions.&lt;br /&gt;
* You don&#039;t have to worry about inserting/removing HTML code; the entire life cycle of the stock is managed by the component.&lt;br /&gt;
&lt;br /&gt;
== Using stock: a simple example ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s have a look at how the stock is used in the game &#039;&#039;Hearts&#039;&#039; to display a hand of standard cards.&lt;br /&gt;
&lt;br /&gt;
First, don&#039;t forget to add &amp;quot;ebg/stock&amp;quot; as a dependency in your js file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
define([&lt;br /&gt;
    &amp;quot;dojo&amp;quot;,&amp;quot;dojo/_base/declare&amp;quot;,&lt;br /&gt;
    &amp;quot;ebg/core/gamegui&amp;quot;,&lt;br /&gt;
    &amp;quot;ebg/counter&amp;quot;,&lt;br /&gt;
    &amp;quot;ebg/stock&amp;quot;     /// &amp;lt;==== HERE&lt;br /&gt;
],&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The stock is initialized in the Javascript &amp;quot;setup&amp;quot; method like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    // Player hand&lt;br /&gt;
    this.playerHand = new ebg.stock();&lt;br /&gt;
    this.playerHand.create( this, $(&#039;myhand&#039;), this.cardwidth, this.cardheight );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Explanations:&lt;br /&gt;
* We create a new stock object for the player hand.&lt;br /&gt;
* As parameters of the &amp;quot;create&amp;quot; method, we provide the width/height of an item (a card), and the div container &amp;quot;myhand&amp;quot; - which is a simple empty &amp;quot;div&amp;quot; element defined in our HTML template (.tpl).&lt;br /&gt;
&lt;br /&gt;
Then, we must tell the stock what items it is going to display during its life: the 52 cards of a standard card game. Of course, we did not create 52 different images, but a &amp;quot;CSS sprite&amp;quot; image named &amp;quot;cards.jpg&amp;quot; with the cards arranged in 4 rows and 13 columns.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how we tell stock what items to display:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    // Specify that there are 13 images per row in the CSS sprite image&lt;br /&gt;
    this.playerHand.image_items_per_row = 13;&lt;br /&gt;
&lt;br /&gt;
    // Create card types:&lt;br /&gt;
    for( var color=1;color&amp;lt;=4;color++ )&lt;br /&gt;
    {&lt;br /&gt;
        for( var value=2;value&amp;lt;=14;value++ )&lt;br /&gt;
        {&lt;br /&gt;
            // Build card type id&lt;br /&gt;
            var card_type_id = this.getCardUniqueId( color, value );&lt;br /&gt;
            this.playerHand.addItemType( card_type_id, card_type_id, g_gamethemeurl+&#039;img/cards.jpg&#039;, card_type_id );&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Explanation:&lt;br /&gt;
&lt;br /&gt;
* First, we tell the stock component that our CSS sprite contains 13 items per row. This way, it can find the correct image for each card type id.&lt;br /&gt;
* Then for the 4x13 cards, we call the &amp;quot;addItemType&amp;quot; method that creates the type. The arguments are the type id, the weight of the card (for sorting purpose), the URL of our CSS sprite, and the position of our card image in the CSS sprite.&lt;br /&gt;
&lt;br /&gt;
Note: In this specific example we need to generate a unique ID for each type of card based on its color and value. This is the only purpose of &amp;quot;getCardUniqueId&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
From now on, if we need to add a card - for example, the 5 of Hearts - to a player&#039;s hand, we can do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
this.playerHand.addToStock( this.getCardUniqueId( 2 /* 2=hearts */, 5 ) );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In reality, cards have some IDs, which are useful to manipulate them. This is the reason we are using &amp;quot;addToStockWithId&amp;quot; instead:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
this.playerHand.addToStockWithId( this.getCardUniqueId( 2 /* 2=hearts */, 5 ), my_card_id );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If afterwards we want to remove this card from the stock:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
this.playerHand.removeFromStockById( my_card_id );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Complete stock component reference ==&lt;br /&gt;
&lt;br /&gt;
for interest, the source is available here : https://x.boardgamearena.net/data/themereleases/220811-1000/js/modules/stock.js (this link may change with new release)&lt;br /&gt;
&lt;br /&gt;
In the reference below the type StockItem refers to a record { id: number, type: number }, i.e. {id: 22, type: 3}&lt;br /&gt;
&lt;br /&gt;
And StockItemType is record {weight: number, image: string, image_position: number}&lt;br /&gt;
&lt;br /&gt;
=== Creation ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;create( page, container_div, item_width, item_height ):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
With create, you create a new stock component.&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* page: the container page. Usually: &amp;quot;this&amp;quot;.&lt;br /&gt;
* container_div: the container &amp;quot;div&amp;quot; element. Its not an id, if you have id you can pass $(id). It must exists.&lt;br /&gt;
* width and height (in pixels) for the stock component.&lt;br /&gt;
&lt;br /&gt;
(See &#039;&#039;Hearts&#039;&#039; example above).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;addItemType(type: number, weight: number, image: string, image_position: number ): void&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Define a new type of item (StockItemtType) and add it to the stock with given type id.&lt;br /&gt;
&lt;br /&gt;
This is mandatory to define a new item type before adding it to the stock. Example: if you want to have a stock contain cubes of 3 different colors, you must add 3 item types (one for each color).&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* type: id of the type to add. You can choose any positive integer. All item types must have distinct IDs.&lt;br /&gt;
* weight: weight of items of this type. Weight value is used to sort items of the stock during the display. Note that you can specify the same weight for all items; in this case, they are not sorted and their order might change randomly at any time.&lt;br /&gt;
* image: URL of item image. Most of the time, you will use a CSS sprite for stock items, so you have to specify CSS sprite image here.&lt;br /&gt;
&lt;br /&gt;
Be careful: you must specify the image url as this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  g_gamethemeurl+&#039;img/yourimage.png&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* image_position: if &amp;quot;image&amp;quot; specify the URL of a CSS sprite, you must specify the position of the item image in this CSS sprite. For example, if you have a CSS sprite with 3 cubes with a size of 20x20 pixels each (so your CSS image has for example a size of 20x60 or 60x20), you specify &amp;quot;0&amp;quot; for the first cube image, 1 for the second, 2 for the third.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Important&#039;&#039;: if there is more than one line of items in your CSS sprite,  you must specify how many items per line you have in your CSS sprite, see image_items_per_row below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;image_items_per_row&#039;&#039;&#039;&lt;br /&gt;
Class member to set number of columns in css sprite (or how many items per row). I.e. if you sprite is 4 cards horizontally and 6 vertically, you have to set it to 4.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    // Specify that there are 10 image items per row in images used in &amp;quot;myStockObject&amp;quot; control.&lt;br /&gt;
    this.myStockObject.image_items_per_row = 4;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add/Remove items ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;addToStock( type, from )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add an item to the stock, with the specified type, but without a unique ID.&lt;br /&gt;
&lt;br /&gt;
To make your life easier, in most cases we suggest you use &#039;&#039;&#039;addToStockWithId&#039;&#039;&#039; in order to give an ID to the item added. &#039;&#039;&#039;addToStock&#039;&#039;&#039; is suitable when you are using a stock to control items that are generic game materials that don&#039;t need to be tracked individually (example: a bunch of money tokens).&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* type: ID of the item type to use (as specified in &amp;quot;addItemType&amp;quot;)&lt;br /&gt;
* from: OPTIONAL: if you specify an HTML item here, the item will appear on this item and will be slid to its position on the stock item.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  // Add a money token to the &amp;quot;player money&amp;quot; stock.&lt;br /&gt;
  // The money token will appear on &amp;quot;player_id&amp;quot; player panel and will move to its position.&lt;br /&gt;
  this.playerMoney.addToStock( MONEY_TOKEN, &#039;overall_player_board_&#039;+player_id );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Important: for a given stock control, you must use either &#039;&#039;&#039;addToStock&#039;&#039;&#039; or &#039;&#039;&#039;addToStockWithId&#039;&#039;&#039;, but NEVER BOTH OF THEM.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;addToStockWithId( type, id, from )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This is the same method as &#039;&#039;&#039;addToStock&#039;&#039;&#039;, except that it also associates an ID with the newly created item.&lt;br /&gt;
&lt;br /&gt;
This is especially useful:&lt;br /&gt;
&lt;br /&gt;
* When you need to know which item(s) have been selected by the user (see &#039;&#039;&#039;getSelectedItems&#039;&#039;&#039;).&lt;br /&gt;
* When you need to remove a specific item from the stock with &#039;&#039;&#039;removeFromStockById&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;removeFromStock( type, to, noupdate )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Remove an item of the specific type from the stock.&lt;br /&gt;
&lt;br /&gt;
&#039;to&#039; is an optional parameter. If &amp;quot;to&amp;quot; contains the ID of an HTML element, the item removed from the Stock slides to this HTML element before it disappears. Note that this method does not expose the associated animation object, however, so it&#039;s not possible to trigger other actions when it finishes, for example. If you need to do that, use Dojo&#039;s slideToObject() instead.&lt;br /&gt;
&lt;br /&gt;
&#039;noupdate&#039; is an optional parameter. If set to &amp;quot;true&amp;quot; it will prevent the Stock display from changing. This is useful when multiple (but not all) items are removed at the same time, to avoid ghost items appearing briefly. If you pass noupdate you have to call updateDisplay() after all items are removed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;removeFromStockById( id, to, noupdate )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Remove an item with a specific ID from the stock.&lt;br /&gt;
&lt;br /&gt;
&#039;to&#039; is an optional parameter. If &amp;quot;to&amp;quot; contains the ID of an HTML element, the item removed from the Stock slides to this HTML element before it disappears. Note that this method does not expose the associated animation object, however, so it&#039;s not possible to trigger other actions when it finishes, for example. If you need to do that, use Dojo&#039;s slideToObject() instead.&lt;br /&gt;
&lt;br /&gt;
&#039;noupdate&#039; is an optional parameter. If set to &amp;quot;true&amp;quot; it will prevent the Stock display from changing. This is useful when multiple (but not all) items are removed at the same time, to avoid ghost items appearing briefly. If you pass noupdate you have to call updateDisplay() after all items are removed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;removeAll()&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Remove all items from the stock.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;removeAllTo( to )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Remove all items from the stock. If &amp;quot;to&amp;quot; contains the ID of an HTML element, the item removed from the stock slides to this HTML element before it disappears.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Getters ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;getPresentTypeList()&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Return an array with all the types of items present in the stock right now.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    this.myStockControl.removeAll();&lt;br /&gt;
    this.myStockControl.addToStock( 65 );&lt;br /&gt;
    this.myStockControl.addToStock( 34 );&lt;br /&gt;
    this.myStockControl.addToStock( 89 );&lt;br /&gt;
    this.myStockControl.addToStock( 65 );&lt;br /&gt;
    &lt;br /&gt;
    // The following returns: { 34:1,  65:1,  89:1  }&lt;br /&gt;
    var item_types = this.myStockControl.getPresentTypeList();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;count():&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Return the total number of items in the stock right now.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;getAllItems()&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Get all items (same format as getSelectedItems and getUnselectedItems).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;getItemDivId(id)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Get the div id using the stock item id (to manipulate element properties directly).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;getItemById(id)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Get the Stock item with the id in parameter&lt;br /&gt;
ex : return the object { type:1,  id:  1001 }&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;getItemWeightById(id: number): number|null&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Returns item weigh given id. or null if not found&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;container_div&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Member containing div of the stock container in dom (container_div.id would be it&#039;s id)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;control_name&#039;&#039;&#039;&lt;br /&gt;
Its id of container_div above&lt;br /&gt;
&lt;br /&gt;
=== Selection ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;setSelectionMode( mode )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For each stock control, you can specify a selection mode:&lt;br /&gt;
* 0: no item can be selected by the player.&lt;br /&gt;
* 1 (default): a maximum of one item can be selected by the player at a time.&lt;br /&gt;
* 2: multiple items can be selected by the player at the same time.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;setSelectionAppearance( type )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For each stock control, you can specify a selection highlighting type:&lt;br /&gt;
* &#039;border&#039;: there will be a red border around selected items (this is the default). The attribute &#039;apparenceBorderWidth&#039; can be used to manage the width of the border (in pixels).&lt;br /&gt;
* &#039;disappear&#039;: the selected item will fade out and disappear. This is useful when the selection has the effect of destroying the item.&lt;br /&gt;
* &#039;class&#039;: there will be an extra &#039;&#039;&#039;stockitem_selected&#039;&#039;&#039; css class added to the element when it is selected (and removed when unselected). The name of the class can be changed by using the &#039;&#039;&#039;selectionClass&#039;&#039;&#039; attribute. You can also override the default class in the css file for your game but beware of the &#039;&#039;&#039;!important&#039;&#039;&#039; keyword.&lt;br /&gt;
&lt;br /&gt;
By default this class definition is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.stockitem_selected {&lt;br /&gt;
	border: 2px solid red ! important;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to override it (for example, to change the border color) add this in your &amp;lt;game&amp;gt;.css file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.stockitem_selected {&lt;br /&gt;
	border: 2px solid orange ! important;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;isSelected( id )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Return a boolean indicating whether the specified item id has been selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;selectItem( id )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select the specified item.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;unselectItem( id )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Unselect the specified item.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;unselectAll()&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Unselect all items of the stock.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;selectItemsByType(type: number): void&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Selectes all items in a stock with given type (in addition to previous selection)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;unselectItemsByType(type: number): void&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Unselects all items in a stock with given type&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;onChangeSelection&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This callback method is called when the player selects/unselects an item of the stock.&lt;br /&gt;
&lt;br /&gt;
You can connect this to one of your methods like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    dojo.connect( this.myStockControl, &#039;onChangeSelection&#039;, this, &#039;onMyMethodToCall&#039; );&lt;br /&gt;
    &lt;br /&gt;
    (...)&lt;br /&gt;
    &lt;br /&gt;
    onMyMethodToCall: function( control_name, item_id )&lt;br /&gt;
    {&lt;br /&gt;
        // This method is called when myStockControl selected items changed&lt;br /&gt;
        var items = this.myStockControl.getSelectedItems();&lt;br /&gt;
        &lt;br /&gt;
        // (do something)&lt;br /&gt;
    },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nota bene: &lt;br /&gt;
- The &amp;quot;control_name&amp;quot; argument is the ID (the &amp;quot;DOM&amp;quot; id) of the &amp;quot;div&amp;quot; container of your stock control. Using &amp;quot;control_name&amp;quot;, you can use the same callback method for different Stock control and see which one trigger the method.&lt;br /&gt;
- The &amp;quot;item_id&amp;quot; argument is the stock ID (index) of the stock item that has just been selected/unselected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;getSelectedItems()&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Return the list of selected items, as an array with the following format:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
   { type:1,  id:  1001 },&lt;br /&gt;
   { type:1,  id:  1002 },&lt;br /&gt;
   { type:3,  id:  1003 }&lt;br /&gt;
   ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;getUnselectedItems()&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Same as the previous one, but return unselected item instead of seleted ones.&lt;br /&gt;
&lt;br /&gt;
=== Layout ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;resetItemsPosition()&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you moved an item from the stock control manually (ex: after a drag&#039;n&#039;drop) and want to reset their positions to their original ones, you can call this method.&lt;br /&gt;
Note: it is the same as updateDisplay() without arugment, not sure why there are two methods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;updateDisplay(from)&#039;&#039;&#039;&lt;br /&gt;
Update the display completely (if &#039;from&#039; is defined: moves new items from this location).&lt;br /&gt;
&lt;br /&gt;
Example code if you change the underlying stock item, or otherwise want to make the stock item refresh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    this.myStockControl.updateDisplay();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;item_margin&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
By default, there is a margin of 5px between the items of a stock. You can change the member variable &amp;quot;item_margin&amp;quot; to change this.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     this.myStockControl.item_margin=5;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;changeItemsWeight( newWeights )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
With this method you can change dynamically the weight of the item types in a stock control.&lt;br /&gt;
&lt;br /&gt;
Items are immediately re-sorted with the new weight.&lt;br /&gt;
&lt;br /&gt;
Example: with a stock control that contains classic cards, you can order them by value or by color. Using changeItemsWeight you can switch from one sort method to another when a player request this.&lt;br /&gt;
&lt;br /&gt;
newWeights is an associative array: item type id =&amp;gt; new weight.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    // Item type 1 gets a new weight of 10, 2 a new weight of 20, 3 a new weight of 30.&lt;br /&gt;
    this.myStockControl.changeItemsWeight( { 1: 10, 2: 20, 3: 30 } );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example2:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    // Be careful with object initialisers with variables, use the bracket notation.&lt;br /&gt;
    // Item type 1 gets a new weight of 10&lt;br /&gt;
    var card_type = 1;&lt;br /&gt;
    this.myStockControl.changeItemsWeight( { [card_type]: 10 } );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;centerItems&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Center the stock items in the middle of the stock container.&lt;br /&gt;
e.g. this.myStock.centerItems = true; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;setOverlap( horizontal_percent, vertical_percent )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This functions sents stock horizontal_overlap and vertical_overlap, the calls updateDisplay(). See what overlap means below&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;horizontal_overlap&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make items of the stock control &amp;quot;overlap&amp;quot; each other, to save space. By default, horizontal_overlap is 0 (but there is also &#039;&#039;&#039;item_margin&#039;&#039;&#039; which affects spacing&#039;&#039;&#039;)&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When horizontal_overlap=20, it means that a stock item will overlap to only show 20% of the width of all the previous items. horizontal_overlap can&#039;t be greater than 100.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;vertical_overlap&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There is two modes, in one mode it used to adjust every 2nd item (See the games &amp;quot;Jaipur&amp;quot; or &amp;quot;Koryŏ&amp;quot;), second mode when setting use_vertical_overlap_as_offset=false is more/less normal overlap with vertical layout except its perentage of overlap (opposite of horizontal_overlap).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is example of vertical stock with overlap&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
stock.container_div.width = &amp;quot;60px&amp;quot;; // enought just for 1 card&lt;br /&gt;
stock.autowidth = false; // this is required so it obeys the width set above&lt;br /&gt;
stock.use_vertical_overlap_as_offset = false; // this is to use normal vertical_overlap&lt;br /&gt;
stock.vertical_overlap = 20; // overlap&lt;br /&gt;
stock.horizontal_overlap  = -1; // current bug in stock - this is needed to enable z-index on overlapping items&lt;br /&gt;
stock.item_margin = 0; // has to be 0 if using overlap&lt;br /&gt;
stock.updateDisplay(); // re-layout&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:StockV.png]] [[File:StockHV.png]]  [[File:StockMixed.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;autowidth&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Stock does not play well if you attempt to inline-block it with other blocks, to fix that you have to set this flag which will calculate width properly&lt;br /&gt;
   mystock.autowidth = true;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;resizeItems( width, height, background_width, background_height )&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
background_width is an optional argument.&lt;br /&gt;
&lt;br /&gt;
background_height is an optional argument.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; stock.resizeItems(100, 120, 150, 170);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Customize Appearance ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;extraClasses&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Can be set to a list of class names (separated by space) on stock object, so when div is created these are added, i.e.&lt;br /&gt;
&lt;br /&gt;
  this.playerHand.extraClasses=&#039;mycard&#039;;&lt;br /&gt;
&lt;br /&gt;
Note that it is the same list for all items.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;onItemCreate&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using onItemCreate, you can trigger a method each time a new item is added to the Stock, in order to customize it.&lt;br /&gt;
&lt;br /&gt;
Complete example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    // During &amp;quot;setup&amp;quot; phase, we associate our method &amp;quot;setupNewCard&amp;quot; with the creation of a new stock item:&lt;br /&gt;
    this.myStockItem.onItemCreate = dojo.hitch( this, &#039;setupNewCard&#039; ); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    // And here is our &amp;quot;setupNewCard&amp;quot;:&lt;br /&gt;
    setupNewCard: function( card_div, card_type_id, card_id )&lt;br /&gt;
    {&lt;br /&gt;
       // Add a special tooltip on the card:&lt;br /&gt;
       this.addTooltip( card_div.id, _(&amp;quot;Some nice tooltip for this item&amp;quot;), &#039;&#039; );&lt;br /&gt;
&lt;br /&gt;
       // Note that &amp;quot;card_type_id&amp;quot; contains the type of the item, so you can do special actions depending on the item type&lt;br /&gt;
&lt;br /&gt;
       // Add some custom HTML content INSIDE the Stock item:&lt;br /&gt;
       dojo.place( this.format_block( &#039;jstpl_my_card_content&#039;, {&lt;br /&gt;
                                ....&lt;br /&gt;
                           } ), card_div.id );&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;onItemDelete&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Function handler called when div is removed&lt;br /&gt;
&lt;br /&gt;
   this.myStock.onItemDelete = (card_div, card_type_id, card_id) =&amp;gt; { console.log(&amp;quot;card deleted from myStock: &amp;quot;+card_id); };&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;jstpl_stock_item&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Override default HTML template, this is the default:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  mystock.jstpl_stock_item =&#039;&amp;lt;div id=&amp;quot;${id}&amp;quot; class=&amp;quot;stockitem ${extra_classes}&amp;quot; style=&amp;quot;top:${top}px;left:${left}px;width:${width}px;height:${height}px;${position};background-image:url(\&#039;${image}\&#039;);${additional_style}&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#039;;&lt;br /&gt;
            &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: variable ${position} normally resolve to nothing or z-index: X - depending on overlap variables, and additional_style resolves to `background-size: ${this.backgroundSize}` if it is set&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;custom CSS images&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to use your own css styles for images on the items (i.e. not grid), you can do it as following, use customize template, then modify onItemCreate to add slyle which is based on type&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 mystock.jstpl_stock_item =  &#039;&amp;lt;div id=&amp;quot;${id}&amp;quot; class=&amp;quot;stockitem card&amp;quot; style=&amp;quot;top:${top}px;left:${left}px;${position};&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#039;;&lt;br /&gt;
 mystock.onItemCreate = (card_div, card_type_id, card_id ) =&amp;gt; { dojo.addClass(card_div, &#039;card_type_&#039;+card_type_id); }&lt;br /&gt;
 for (var type = 0; type &amp;lt;= 48; type++) {&lt;br /&gt;
   mystock.addItemType(type, type); // we skipped image and image position here&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: in this case your CSS must define all styles require for these stock items such as width, heigh, image and image positioning for every type&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.card {&lt;br /&gt;
  width: 50px;&lt;br /&gt;
  height: 80px;&lt;br /&gt;
  background-image: url(img/cards.jpg);&lt;br /&gt;
  background-size: 600% auto;&lt;br /&gt;
}&lt;br /&gt;
.card_type_1 {&lt;br /&gt;
  background-postion: 20% 0%;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tips when adding/removing items to/from Stock components ==&lt;br /&gt;
&lt;br /&gt;
Most cases will be one of the following situations:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Situation A&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
When you add a card to a stock item, and this card is &#039;&#039;&#039;not&#039;&#039;&#039; coming from another stock:&lt;br /&gt;
&lt;br /&gt;
* Use &#039;&#039;&#039;addToStockWithId&#039;&#039;&#039; with a &amp;quot;from&amp;quot; argument set to the element of your interface where the card should come from (i.e. div id). For example if you want to &amp;quot;reveal&amp;quot; card from player hand and it is not an interface element you can set from to be &#039;player_board_&#039;+activePlayerId (where activePlayerId is player who played that card).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Situation B&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
When you add a card to a stock item, and this card is coming from another stock:&lt;br /&gt;
&lt;br /&gt;
* On the destination Stock, use &#039;&#039;&#039;addToStockWithId&#039;&#039;&#039; with a &amp;quot;from&amp;quot; argument which is the HTML id of the corresponding item in the source Stock. For example, if the source stock id is &amp;quot;myHand&amp;quot;, then the HTML id of card 48 is &amp;quot;myHand_item_48&amp;quot;.&lt;br /&gt;
* Then, remove the source item with &#039;&#039;&#039;removeFromStockById&#039;&#039;&#039;. Note: do NOT set the &#039;to&#039; argument in this call, otherwise you&#039;ll get two animations.&lt;br /&gt;
&lt;br /&gt;
(Note that it&#039;s important to do things in this order, because the source item must still exist when you use it as the origin of the slide.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Situation C&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
When you move a card from a stock item to something that is not a stock item:&lt;br /&gt;
&lt;br /&gt;
* Insert the card as a classic HTML template (dojo.place / this.format_block).&lt;br /&gt;
* Place it on the Stock item with &#039;&#039;&#039;this.placeOnObject&#039;&#039;&#039;, using the Stock item HTML id (see above).&lt;br /&gt;
* Slide it to its new position with &#039;&#039;&#039;this.slideToObject&#039;&#039;&#039;.&lt;br /&gt;
* Remove the card from the Stock item with &#039;&#039;&#039;removeFromStockById&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Using the methods above, your cards should slide to, from, and between your Stock controls smoothly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
&lt;br /&gt;
==== Incorrectly displayed sprites on Safari ====&lt;br /&gt;
&lt;br /&gt;
As mentioned above, stock displays its images using &amp;quot;sprites&amp;quot; consisting of a portion of a larger image. To accomplish this, it uses the CSS background-position attribute in negative multiples of 100%. For example, the first element of the first row would be 0% 0%. The second element of the first row would be -100% 0%, etc.&lt;br /&gt;
&lt;br /&gt;
This works fine except in Safari, which sometimes slightly modifies the width of elements at smaller screen sizes (usually when minimum width of &#039;game_interface_width&#039; is not null) in game. For example, you might get a ~49.99px x ~49.99px div instead of the 50px x 50px specified by CSS width/height. Combined with using percentages in background-position, this can cause sprites to be slightly off-center.&lt;br /&gt;
&lt;br /&gt;
Using pixels in background-position is probably the easiest way to fix this problem, but that would require modifying the stock code itself. As a developer, you can also work around the problem by specifying a background-size attribute based on the size in elements of your source image. For example, if you have a source image that contains 5 rows of 28 sprites, you should specify &amp;quot;background-size: 2800% 500%;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can add background-size to your stock items by using the extraClasses attribute as explained above and then specifying the values in your game.css file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Studio]]&lt;/div&gt;</summary>
		<author><name>ShaPhi7</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpekko&amp;diff=24023</id>
		<title>Gamehelpekko</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpekko&amp;diff=24023"/>
		<updated>2025-02-12T00:41:00Z</updated>

		<summary type="html">&lt;p&gt;ShaPhi7: bag implementation game end differs from the rules&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Overview===&lt;br /&gt;
&lt;br /&gt;
Empty your hand the fastest, by playing cards higher than odds, lower than evens, and cards which are the reverse of what the active number is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Turn===&lt;br /&gt;
&lt;br /&gt;
On a turn, you must try to play a card on top of what came before&lt;br /&gt;
&lt;br /&gt;
If the current card is odd (+), then you must play a higher card&lt;br /&gt;
&lt;br /&gt;
If the current card is even (-), then you must play a lower card&lt;br /&gt;
&lt;br /&gt;
If you cannot meet this requirement, then you have to draw a card&lt;br /&gt;
&lt;br /&gt;
If you play a card in the 11s, 11, 22, 33, 44 and so on, you get another go straight away&lt;br /&gt;
&lt;br /&gt;
If your last played card is the next card you see, i.e. no one else could play, you can play any card ignoring odd or even rules&lt;br /&gt;
&lt;br /&gt;
You can interrupt out of turn by playing a mirror of what is displayed, this is the numbers in reverse e.g. 57 can be interrupted with 75, units and whole tens are mirrors of each other e.g. 02 vs 20&lt;br /&gt;
&lt;br /&gt;
If you successfully play a mirror, either discard a card of your choice (not to the play area, out of the game) or cause everyone else to draw a card&lt;br /&gt;
&lt;br /&gt;
If you play an invalid card, either normally or the wrong mirror, you take it back and draw a card as penalty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Round End===&lt;br /&gt;
&lt;br /&gt;
The round ends when a player empties their hand&lt;br /&gt;
&lt;br /&gt;
Every other player scores 1 point for cards remaining in hand, and 2 points for a card of the 11s in hand&lt;br /&gt;
&lt;br /&gt;
Then the cards are shuffled and a new round starts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Game Ends===&lt;br /&gt;
&lt;br /&gt;
Once a player meets or exceeds 25 points, the player with the lowest score wins!&lt;br /&gt;
&lt;br /&gt;
Note: At this time, the BGA implementation only plays to 12 points.&lt;/div&gt;</summary>
		<author><name>ShaPhi7</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelploveletter&amp;diff=23340</id>
		<title>Gamehelploveletter</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelploveletter&amp;diff=23340"/>
		<updated>2024-11-27T16:35:07Z</updated>

		<summary type="html">&lt;p&gt;ShaPhi7: /* Game play */ Two player available&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Card games]]&lt;br /&gt;
&lt;br /&gt;
== Theme ==&lt;br /&gt;
In the wake of the arrest of Queen Marianna for high treason, none was more heartbroken than her daughter, Princess Annette.&lt;br /&gt;
Suitors throughout the City-State of Tempest sought to ease Annette&#039;s sorrow by courting her to bring some joy into her life.&lt;br /&gt;
&lt;br /&gt;
You are one of these suitors, trying to get your love letter to the princess.&lt;br /&gt;
Unfortunately, she has locked herself in the palace, so you must rely on intermediaries to carry your message.&lt;br /&gt;
&lt;br /&gt;
During the game, you hold one secret card in your hand.&lt;br /&gt;
This is who currently carries your message of love for the princess.&lt;br /&gt;
&lt;br /&gt;
Make sure that the person closest to the princess holds your love letter at the end of the day, so it reaches her first!&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
* One of the 16 playing cards is removed at the beginning of each round and the others are shuffled.&lt;br /&gt;
* Every player is dealt one card.&lt;br /&gt;
* The remaining cards form a pile in the centre of the table.&lt;br /&gt;
&lt;br /&gt;
== Game play ==&lt;br /&gt;
&lt;br /&gt;
* Players take turns drawing one card (making two cards in hand) and discarding one card (returning to one card in hand).&lt;br /&gt;
* When a player discards a card, its effect is applied.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; border=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;width:auto;&amp;quot;&lt;br /&gt;
|+Card effects - 2-4 players&lt;br /&gt;
!Value&lt;br /&gt;
!№&lt;br /&gt;
!style=&amp;quot;width:7rem;&amp;quot;|Name&lt;br /&gt;
!style=&amp;quot;width:12rem;&amp;quot;|Simplified effect description&lt;br /&gt;
!Full effect description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|8&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Princess&#039;&#039;&#039; Annette&lt;br /&gt;
|Discard = out!&lt;br /&gt;
|If you discard the Princess — no matter how or why — she has tossed your letter into the fire. You are knocked out of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|7&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Countess&#039;&#039;&#039; Wilhelmina&lt;br /&gt;
|Must discard with King or Prince in hand&lt;br /&gt;
|Unlike other cards which take effect when discarded, the text on the Countess applies while she is in your hand. In fact, she has no effect when you discard her. If you ever have the Countess and either the King or Prince in your hand, you must discard the Countess. You do not have to reveal the other card in your hand. Of course, you can also discard the Countess even if you do not have a royal family member in your hand. She likes to play mind games.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|6&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;King&#039;&#039;&#039; Arnaud IV&lt;br /&gt;
|Swap hands&lt;br /&gt;
|When you discard King Arnaud IV, trade the card in your hand with the card held by another player of your choice. You cannot trade with a player who is out of the round, nor with someone protected by the Handmaid. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|5&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Prince&#039;&#039;&#039; Arnaud&lt;br /&gt;
|A player must discard&lt;br /&gt;
|When you discard Prince Arnaud, choose one player still in the round  (including yourself). That player discards their hand (do not apply its effect, unless it&#039;s Princess Annette) and draws a new card. If the deck is empty, that player draws the card that was removed at the start of the round. If all other players are protected by the Handmaid, you must choose yourself.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|4&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Handmaid&#039;&#039;&#039; Susannah&lt;br /&gt;
|May not be targeted&lt;br /&gt;
|When you discard the Handmaid, you are immune to the effects of other players’ cards until the start of your next turn.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|3&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Baron&#039;&#039;&#039; Talus&lt;br /&gt;
|Compare -&amp;gt; lower = out&lt;br /&gt;
|When discarded, choose one other player still in the round. You and that player secretly compare your hands. The player with the lower rank is knocked out of the round. In case of a tie, nothing happens. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Priest&#039;&#039;&#039; Tomas&lt;br /&gt;
|Look at one&lt;br /&gt;
|When you discard the Priest, you can look at one other player’s hand. DO NOT reveal the hand to all players.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|5&lt;br /&gt;
|&#039;&#039;&#039;Guard&#039;&#039;&#039; Odette&lt;br /&gt;
|Guess value -&amp;gt; out&lt;br /&gt;
|When you discard the Guard, choose a player and name a card value (other than 1). If that player has a card with that value, that player is knocked out of the round. If all other players still in the round are protected by the Handmaid, this card does nothing. If your opponent holds an Assassin, you&#039;re out (even if you guess correctly!)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; border=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;width:auto;&amp;quot;&lt;br /&gt;
|+Card effects for &#039;&#039;&#039;&#039;&#039;additional&#039;&#039;&#039;&#039;&#039; cards - 5-8 players&lt;br /&gt;
!Value&lt;br /&gt;
!№&lt;br /&gt;
!style=&amp;quot;width:7rem;&amp;quot;|Name&lt;br /&gt;
!style=&amp;quot;width:12rem;&amp;quot;|Simplified effect description&lt;br /&gt;
!Full effect description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|9&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Bishop&#039;&#039;&#039; Vinizio&lt;br /&gt;
|Guess value -&amp;gt; +1★&lt;br /&gt;
|Similar to a Guard, name a number other than 1 and choose another player. If they have that number card in their hand, gain 1 ★. If the guess is correct, the targeted player can choose whether to keep or discard the card. Despite his impressive 9, the Bishop always loses to the Princess at the end of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|7&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Dowager Queen&#039;&#039;&#039; Tummia&lt;br /&gt;
|Compare -&amp;gt; &#039;&#039;&#039;higher&#039;&#039;&#039; = out&lt;br /&gt;
|Acts as a Baron, but the highest card is eliminated instead of the lowest.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|6&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Constable&#039;&#039;&#039; Viktor&lt;br /&gt;
|Out -&amp;gt; +1★&lt;br /&gt;
|If this card is in your discard pile then this gives you 1 ★ if you are knocked out of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|5&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Count&#039;&#039;&#039; Guntram&lt;br /&gt;
| +1 value @round end&lt;br /&gt;
|Add +1 to your card value at the end of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|4&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Sycophant&#039;&#039;&#039; Morris&lt;br /&gt;
|Choose target&lt;br /&gt;
|Lets you decide who will be the target of the next card played.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|3&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Baroness&#039;&#039;&#039; Fiona&lt;br /&gt;
|Look at two&lt;br /&gt;
|Allows you to see TWO hands.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Cardinal&#039;&#039;&#039; Vesper&lt;br /&gt;
|Swap two hands + look at one&lt;br /&gt;
|Exchanges the hands of 2 players. You may see one of the hands.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&#039;&#039;&#039;+3&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Guard&#039;&#039;&#039; Odette&lt;br /&gt;
|Guess value -&amp;gt; out&lt;br /&gt;
|When you discard the Guard, choose a player and name a card value (other than 1). If that player has a card with that value, that player is knocked out of the round. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|0&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Jester&#039;&#039;&#039; Darius&lt;br /&gt;
|Guess winner -&amp;gt; +1★&lt;br /&gt;
|Allows you to guess who will win the round and score 1 ★ if this is the case.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|0&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Assassin&#039;&#039;&#039;&lt;br /&gt;
|Guard = out&lt;br /&gt;
|Kills your opponent if they use a guard against you.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Round End ===&lt;br /&gt;
&lt;br /&gt;
# No cards in the deck or&lt;br /&gt;
# One player remains.&lt;br /&gt;
* The player holding the Princess or card with the highest value earns 1 ★ token.&lt;br /&gt;
&lt;br /&gt;
==== Tiebreak ====&lt;br /&gt;
&lt;br /&gt;
* Sum of the value of each player&#039;s discarded cards.&lt;br /&gt;
* If a tie remains, nobody gets a ★ token.&lt;br /&gt;
&lt;br /&gt;
== Game end ==&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center;width:auto;&amp;quot;&lt;br /&gt;
|+Winning № of ★s&lt;br /&gt;
!№ Players&lt;br /&gt;
!№ ★ tokens&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|7&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|5&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|4&lt;br /&gt;
|-&lt;br /&gt;
|5-8&lt;br /&gt;
|4&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>ShaPhi7</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=BGA_Code_Sharing&amp;diff=23230</id>
		<title>BGA Code Sharing</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=BGA_Code_Sharing&amp;diff=23230"/>
		<updated>2024-11-15T14:16:23Z</updated>

		<summary type="html">&lt;p&gt;ShaPhi7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Studio_Framework_Navigation}}&lt;br /&gt;
&lt;br /&gt;
This page is for listing of externally hosted bga projects, tools and resources, as well as internal project&lt;br /&gt;
intended for sharing&lt;br /&gt;
&lt;br /&gt;
== Community shared components, pens, etc ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! NAME&lt;br /&gt;
! CODE LINK&lt;br /&gt;
! DESCRIPTION&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Dice models and animation&lt;br /&gt;
|-&lt;br /&gt;
| Die: 4 sided &lt;br /&gt;
| https://codepen.io/mrkiffie/pen/doVZgW  ; https://codepen.io/VictoriaLa/pen/JjZNezr&lt;br /&gt;
| code pen&lt;br /&gt;
|-&lt;br /&gt;
| Die: 6 sided &lt;br /&gt;
| https://github.com/elaskavaia/bga-sharedcode ; https://codepen.io/VictoriaLa/pen/QWBBbwz&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Die: 8 sided &lt;br /&gt;
| https://codepen.io/VictoriaLa/pen/YzMPeGq&lt;br /&gt;
| code pen&lt;br /&gt;
|-&lt;br /&gt;
| Die: 12 sided (dodecahedron) &lt;br /&gt;
| https://codepen.io/VictoriaLa/pen/xxLLxOP &amp;lt;nowiki/&amp;gt;  https://codepen.io/hoursgoby/pen/GRwQzxo&lt;br /&gt;
| Code pen&lt;br /&gt;
|- &lt;br /&gt;
| Die: 20 sided &lt;br /&gt;
| https://codepen.io/vicentemundim/details/cenIh&lt;br /&gt;
| Code pen&lt;br /&gt;
|-&lt;br /&gt;
|Dice&lt;br /&gt;
|[https://github.com/thoun/bga-dice/ Repo]&amp;lt;nowiki&amp;gt; | &amp;lt;/nowiki&amp;gt;[https://thoun.github.io/bga-dice/demo/index.html Demo] (not used yet)&lt;br /&gt;
|Handle dice display and animation &#039;&#039;&#039;WORK IN PROGRESS&#039;&#039;&#039; Only d6 is started&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Moving object using CSS animation (mostly)&lt;br /&gt;
|-&lt;br /&gt;
| Phantom object move on oversurface &lt;br /&gt;
| https://codepen.io/VictoriaLa/pen/gORvdJo&lt;br /&gt;
| This technique creates clone of the object it moves it on another surface. It works well when parents that css transform applies such as scale and rotate&lt;br /&gt;
|-&lt;br /&gt;
| Move object directly using positioning &lt;br /&gt;
| https://codepen.io/VictoriaLa/pen/dyzgKVX&lt;br /&gt;
| This technique is modification of BGA framework method to allow mobile object not to have absolute position before or after the move (and uses css animation not dojo). Methods slideToObjectRelative, attachToNewObjectNoDestroy&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Responsive layout, zoom and navigation for game boards&lt;br /&gt;
|-&lt;br /&gt;
|Flex Layout&lt;br /&gt;
|https://codepen.io/VictoriaLa/pen/XWjJJgG&lt;br /&gt;
|Example on how to create flexible layout just by using css&lt;br /&gt;
|-&lt;br /&gt;
|Zoom&lt;br /&gt;
|[https://github.com/thoun/bga-zoom/ Repo]&amp;lt;nowiki&amp;gt; | &amp;lt;/nowiki&amp;gt;[https://thoun.github.io/bga-zoom/demo/index.html Demo] (visible on Knarr, Azul, Abyss, ...)&lt;br /&gt;
|Allow the user to zoom on the game board. Include the controls to zoom, and handle the scale applied to the HTML element.&lt;br /&gt;
|-&lt;br /&gt;
|Jump to&lt;br /&gt;
|[https://github.com/thoun/bga-jump-to/ Repo]&amp;lt;nowiki&amp;gt; | &amp;lt;/nowiki&amp;gt;[https://thoun.github.io/bga-jump-to/demo/index.html Demo] (visible on Knarr, Elawa)&lt;br /&gt;
|Add floating controls to quickly jump to a player&#039;s table&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Algorithms&lt;br /&gt;
|-&lt;br /&gt;
|Hex grid&lt;br /&gt;
|tapestry,Tumbleweed,gaia project,Gold West&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Shortest path on hex grid&lt;br /&gt;
|memoir 44&lt;br /&gt;
| Dijkstra&lt;br /&gt;
|-&lt;br /&gt;
|Largest area on hex grid&lt;br /&gt;
|tapestry, ...&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Largest area on square grid&lt;br /&gt;
|king domino, ...&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Tetris pieces&lt;br /&gt;
|patchwork, ...&lt;br /&gt;
|Matrix manupations to rotate, flip and fit tetris pieces&lt;br /&gt;
|-&lt;br /&gt;
|Line of sights on hex grid&lt;br /&gt;
|memoir 44&lt;br /&gt;
|Find intersecting hexes on a line between two cells&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Alternative implementations of BGA modules&lt;br /&gt;
|-&lt;br /&gt;
|Scrollmap with zoom&lt;br /&gt;
|https://github.com/yansnow78/bga_scrollmap&lt;br /&gt;
|you can find it in cacao, ginkgopilis, sagani, bigmonster,dominoes, Carcassonne hunters and gatherers and many others. &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; improvements compare to scrollmap:&lt;br /&gt;
- add zoom capabilities &lt;br /&gt;
&lt;br /&gt;
- add possibility to adjust pan delta to tile size when clicking on arrows&lt;br /&gt;
&lt;br /&gt;
- allow zoom with scroll wheel. only allow zoom with wheel if alt or ctrl or shift are pressed by default.  add possibility to select which key need to be pressed when zooming with wheel&lt;br /&gt;
&lt;br /&gt;
- allow pan/scroll and pinch zoom on smartphone. only allow 2 fingers to start scrolling by default, one finger is for page scrolling&lt;br /&gt;
&lt;br /&gt;
- make clickable area of buttons a bit bigger on smartphone&lt;br /&gt;
&lt;br /&gt;
- improve animation between game board and player bards thanks to an animation_div&lt;br /&gt;
&lt;br /&gt;
- add support to long click on buttons (continuous scroll or zoom or enlarge/reduce until button released)&lt;br /&gt;
|-&lt;br /&gt;
|Scrollmap Plus &lt;br /&gt;
|patchwork&lt;br /&gt;
|Implementation with some bugs fixed, improved drag support and ability to use only one direction (i.e. only horizontal like carousel). Found in modules/extscrollmap.js&lt;br /&gt;
|-&lt;br /&gt;
|Cards&lt;br /&gt;
|[https://github.com/thoun/bga-cards/ Repo]&amp;lt;nowiki&amp;gt; | &amp;lt;/nowiki&amp;gt;[https://thoun.github.io/bga-cards/demo/index.html Demo] (visible on Knarr, King of Tokyo, Abyss, ...)&lt;br /&gt;
|Alternative to BGA Stock component, using CSS transitions instead of dojo animations.&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Assorted stuff&lt;br /&gt;
|-&lt;br /&gt;
|Help&lt;br /&gt;
|[https://github.com/thoun/bga-help/ Repo]&amp;lt;nowiki&amp;gt; | &amp;lt;/nowiki&amp;gt;[https://thoun.github.io/bga-help/demo/index.html Demo] (visible on Knarr)&lt;br /&gt;
|Add floating help buttons at the bottom left corner of the screen&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Projects ==&lt;br /&gt;
&lt;br /&gt;
Add the game name, a link to repository and nickname of the developer on bga (same as used for dev forum), and short description. See [[Tools_and_tips_of_BGA_Studio#Version_Control]] for some suggestions on how and where to publish your code externally. Also see the [https://github.com/topics/boardgamearena boardgamearena] topic on github.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important notice about artwork on BGA Open Source projects: original hi-resolution images from publishers must not be published on the repositories. In addition, it is better to specify that the images derivated from publishers artwork are copyrighted and cannot be licensed under a free license like Creative Commons.&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! NON-GAME PROJECTS&lt;br /&gt;
! CODE LINK&lt;br /&gt;
! DEVELOPER&lt;br /&gt;
! COMMENT&lt;br /&gt;
|-&lt;br /&gt;
| Shared Code (not a game)&lt;br /&gt;
| https://github.com/elaskavaia/bga-sharedcode&lt;br /&gt;
| Victoria_La&lt;br /&gt;
| Examples of various game components and PHP stubs of framework code to make IDE happy&lt;br /&gt;
|-&lt;br /&gt;
| Vanilla Typescipt template (not a game)&lt;br /&gt;
| https://github.com/elaskavaia/bga-dojoless&lt;br /&gt;
| Victoria_La&lt;br /&gt;
| Project template for typescript and using minimal dojo, good for vscode - type checking, auto-complete, navigation&lt;br /&gt;
|-&lt;br /&gt;
| BoardGameArena Workbench (not a game)&lt;br /&gt;
| https://github.com/danielholmes/bga-workbench&lt;br /&gt;
| Daniel Holmes (dhau)&lt;br /&gt;
|-&lt;br /&gt;
|BGA-boilerplate&lt;br /&gt;
|https://github.com/bga-devs/tisaac-boilerplate/&lt;br /&gt;
|Tisaac (and Vincentt ?)&lt;br /&gt;
|Main boilerplate with extended &amp;quot;basic&amp;quot; function and code structure&lt;br /&gt;
|-&lt;br /&gt;
|BGA Type Safe Template&lt;br /&gt;
|https://github.com/NevinAF/bga-ts-template&lt;br /&gt;
|NevinAF&lt;br /&gt;
|Full typing of all BGA Framework components.&lt;br /&gt;
|-&lt;br /&gt;
! GAME&lt;br /&gt;
! CODE LINK&lt;br /&gt;
! DEVELOPER&lt;br /&gt;
! COMMENT&lt;br /&gt;
|-&lt;br /&gt;
| 99 (Trick-taking Card Game)&lt;br /&gt;
| https://github.com/ekelly/bga-ninetynine&lt;br /&gt;
| QuasarDukeDev&lt;br /&gt;
|-&lt;br /&gt;
| Abandon All Artichokes&lt;br /&gt;
| https://github.com/0-wiz-0/bga-abandonallartichokes&lt;br /&gt;
| __wiz__, rojomojo&lt;br /&gt;
|-&lt;br /&gt;
| Assyria &lt;br /&gt;
| https://github.com/sebastien-prudhomme/bga-assyria&lt;br /&gt;
| daikinee &lt;br /&gt;
|-&lt;br /&gt;
| Aura&lt;br /&gt;
| https://github.com/micahstairs/bga-aura&lt;br /&gt;
| Micah Stairs (micahstairs)&lt;br /&gt;
|-&lt;br /&gt;
| Bandido &lt;br /&gt;
| https://github.com/opheliehb/BandidoBGA&lt;br /&gt;
| ophelopede &amp;amp; Harkle &lt;br /&gt;
|-&lt;br /&gt;
| The Battle for Hill 218&lt;br /&gt;
| https://github.com/danielholmes/battle-for-hill-218&lt;br /&gt;
| Daniel Holmes (dhau)&lt;br /&gt;
|-&lt;br /&gt;
| Bonbons&lt;br /&gt;
| https://github.com/AntonioSoler/bga-bonbons&lt;br /&gt;
| Morgalad &lt;br /&gt;
|-&lt;br /&gt;
|Big Monster&lt;br /&gt;
|https://github.com/nmatton/bigmonster&lt;br /&gt;
|nicotacotac&lt;br /&gt;
|-&lt;br /&gt;
| Bonsai&lt;br /&gt;
| https://github.com/PhilipDavis/BGA-Bonsai&lt;br /&gt;
| Philip Davis (pdw3)&lt;br /&gt;
| Action stack for client-side undo system; generator functions to model complex turn workflows; infinite hex grid with auto resizing; all data in a single JSON blob; animated scorepad&lt;br /&gt;
|-&lt;br /&gt;
| Canosa&lt;br /&gt;
| https://codeberg.org/halibut/Canosa&lt;br /&gt;
| junibegood&lt;br /&gt;
|-&lt;br /&gt;
| Coinche&lt;br /&gt;
| https://github.com/drasill/bga-coinche&lt;br /&gt;
| Draasill&lt;br /&gt;
|-&lt;br /&gt;
|Copenhagen&lt;br /&gt;
|https://github.com/JoeProgram/bga-copenhagen&lt;br /&gt;
|JoeProgram&lt;br /&gt;
|-&lt;br /&gt;
| Coup: City State&lt;br /&gt;
| https://github.com/quietmint/bga-coupcitystate&lt;br /&gt;
| quietmint&lt;br /&gt;
|-&lt;br /&gt;
| Dice Summoners&lt;br /&gt;
| https://github.com/eoincos/bga-dicesummoners&lt;br /&gt;
| eoincos&lt;br /&gt;
|-&lt;br /&gt;
| Dungeon Roll&lt;br /&gt;
| https://github.com/MartinGoulet/bga-dungeonroll&lt;br /&gt;
| MGoulet&lt;br /&gt;
|-&lt;br /&gt;
| Egyptian Ratscrew&lt;br /&gt;
| https://github.com/0BuRner/bga-egyptianratscrew&lt;br /&gt;
| 0BuRner&lt;br /&gt;
|-&lt;br /&gt;
| Eruption&lt;br /&gt;
| https://github.com/AndyKerrison/bga-eruption&lt;br /&gt;
| Andy_K&lt;br /&gt;
|-&lt;br /&gt;
| A Fistful Of Gold&lt;br /&gt;
| https://bitbucket.org/Joel_L/fistfulofgold&lt;br /&gt;
| Brainchild&lt;br /&gt;
|-&lt;br /&gt;
| Fled&lt;br /&gt;
| https://github.com/PhilipDavis/BGA-Fled&lt;br /&gt;
| Philip Davis (pdw3)&lt;br /&gt;
| All data in a single JSON blob&lt;br /&gt;
|-&lt;br /&gt;
|Flip Freighters&lt;br /&gt;
|https://github.com/joesimpson/bga-flipfreighters&lt;br /&gt;
|joesimpson&lt;br /&gt;
|-&lt;br /&gt;
| Florenza: The Card Game&lt;br /&gt;
| https://github.com/alberto-bottarini/bga-florenza&lt;br /&gt;
| tarini &lt;br /&gt;
|-&lt;br /&gt;
| For-Ex&lt;br /&gt;
| https://github.com/Fnordistan/forex&lt;br /&gt;
| AmadanNaBriona&lt;br /&gt;
|-&lt;br /&gt;
| Get the MacGuffin&lt;br /&gt;
| https://github.com/mizutismask/bga-get-the-MacGuffin&lt;br /&gt;
| mizutismask&lt;br /&gt;
|-&lt;br /&gt;
| Hardback&lt;br /&gt;
| https://github.com/quietmint/bga-hardback&lt;br /&gt;
| quietmint&lt;br /&gt;
|-&lt;br /&gt;
| Hearts &#039;&#039;&#039;(Tutorial)&#039;&#039;&#039;&lt;br /&gt;
| https://github.com/elaskavaia/bga-heartsla&lt;br /&gt;
| Victoria_La&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Homesteaders&lt;br /&gt;
| https://github.com/npatron/bga-homesteaders&lt;br /&gt;
| TheBoot&lt;br /&gt;
|-&lt;br /&gt;
| Incan Gold&lt;br /&gt;
| https://github.com/AntonioSoler/bga-incangold&lt;br /&gt;
| Morgalad &lt;br /&gt;
|-&lt;br /&gt;
| In the Year of the Dragon (10th Anniversary Edition)&lt;br /&gt;
| https://github.com/Fnordistan/ityotd&lt;br /&gt;
| AmadanNaBriona&lt;br /&gt;
|-&lt;br /&gt;
| Just Desserts&lt;br /&gt;
| https://github.com/mizutismask/bga-just-desserts&lt;br /&gt;
| mizutismask&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| The King&#039;s Guild&lt;br /&gt;
| https://github.com/AdamNovotny/BGG-KingsGuild&lt;br /&gt;
| A-dam&lt;br /&gt;
|-&lt;br /&gt;
| The Lady and the Tiger (Doors)&lt;br /&gt;
| https://github.com/Fnordistan/ladyandthetiger&lt;br /&gt;
| AmadanNaBriona&lt;br /&gt;
|-&lt;br /&gt;
|Linkage&lt;br /&gt;
|https://github.com/ShaPhi7/linkage&lt;br /&gt;
|ShaPhi7&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Love Letter&lt;br /&gt;
|https://github.com/ShaPhi7/loveletter&lt;br /&gt;
|ShaPhi7&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Mapmaker: The Gerrymandering Game&lt;br /&gt;
| https://github.com/gzhang01/bga-mapmaker&lt;br /&gt;
| gkz&lt;br /&gt;
|-&lt;br /&gt;
| Marco Polo&lt;br /&gt;
| https://github.com/rcitaliano/MarcoPolo&lt;br /&gt;
| rcitaliano&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Nile&lt;br /&gt;
| https://github.com/AndyKerrison/bga-nile&lt;br /&gt;
| Andy_K&lt;br /&gt;
|-&lt;br /&gt;
| Noir: Killer vs Inspector&lt;br /&gt;
| https://bitbucket.org/chhuang76/bga_noirkvi&lt;br /&gt;
| ch huang&lt;br /&gt;
|-&lt;br /&gt;
|Now Boarding&lt;br /&gt;
|https://github.com/quietmint/bga-nowboarding&lt;br /&gt;
|quietmint&lt;br /&gt;
|-&lt;br /&gt;
| Penny Press&lt;br /&gt;
| https://github.com/AdamNovotny/bga-blooms&lt;br /&gt;
| A-dam&lt;br /&gt;
|-&lt;br /&gt;
| Perikles&lt;br /&gt;
| https://github.com/Fnordistan/perikles&lt;br /&gt;
| AmadanNaBriona&lt;br /&gt;
|-&lt;br /&gt;
| P.I.&lt;br /&gt;
| https://gitlab.com/fa81/bga-pi, https://github.com/hellp/bga-pi (mirror)&lt;br /&gt;
| Fabian Neumann (fa81)&lt;br /&gt;
|-&lt;br /&gt;
| President&lt;br /&gt;
| https://github.com/quaresma95/president&lt;br /&gt;
| quaresma95&lt;br /&gt;
|-&lt;br /&gt;
| Santorini&lt;br /&gt;
| https://github.com/AntonioSoler/bga-santorini&lt;br /&gt;
| Morgalad, quietmint, Tisaac&lt;br /&gt;
|-&lt;br /&gt;
| Tablut&lt;br /&gt;
| https://github.com/Lucas-C/tablut&lt;br /&gt;
| Lucas-C &amp;amp; ntaffore&lt;br /&gt;
|-&lt;br /&gt;
| Takara Island&lt;br /&gt;
| https://github.com/AntonioSoler/bga-takaraisland&lt;br /&gt;
| Morgalad&lt;br /&gt;
|-&lt;br /&gt;
| Taluva&lt;br /&gt;
| https://github.com/quietmint/bga-taluva&lt;br /&gt;
| Morgalad &amp;amp; quietmint&lt;br /&gt;
|-&lt;br /&gt;
| Teotihuacan: City of Gods&lt;br /&gt;
| https://github.com/Trompetenhut/bga-teotihuacan&lt;br /&gt;
| Trompetenhut&lt;br /&gt;
|-&lt;br /&gt;
| Texas 42 (domino game, still under development)&lt;br /&gt;
| https://github.com/ishermandom/bga-42&lt;br /&gt;
| Stardust Spikes, Jason Turner-Maier, Ilya Sherman&lt;br /&gt;
|-&lt;br /&gt;
| Tic Tac Match&lt;br /&gt;
| https://github.com/leocaseiro/bga-tictacmatch&lt;br /&gt;
| Leo Caseiro&lt;br /&gt;
|-&lt;br /&gt;
| Trick of the Rails&lt;br /&gt;
| https://github.com/Fnordistan/trickoftherails&lt;br /&gt;
| AmadanNaBriona&lt;br /&gt;
|-&lt;br /&gt;
| Uptown&lt;br /&gt;
| https://github.com/elliotkendall/bga-uptown&lt;br /&gt;
| SpottedShroom&lt;br /&gt;
|-&lt;br /&gt;
| Via Magica&lt;br /&gt;
| https://github.com/christopherburke/bga_viamagica&lt;br /&gt;
| CuriousTerran&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Projects on studio ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any developer can add themselves to a project as read-only from https://studio.boardgamearena.com/#!projects page (almost any project).&lt;br /&gt;
&lt;br /&gt;
If it is not visible: a) it has no bgg id b) it is already published (use radio button to switch) c) it is an old game not developed on studio.&lt;br /&gt;
&lt;br /&gt;
== Other useful resources ==&lt;br /&gt;
&lt;br /&gt;
Moved to [[Tools_and_tips_of_BGA_Studio]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Studio]]&lt;/div&gt;</summary>
		<author><name>ShaPhi7</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelploveletter&amp;diff=23214</id>
		<title>Gamehelploveletter</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelploveletter&amp;diff=23214"/>
		<updated>2024-11-13T17:57:39Z</updated>

		<summary type="html">&lt;p&gt;ShaPhi7: Clarify Guard-Assassin rule.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Card games]]&lt;br /&gt;
&lt;br /&gt;
== Theme ==&lt;br /&gt;
In the wake of the arrest of Queen Marianna for high treason, none was more heartbroken than her daughter, Princess Annette.&lt;br /&gt;
Suitors throughout the City-State of Tempest sought to ease Annette&#039;s sorrow by courting her to bring some joy into her life.&lt;br /&gt;
&lt;br /&gt;
You are one of these suitors, trying to get your love letter to the princess.&lt;br /&gt;
Unfortunately, she has locked herself in the palace, so you must rely on intermediaries to carry your message.&lt;br /&gt;
&lt;br /&gt;
During the game, you hold one secret card in your hand.&lt;br /&gt;
This is who currently carries your message of love for the princess.&lt;br /&gt;
&lt;br /&gt;
Make sure that the person closest to the princess holds your love letter at the end of the day, so it reaches her first!&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
* One of the 16 playing cards is removed at the beginning of each round and the others are shuffled.&lt;br /&gt;
* Every player is dealt one card.&lt;br /&gt;
* The remaining cards form a pile in the centre of the table.&lt;br /&gt;
&lt;br /&gt;
== Game play ==&lt;br /&gt;
&lt;br /&gt;
* Players take turns drawing one card (making two cards in hand) and discarding one card (returning to one card in hand).&lt;br /&gt;
* When a player discards a card, its effect is applied.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; border=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;width:auto;&amp;quot;&lt;br /&gt;
|+Card effects - 3-4 players&lt;br /&gt;
!Value&lt;br /&gt;
!№&lt;br /&gt;
!style=&amp;quot;width:7rem;&amp;quot;|Name&lt;br /&gt;
!style=&amp;quot;width:12rem;&amp;quot;|Simplified effect description&lt;br /&gt;
!Full effect description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|8&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Princess&#039;&#039;&#039; Annette&lt;br /&gt;
|Discard = out!&lt;br /&gt;
|If you discard the Princess — no matter how or why — she has tossed your letter into the fire. You are knocked out of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|7&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Countess&#039;&#039;&#039; Wilhelmina&lt;br /&gt;
|Must discard with King or Prince in hand&lt;br /&gt;
|Unlike other cards which take effect when discarded, the text on the Countess applies while she is in your hand. In fact, she has no effect when you discard her. If you ever have the Countess and either the King or Prince in your hand, you must discard the Countess. You do not have to reveal the other card in your hand. Of course, you can also discard the Countess even if you do not have a royal family member in your hand. She likes to play mind games.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|6&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;King&#039;&#039;&#039; Arnaud IV&lt;br /&gt;
|Swap hands&lt;br /&gt;
|When you discard King Arnaud IV, trade the card in your hand with the card held by another player of your choice. You cannot trade with a player who is out of the round, nor with someone protected by the Handmaid. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|5&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Prince&#039;&#039;&#039; Arnaud&lt;br /&gt;
|A player must discard&lt;br /&gt;
|When you discard Prince Arnaud, choose one player still in the round  (including yourself). That player discards their hand (do not apply its effect, unless it&#039;s Princess Annette) and draws a new card. If the deck is empty, that player draws the card that was removed at the start of the round. If all other players are protected by the Handmaid, you must choose yourself.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|4&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Handmaid&#039;&#039;&#039; Susannah&lt;br /&gt;
|May not be targeted&lt;br /&gt;
|When you discard the Handmaid, you are immune to the effects of other players’ cards until the start of your next turn.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|3&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Baron&#039;&#039;&#039; Talus&lt;br /&gt;
|Compare -&amp;gt; lower = out&lt;br /&gt;
|When discarded, choose one other player still in the round. You and that player secretly compare your hands. The player with the lower rank is knocked out of the round. In case of a tie, nothing happens. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Priest&#039;&#039;&#039; Tomas&lt;br /&gt;
|Look at one&lt;br /&gt;
|When you discard the Priest, you can look at one other player’s hand. DO NOT reveal the hand to all players.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|5&lt;br /&gt;
|&#039;&#039;&#039;Guard&#039;&#039;&#039; Odette&lt;br /&gt;
|Guess value -&amp;gt; out&lt;br /&gt;
|When you discard the Guard, choose a player and name a card value (other than 1). If that player has a card with that value, that player is knocked out of the round. If all other players still in the round are protected by the Handmaid, this card does nothing. If your opponent holds an Assassin, you&#039;re out (even if you guess correctly!)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; border=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;width:auto;&amp;quot;&lt;br /&gt;
|+Card effects for &#039;&#039;&#039;&#039;&#039;additional&#039;&#039;&#039;&#039;&#039; cards - 5-8 players&lt;br /&gt;
!Value&lt;br /&gt;
!№&lt;br /&gt;
!style=&amp;quot;width:7rem;&amp;quot;|Name&lt;br /&gt;
!style=&amp;quot;width:12rem;&amp;quot;|Simplified effect description&lt;br /&gt;
!Full effect description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|9&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Bishop&#039;&#039;&#039; Vinizio&lt;br /&gt;
|Guess value -&amp;gt; +1★&lt;br /&gt;
|Similar to a Guard, name a number other than 1 and choose another player. If they have that number card in their hand, gain 1 ★. If the guess is correct, the targeted player can choose whether to keep or discard the card. Despite his impressive 9, the Bishop always loses to the Princess at the end of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|7&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Dowager Queen&#039;&#039;&#039; Tummia&lt;br /&gt;
|Compare -&amp;gt; &#039;&#039;&#039;higher&#039;&#039;&#039; = out&lt;br /&gt;
|Acts as a Baron, but the highest card is eliminated instead of the lowest.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|6&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Constable&#039;&#039;&#039; Viktor&lt;br /&gt;
|Out -&amp;gt; +1★&lt;br /&gt;
|If this card is in your discard pile then this gives you 1 ★ if you are knocked out of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|5&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Count&#039;&#039;&#039; Guntram&lt;br /&gt;
| +1 value @round end&lt;br /&gt;
|Add +1 to your card value at the end of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|4&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Sycophant&#039;&#039;&#039; Morris&lt;br /&gt;
|Choose target&lt;br /&gt;
|Lets you decide who will be the target of the next card played.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|3&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Baroness&#039;&#039;&#039; Fiona&lt;br /&gt;
|Look at two&lt;br /&gt;
|Allows you to see TWO hands.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Cardinal&#039;&#039;&#039; Vesper&lt;br /&gt;
|Swap two hands + look at one&lt;br /&gt;
|Exchanges the hands of 2 players. You may see one of the hands.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&#039;&#039;&#039;+3&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Guard&#039;&#039;&#039; Odette&lt;br /&gt;
|Guess value -&amp;gt; out&lt;br /&gt;
|When you discard the Guard, choose a player and name a card value (other than 1). If that player has a card with that value, that player is knocked out of the round. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|0&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Jester&#039;&#039;&#039; Darius&lt;br /&gt;
|Guess winner -&amp;gt; +1★&lt;br /&gt;
|Allows you to guess who will win the round and score 1 ★ if this is the case.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|0&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Assassin&#039;&#039;&#039;&lt;br /&gt;
|Guard = out&lt;br /&gt;
|Kills your opponent if they use a guard against you.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Round End ===&lt;br /&gt;
&lt;br /&gt;
# No cards in the deck or&lt;br /&gt;
# One player remains.&lt;br /&gt;
* The player holding the Princess or card with the highest value earns 1 ★ token.&lt;br /&gt;
&lt;br /&gt;
==== Tiebreak ====&lt;br /&gt;
&lt;br /&gt;
* Sum of the value of each player&#039;s discarded cards.&lt;br /&gt;
* If a tie remains, nobody gets a ★ token.&lt;br /&gt;
&lt;br /&gt;
== Game end ==&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center;width:auto;&amp;quot;&lt;br /&gt;
|+Winning № of ★s&lt;br /&gt;
!№ Players&lt;br /&gt;
!№ ★ tokens&lt;br /&gt;
|-&lt;br /&gt;
|2&#039;&#039;&#039;*&#039;&#039;&#039;&lt;br /&gt;
|7&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|5&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|4&lt;br /&gt;
|-&lt;br /&gt;
|5-8&lt;br /&gt;
|4&lt;br /&gt;
|}&#039;&#039;&#039;*&#039;&#039;&#039;&#039;&#039;Currently unavailable on BGA&#039;&#039;&lt;/div&gt;</summary>
		<author><name>ShaPhi7</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelploveletter&amp;diff=23213</id>
		<title>Gamehelploveletter</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelploveletter&amp;diff=23213"/>
		<updated>2024-11-13T17:52:44Z</updated>

		<summary type="html">&lt;p&gt;ShaPhi7: Clarified Bishop rule.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Card games]]&lt;br /&gt;
&lt;br /&gt;
== Theme ==&lt;br /&gt;
In the wake of the arrest of Queen Marianna for high treason, none was more heartbroken than her daughter, Princess Annette.&lt;br /&gt;
Suitors throughout the City-State of Tempest sought to ease Annette&#039;s sorrow by courting her to bring some joy into her life.&lt;br /&gt;
&lt;br /&gt;
You are one of these suitors, trying to get your love letter to the princess.&lt;br /&gt;
Unfortunately, she has locked herself in the palace, so you must rely on intermediaries to carry your message.&lt;br /&gt;
&lt;br /&gt;
During the game, you hold one secret card in your hand.&lt;br /&gt;
This is who currently carries your message of love for the princess.&lt;br /&gt;
&lt;br /&gt;
Make sure that the person closest to the princess holds your love letter at the end of the day, so it reaches her first!&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
* One of the 16 playing cards is removed at the beginning of each round and the others are shuffled.&lt;br /&gt;
* Every player is dealt one card.&lt;br /&gt;
* The remaining cards form a pile in the centre of the table.&lt;br /&gt;
&lt;br /&gt;
== Game play ==&lt;br /&gt;
&lt;br /&gt;
* Players take turns drawing one card (making two cards in hand) and discarding one card (returning to one card in hand).&lt;br /&gt;
* When a player discards a card, its effect is applied.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; border=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;width:auto;&amp;quot;&lt;br /&gt;
|+Card effects - 3-4 players&lt;br /&gt;
!Value&lt;br /&gt;
!№&lt;br /&gt;
!style=&amp;quot;width:7rem;&amp;quot;|Name&lt;br /&gt;
!style=&amp;quot;width:12rem;&amp;quot;|Simplified effect description&lt;br /&gt;
!Full effect description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|8&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Princess&#039;&#039;&#039; Annette&lt;br /&gt;
|Discard = out!&lt;br /&gt;
|If you discard the Princess — no matter how or why — she has tossed your letter into the fire. You are knocked out of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|7&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Countess&#039;&#039;&#039; Wilhelmina&lt;br /&gt;
|Must discard with King or Prince in hand&lt;br /&gt;
|Unlike other cards which take effect when discarded, the text on the Countess applies while she is in your hand. In fact, she has no effect when you discard her. If you ever have the Countess and either the King or Prince in your hand, you must discard the Countess. You do not have to reveal the other card in your hand. Of course, you can also discard the Countess even if you do not have a royal family member in your hand. She likes to play mind games.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|6&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;King&#039;&#039;&#039; Arnaud IV&lt;br /&gt;
|Swap hands&lt;br /&gt;
|When you discard King Arnaud IV, trade the card in your hand with the card held by another player of your choice. You cannot trade with a player who is out of the round, nor with someone protected by the Handmaid. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|5&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Prince&#039;&#039;&#039; Arnaud&lt;br /&gt;
|A player must discard&lt;br /&gt;
|When you discard Prince Arnaud, choose one player still in the round  (including yourself). That player discards their hand (do not apply its effect, unless it&#039;s Princess Annette) and draws a new card. If the deck is empty, that player draws the card that was removed at the start of the round. If all other players are protected by the Handmaid, you must choose yourself.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|4&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Handmaid&#039;&#039;&#039; Susannah&lt;br /&gt;
|May not be targeted&lt;br /&gt;
|When you discard the Handmaid, you are immune to the effects of other players’ cards until the start of your next turn.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|3&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Baron&#039;&#039;&#039; Talus&lt;br /&gt;
|Compare -&amp;gt; lower = out&lt;br /&gt;
|When discarded, choose one other player still in the round. You and that player secretly compare your hands. The player with the lower rank is knocked out of the round. In case of a tie, nothing happens. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Priest&#039;&#039;&#039; Tomas&lt;br /&gt;
|Look at one&lt;br /&gt;
|When you discard the Priest, you can look at one other player’s hand. DO NOT reveal the hand to all players.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|5&lt;br /&gt;
|&#039;&#039;&#039;Guard&#039;&#039;&#039; Odette&lt;br /&gt;
|Guess value -&amp;gt; out&lt;br /&gt;
|When you discard the Guard, choose a player and name a card value (other than 1). If that player has a card with that value, that player is knocked out of the round. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; border=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;width:auto;&amp;quot;&lt;br /&gt;
|+Card effects for &#039;&#039;&#039;&#039;&#039;additional&#039;&#039;&#039;&#039;&#039; cards - 5-8 players&lt;br /&gt;
!Value&lt;br /&gt;
!№&lt;br /&gt;
!style=&amp;quot;width:7rem;&amp;quot;|Name&lt;br /&gt;
!style=&amp;quot;width:12rem;&amp;quot;|Simplified effect description&lt;br /&gt;
!Full effect description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|9&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Bishop&#039;&#039;&#039; Vinizio&lt;br /&gt;
|Guess value -&amp;gt; +1★&lt;br /&gt;
|Similar to a Guard, name a number other than 1 and choose another player. If they have that number card in their hand, gain 1 ★. If the guess is correct, the targeted player can choose whether to keep or discard the card. Despite his impressive 9, the Bishop always loses to the Princess at the end of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|7&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Dowager Queen&#039;&#039;&#039; Tummia&lt;br /&gt;
|Compare -&amp;gt; &#039;&#039;&#039;higher&#039;&#039;&#039; = out&lt;br /&gt;
|Acts as a Baron, but the highest card is eliminated instead of the lowest.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|6&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Constable&#039;&#039;&#039; Viktor&lt;br /&gt;
|Out -&amp;gt; +1★&lt;br /&gt;
|If this card is in your discard pile then this gives you 1 ★ if you are knocked out of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|5&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Count&#039;&#039;&#039; Guntram&lt;br /&gt;
| +1 value @round end&lt;br /&gt;
|Add +1 to your card value at the end of the round.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|4&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Sycophant&#039;&#039;&#039; Morris&lt;br /&gt;
|Choose target&lt;br /&gt;
|Lets you decide who will be the target of the next card played.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|3&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Baroness&#039;&#039;&#039; Fiona&lt;br /&gt;
|Look at two&lt;br /&gt;
|Allows you to see TWO hands.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|2&lt;br /&gt;
|&#039;&#039;&#039;Cardinal&#039;&#039;&#039; Vesper&lt;br /&gt;
|Swap two hands + look at one&lt;br /&gt;
|Exchanges the hands of 2 players. You may see one of the hands.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&#039;&#039;&#039;+3&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Guard&#039;&#039;&#039; Odette&lt;br /&gt;
|Guess value -&amp;gt; out&lt;br /&gt;
|When you discard the Guard, choose a player and name a card value (other than 1). If that player has a card with that value, that player is knocked out of the round. If all other players still in the round are protected by the Handmaid, this card does nothing.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|0&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Jester&#039;&#039;&#039; Darius&lt;br /&gt;
|Guess winner -&amp;gt; +1★&lt;br /&gt;
|Allows you to guess who will win the round and score 1 ★ if this is the case.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|0&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|1&lt;br /&gt;
|&#039;&#039;&#039;Assassin&#039;&#039;&#039;&lt;br /&gt;
|Guard = out&lt;br /&gt;
|Kills your opponent if they use a guard against you.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Round End ===&lt;br /&gt;
&lt;br /&gt;
# No cards in the deck or&lt;br /&gt;
# One player remains.&lt;br /&gt;
* The player holding the Princess or card with the highest value earns 1 ★ token.&lt;br /&gt;
&lt;br /&gt;
==== Tiebreak ====&lt;br /&gt;
&lt;br /&gt;
* Sum of the value of each player&#039;s discarded cards.&lt;br /&gt;
* If a tie remains, nobody gets a ★ token.&lt;br /&gt;
&lt;br /&gt;
== Game end ==&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center;width:auto;&amp;quot;&lt;br /&gt;
|+Winning № of ★s&lt;br /&gt;
!№ Players&lt;br /&gt;
!№ ★ tokens&lt;br /&gt;
|-&lt;br /&gt;
|2&#039;&#039;&#039;*&#039;&#039;&#039;&lt;br /&gt;
|7&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|5&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|4&lt;br /&gt;
|-&lt;br /&gt;
|5-8&lt;br /&gt;
|4&lt;br /&gt;
|}&#039;&#039;&#039;*&#039;&#039;&#039;&#039;&#039;Currently unavailable on BGA&#039;&#039;&lt;/div&gt;</summary>
		<author><name>ShaPhi7</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelplinkage&amp;diff=9093</id>
		<title>Gamehelplinkage</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelplinkage&amp;diff=9093"/>
		<updated>2021-08-11T20:49:57Z</updated>

		<summary type="html">&lt;p&gt;ShaPhi7: Created page with &amp;quot;== In 100 words ==  This game is played on a 7x7 board with the center square removed. There are 24 pieces, 6 of 4 different colors. Each piece is a domino covering exactly tw...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== In 100 words ==&lt;br /&gt;
&lt;br /&gt;
This game is played on a 7x7 board with the center square removed. There are 24 pieces, 6 of 4 different colors. Each piece is a domino covering exactly two cells of the board. Both players choose pieces from a shared pool.&lt;br /&gt;
&lt;br /&gt;
There are two players in the game: the starting player is called &#039;More&#039; and the other player is called &#039;Fewer&#039;.&lt;br /&gt;
&lt;br /&gt;
The goals of the game are opposite for both players. The &#039;Fewer&#039; player wins a finished game if the number of distinct groups of cells of the same color is less than 12. Otherwise the &#039;More&#039; player wins.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Linkage is played on a 7x7 square grid with dominoshaped pieces that cover two squares each.&lt;br /&gt;
The two players have different goals: one player, called&lt;br /&gt;
&amp;quot;Fewer&amp;quot; needs to keep the number of color groups low,&lt;br /&gt;
while the other player, called &amp;quot;More&amp;quot;, needs to make the&lt;br /&gt;
number of color groups high. &lt;br /&gt;
&lt;br /&gt;
== Components ==&lt;br /&gt;
&lt;br /&gt;
A Linkage set includes:&lt;br /&gt;
- A board with a 7x7 square grid&lt;br /&gt;
- 24 playing pieces, 6 of each color (white, blue,&lt;br /&gt;
red, and yellow).&lt;br /&gt;
- 1 black counter and 1 green counter&lt;br /&gt;
&lt;br /&gt;
== Game Rules ==&lt;br /&gt;
&lt;br /&gt;
The game begins with the board empty, except for the&lt;br /&gt;
black counter, which is placed on the center square:&lt;br /&gt;
Players choose who will be More and who will be&lt;br /&gt;
Fewer.&lt;br /&gt;
The More player always goes first. Each turn consists of&lt;br /&gt;
choosing one of the remaining pieces and placing it on&lt;br /&gt;
the board, then placing the green counter on top of that&lt;br /&gt;
piece. Note that neither player owns any of the pieces;&lt;br /&gt;
they may choose any color to place on each turn.&lt;br /&gt;
When placing a piece, it may be placed anywhere it fits&lt;br /&gt;
without overlapping other pieces or the black counter.&lt;br /&gt;
There is, however, one restriction: the piece may not be&lt;br /&gt;
placed so that it touches the previously-placed piece&lt;br /&gt;
which is marked by the green counter.&lt;br /&gt;
If a player does not have a legal move because of the&lt;br /&gt;
location of the green counter, he removes it from the&lt;br /&gt;
board and passes that turn.&lt;br /&gt;
Play continues until there are no more available moves. &lt;br /&gt;
&lt;br /&gt;
== End of Game == &lt;br /&gt;
&lt;br /&gt;
Once no more moves can be made, the number of color&lt;br /&gt;
groups on the board is counted. A color group is any set&lt;br /&gt;
of one or more pieces of the same color that are&lt;br /&gt;
connected vertically or horizontally. See the diagram for&lt;br /&gt;
an example. If there are 12 or more color groups, More&lt;br /&gt;
wins the game. If there are 11 or less, the Fewer player&lt;br /&gt;
wins. &lt;br /&gt;
&lt;br /&gt;
== Optional Rule ==&lt;br /&gt;
&lt;br /&gt;
At the time this is being printed, Linkage strategy has&lt;br /&gt;
developed somewhat and shows a slight advantage for&lt;br /&gt;
the More player. So the following rule can be played&lt;br /&gt;
both to mitigate this advantage, and to add some variety&lt;br /&gt;
to the starting configuration.&lt;br /&gt;
When beginning the game, one player starts by placing&lt;br /&gt;
the black counter anywhere on the board. Then the&lt;br /&gt;
other player chooses whether to play More or Fewer.&lt;br /&gt;
Play then continues normally, with whoever is More&lt;br /&gt;
going first as usual.&lt;/div&gt;</summary>
		<author><name>ShaPhi7</name></author>
	</entry>
</feed>