<?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=Fenadoruk</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=Fenadoruk"/>
	<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/Special:Contributions/Fenadoruk"/>
	<updated>2026-11-06T22:13:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpriviera&amp;diff=31930</id>
		<title>Gamehelpriviera</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpriviera&amp;diff=31930"/>
		<updated>2026-10-20T22:43:25Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Goal ==&lt;br /&gt;
Score 40 points over several rounds, or win instantly with a Grand Slam by playing all 10 cards from your hand in a single round.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
You get 10 cards and one Last Chance card, which you can use once per game. With 2 to 4 players, one colour is removed for the whole game, along with all its cards and its die.&lt;br /&gt;
&lt;br /&gt;
== A turn ==&lt;br /&gt;
# &#039;&#039;&#039;Roll:&#039;&#039;&#039; all coloured dice are rolled.&lt;br /&gt;
# &#039;&#039;&#039;Play a card:&#039;&#039;&#039; play one card from your hand that matches the dice in one of two ways:&lt;br /&gt;
#* Same value and colour as one die.&lt;br /&gt;
#* Value equal to the sum of two dice, and colour matching one of those two dice.&lt;br /&gt;
# &#039;&#039;&#039;No valid card?&#039;&#039;&#039; You may use your Last Chance to skip the turn and stay in. Otherwise, you crash: you lose all your cards for the round and score 0.&lt;br /&gt;
# &#039;&#039;&#039;Stop or More:&#039;&#039;&#039;&lt;br /&gt;
#* &#039;&#039;&#039;Stop:&#039;&#039;&#039; bank the points on the cards in front of you and sit out the rest of the round.&lt;br /&gt;
#* &#039;&#039;&#039;More:&#039;&#039;&#039; stay in for the next turn and keep pushing your luck.&lt;br /&gt;
&lt;br /&gt;
The round ends when every player has stopped or crashed. If you stopped, add your banked points to your score. If anyone reaches 40 points, the highest score wins, and ties share the victory.&lt;br /&gt;
&lt;br /&gt;
== Card powers ==&lt;br /&gt;
&#039;&#039;Optional, but you must still be in the round to use them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;1:&#039;&#039;&#039; Immediately play one extra valid card, using the dice on the table. If you play another 1, you can use this power again.&lt;br /&gt;
* &#039;&#039;&#039;2:&#039;&#039;&#039; On the next turn, the die of this card&#039;s colour is reserved for you. Opponents can&#039;t use it.&lt;br /&gt;
* &#039;&#039;&#039;9:&#039;&#039;&#039; After the next roll, turn one die up or down by 1 (6 wraps to 1, and 1 wraps to 6).&lt;br /&gt;
* &#039;&#039;&#039;10:&#039;&#039;&#039; Swap 2 cards from your hand with 2 random cards from an opponent&#039;s hand.&lt;br /&gt;
* &#039;&#039;&#039;11:&#039;&#039;&#039; Add the golden die to the next roll for everyone. It can be part of a sum but never used alone.&lt;br /&gt;
&lt;br /&gt;
When several players use powers at the same step, they resolve clockwise from the Start token holder. The Start token passes clockwise every turn.&lt;br /&gt;
&lt;br /&gt;
== Differences from the physical game ==&lt;br /&gt;
In the rulebook, players take their turns one after another, clockwise from the Start token holder. On BGA, this is simultaneous to make turn-based games faster:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Playing a card:&#039;&#039;&#039; You pick your card secretly while everyone else does the same, and all cards are revealed together. You won&#039;t see what others are playing that turn before you choose. For example, you won&#039;t know whether someone else is already playing an 11.&lt;br /&gt;
* &#039;&#039;&#039;Card 1 bonus plays:&#039;&#039;&#039; If you played a 1, you pick your extra card at the same time as anyone else who played a 1, and those cards are also revealed together.&lt;br /&gt;
* &#039;&#039;&#039;Stop or More:&#039;&#039;&#039; You decide at the same time as everyone else, and all choices are revealed together. You can&#039;t wait to see what others decide.&lt;br /&gt;
* &#039;&#039;&#039;Grand Slam:&#039;&#039;&#039; Since cards are revealed together, two players could empty their hands on the same reveal. If that happens, they share the win.&lt;br /&gt;
&lt;br /&gt;
BGA also adds one option that isn’t in the physical game:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Reroll busting first-time rolls (on by default):&#039;&#039;&#039; On the first roll of each round, if any player has no playable card, the dice are rerolled automatically, up to 2 times. You only see the final roll. Turn this option off when creating a table to play exactly like the physical game.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpriviera&amp;diff=31911</id>
		<title>Gamehelpriviera</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpriviera&amp;diff=31911"/>
		<updated>2026-10-19T12:23:23Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Goal ==&lt;br /&gt;
Score 40 points over several rounds, or win instantly with a Grand Slam by playing all 10 cards from your hand in a single round.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
You get 10 cards and one Last Chance card, which you can use once per game. With 2 to 4 players, one colour is removed for the whole game, along with all its cards and its die.&lt;br /&gt;
&lt;br /&gt;
== A turn ==&lt;br /&gt;
# &#039;&#039;&#039;Roll:&#039;&#039;&#039; all coloured dice are rolled.&lt;br /&gt;
# &#039;&#039;&#039;Play a card:&#039;&#039;&#039; play one card from your hand that matches the dice in one of two ways:&lt;br /&gt;
#* Same value and colour as one die.&lt;br /&gt;
#* Value equal to the sum of two dice, and colour matching one of those two dice.&lt;br /&gt;
# &#039;&#039;&#039;No valid card?&#039;&#039;&#039; You may use your Last Chance to skip the turn and stay in. Otherwise, you crash: you lose all your cards for the round and score 0.&lt;br /&gt;
# &#039;&#039;&#039;Stop or More:&#039;&#039;&#039;&lt;br /&gt;
#* &#039;&#039;&#039;Stop:&#039;&#039;&#039; bank the points on the cards in front of you and sit out the rest of the round.&lt;br /&gt;
#* &#039;&#039;&#039;More:&#039;&#039;&#039; stay in for the next turn and keep pushing your luck.&lt;br /&gt;
&lt;br /&gt;
The round ends when every player has stopped or crashed. If you stopped, add your banked points to your score. If anyone reaches 40 points, the highest score wins, and ties share the victory.&lt;br /&gt;
&lt;br /&gt;
== Card powers ==&lt;br /&gt;
&#039;&#039;Optional, but you must still be in the round to use them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;1:&#039;&#039;&#039; Immediately play one extra valid card, using the dice on the table. If you play another 1, you can use this power again.&lt;br /&gt;
* &#039;&#039;&#039;2:&#039;&#039;&#039; On the next turn, the die of this card&#039;s colour is reserved for you. Opponents can&#039;t use it.&lt;br /&gt;
* &#039;&#039;&#039;9:&#039;&#039;&#039; After the next roll, turn one die up or down by 1 (6 wraps to 1, and 1 wraps to 6).&lt;br /&gt;
* &#039;&#039;&#039;10:&#039;&#039;&#039; Swap 2 cards from your hand with 2 random cards from an opponent&#039;s hand.&lt;br /&gt;
* &#039;&#039;&#039;11:&#039;&#039;&#039; Add the golden die to the next roll for everyone. It can be part of a sum but never used alone.&lt;br /&gt;
&lt;br /&gt;
When several players use powers at the same step, they resolve clockwise from the Start token holder. The Start token passes clockwise every turn.&lt;br /&gt;
&lt;br /&gt;
== Differences from the physical game ==&lt;br /&gt;
In the rulebook, players take their turns one after another, clockwise from the Start token holder. On BGA, this is simultaneous to make turn-based games faster:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Playing a card:&#039;&#039;&#039; You pick your card secretly while everyone else does the same, and all cards are revealed together. You won&#039;t see what others are playing that turn before you choose. For example, you won&#039;t know whether someone else is already playing an 11.&lt;br /&gt;
* &#039;&#039;&#039;Card 1 bonus plays:&#039;&#039;&#039; If you played a 1, you pick your extra card at the same time as anyone else who played a 1, and those cards are also revealed together.&lt;br /&gt;
* &#039;&#039;&#039;Stop or More:&#039;&#039;&#039; You decide at the same time as everyone else, and all choices are revealed together. You can&#039;t wait to see what others decide.&lt;br /&gt;
* &#039;&#039;&#039;Grand Slam:&#039;&#039;&#039; Since cards are revealed together, two players could empty their hands on the same reveal. If that happens, they share the win.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpriviera&amp;diff=31903</id>
		<title>Gamehelpriviera</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpriviera&amp;diff=31903"/>
		<updated>2026-10-17T07:24:54Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: Created page with &amp;quot;== Goal == Score 40 points over several rounds, or win instantly with a Grand Slam by playing all 10 cards from your hand in a single round.  == Setup == You get 10 cards and one Last Chance card, which you can use once per game. With 2 to 4 players, one colour is removed for the whole game, along with all its cards and its die.  == A turn == # &amp;#039;&amp;#039;&amp;#039;Roll:&amp;#039;&amp;#039;&amp;#039; all coloured dice are rolled. # &amp;#039;&amp;#039;&amp;#039;Play a card:&amp;#039;&amp;#039;&amp;#039; play one card from your hand that matches the dice in one of two...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Goal ==&lt;br /&gt;
Score 40 points over several rounds, or win instantly with a Grand Slam by playing all 10 cards from your hand in a single round.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
You get 10 cards and one Last Chance card, which you can use once per game. With 2 to 4 players, one colour is removed for the whole game, along with all its cards and its die.&lt;br /&gt;
&lt;br /&gt;
== A turn ==&lt;br /&gt;
# &#039;&#039;&#039;Roll:&#039;&#039;&#039; all coloured dice are rolled.&lt;br /&gt;
# &#039;&#039;&#039;Play a card:&#039;&#039;&#039; play one card from your hand that matches the dice in one of two ways:&lt;br /&gt;
#* Same value and colour as one die.&lt;br /&gt;
#* Value equal to the sum of two dice, and colour matching one of those two dice.&lt;br /&gt;
# &#039;&#039;&#039;No valid card?&#039;&#039;&#039; You may use your Last Chance to skip the turn and stay in. Otherwise, you crash: you lose all your cards for the round and score 0.&lt;br /&gt;
# &#039;&#039;&#039;Stop or More:&#039;&#039;&#039;&lt;br /&gt;
#* &#039;&#039;&#039;Stop:&#039;&#039;&#039; bank the points on the cards in front of you and sit out the rest of the round.&lt;br /&gt;
#* &#039;&#039;&#039;More:&#039;&#039;&#039; stay in for the next turn and keep pushing your luck.&lt;br /&gt;
&lt;br /&gt;
The round ends when every player has stopped or crashed. If you stopped, add your banked points to your score. If anyone reaches 40 points, the highest score wins, and ties share the victory.&lt;br /&gt;
&lt;br /&gt;
== Card powers ==&lt;br /&gt;
&#039;&#039;Optional, but you must still be in the round to use them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;1:&#039;&#039;&#039; Immediately play one extra valid card, using the dice on the table. If you play another 1, you can use this power again.&lt;br /&gt;
* &#039;&#039;&#039;2:&#039;&#039;&#039; On the next turn, the die of this card&#039;s colour is reserved for you. Opponents can&#039;t use it.&lt;br /&gt;
* &#039;&#039;&#039;9:&#039;&#039;&#039; After the next roll, turn one die up or down by 1 (6 wraps to 1, and 1 wraps to 6).&lt;br /&gt;
* &#039;&#039;&#039;10:&#039;&#039;&#039; Swap 2 cards from your hand with 2 random cards from an opponent&#039;s hand.&lt;br /&gt;
* &#039;&#039;&#039;11:&#039;&#039;&#039; Add the golden die to the next roll for everyone. It can be part of a sum but never used alone.&lt;br /&gt;
&lt;br /&gt;
When several players use powers at the same step, they resolve clockwise from the Start token holder. The Start token passes clockwise every turn.&lt;br /&gt;
&lt;br /&gt;
== Differences from the physical game ==&lt;br /&gt;
In the rulebook, players take their turns one after another, clockwise from the Start token holder. On BGA, this is simultaneous to make turn-based games faster:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Playing a card:&#039;&#039;&#039; You pick your card secretly while everyone else does the same, and all cards are revealed together. You won&#039;t see what others are playing that turn before you choose. For example, you won&#039;t know whether someone else is already playing an 11.&lt;br /&gt;
* &#039;&#039;&#039;Card 1 bonus plays:&#039;&#039;&#039; If you played a 1, you pick your extra card at the same time as anyone else who played a 1, and those cards are also revealed together.&lt;br /&gt;
* &#039;&#039;&#039;Card 2:&#039;&#039;&#039; Multiple players can reserve the same die. If so, that die is reserved for all of them.&lt;br /&gt;
* &#039;&#039;&#039;Stop or More:&#039;&#039;&#039; You decide at the same time as everyone else, and all choices are revealed together. You can&#039;t wait to see what others decide.&lt;br /&gt;
* &#039;&#039;&#039;Grand Slam:&#039;&#039;&#039; Since cards are revealed together, two players could empty their hands on the same reveal. If that happens, they share the win.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=BGA_Studio_Cookbook&amp;diff=26457</id>
		<title>BGA Studio Cookbook</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=BGA_Studio_Cookbook&amp;diff=26457"/>
		<updated>2025-09-11T16:14:22Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: /* Animation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
This page is a cookbook of design and implementation recipes for BGA Studio framework.&lt;br /&gt;
For tooling and usage recipes see [[Tools and tips of BGA Studio]].&lt;br /&gt;
If you have your own recipes feel free to edit this page.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Visual Effects, Layout and Animation ==&lt;br /&gt;
&lt;br /&gt;
=== DOM manipulatons ===&lt;br /&gt;
&lt;br /&gt;
==== Create pieces dynamically (using template) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg_ggg.tpl, ggg.js&lt;br /&gt;
&lt;br /&gt;
Note: this method is recommended by BGA guildlines&lt;br /&gt;
&lt;br /&gt;
Declared js template with variables in .tpl file, like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
    // Javascript HTML templates&lt;br /&gt;
    var jstpl_ipiece = &#039;&amp;lt;div class=&amp;quot;${type} ${type}_${color} inlineblock&amp;quot; aria-label=&amp;quot;${name}&amp;quot; title=&amp;quot;${name}&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#039;;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use it like this in .js file&lt;br /&gt;
  div = this.format_block(&#039;jstpl_ipiece&#039;, {&lt;br /&gt;
                                type : &#039;meeple&#039;,&lt;br /&gt;
                                color : &#039;ff0000&#039;,&lt;br /&gt;
                                name : &#039;Bob&#039;,&lt;br /&gt;
                            });&lt;br /&gt;
  &lt;br /&gt;
Then you do whatever you need to do with that div, this one specifically design to go to log entries, because it has embedded title (otherwise its a picture only) and no id.&lt;br /&gt;
&lt;br /&gt;
Note: you could have place this variable in js itself, but keeping it in .tpl allows you to have your js code be free of HTML. Normally it never happens but&lt;br /&gt;
it is good to strive for it.&lt;br /&gt;
Note: you can also use string concatenation, its less readable. You can also use dojo dom object creation api&#039;s but its brutally verbose and its more unreadable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create pieces dynamically (using string concatenation) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  div = &amp;quot;&amp;lt;div class=&#039;meeple_&amp;quot;+color+&amp;quot;&#039;&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or modern way&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  div = `&amp;lt;div class=&#039;meeple_${color}&#039;&amp;gt;&amp;lt;/div&amp;gt;`;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Create all pieces statically ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg_ggg.tpl, ggg.css, ggg.view.php (optional) &lt;br /&gt;
&lt;br /&gt;
* Create ALL game pieces in html template (.tpl)&lt;br /&gt;
* ALL pieces should have unique id, and it should be meaningful, i.e. meeple_red_1&lt;br /&gt;
* Do not use inline styling&lt;br /&gt;
* Id of player&#039;s specific pieces should use some sort of &#039;color&#039; identification, since player id cannot be used in static layout, you can use english color name, hex 6 char value, or color &amp;quot;number&amp;quot; (1,2,3...)&lt;br /&gt;
* Pieces should have separated class for its color, type, etc, so it can be easily styled in groups. In example below you now can style all meeples, all red meeples or all red tokens, or all &amp;quot;first&amp;quot; meeples&lt;br /&gt;
&lt;br /&gt;
ggg.tpl:&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
  &amp;lt;div id=&amp;quot;home_red&amp;quot; class=&amp;quot;home_red home&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;meeple_red_1&amp;quot; class=&amp;quot;meeple red n1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;meeple_red_2&amp;quot; class=&amp;quot;meeple red n2&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ggg.css:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.meeple {&lt;br /&gt;
	width: 32px;&lt;br /&gt;
	height: 39px;&lt;br /&gt;
	background-image: url(img/78_64_stand_meeples.png);&lt;br /&gt;
	background-size: 352px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.meeple.red {&lt;br /&gt;
	background-position: 30% 0%;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* There should be straight forward mapping between server id and js id (or 1:1)&lt;br /&gt;
* You place objects in different zones of the layout, and setup css to take care of layout&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.home .meeple{&lt;br /&gt;
   display: inline-block;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If you need to have a temporary object that look like original you can use dojo.clone (and change id to some temp id)&lt;br /&gt;
* If there is lots of repetition or zone grid you can use template generator, but inject style declaration in css instead of inline style for flexibility&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* If you use this model you cannot use premade js components such as Stock and Zone&lt;br /&gt;
* You have to use alternative methods of animation (slightly altered) since default method will leave object with inline style attributes which you don&#039;t need&lt;br /&gt;
&lt;br /&gt;
==== Use player color in template ====&lt;br /&gt;
&lt;br /&gt;
NOTE: view.php is deprecated, its best to generate html from .js&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg_ggg.tpl, ggg.view.php&lt;br /&gt;
&lt;br /&gt;
.view.php:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    function build_page($viewArgs) {&lt;br /&gt;
        // Get players &amp;amp; players number&lt;br /&gt;
        $players = $this-&amp;gt;game-&amp;gt;loadPlayersBasicInfos();&lt;br /&gt;
        $players_nbr = count($players);&lt;br /&gt;
        /**&lt;br /&gt;
         * ********* Place your code below: ***********&lt;br /&gt;
         */&lt;br /&gt;
        &lt;br /&gt;
        // Set PCOLOR to the current player color hex&lt;br /&gt;
        $cplayer = $this-&amp;gt;getCurrentPlayerId();&lt;br /&gt;
        if (array_key_exists($cplayer, $players)) { // may be not set if spectator&lt;br /&gt;
            $player_color = $players [$cplayer] [&#039;player_color&#039;];&lt;br /&gt;
        } else {&lt;br /&gt;
            $player_color = &#039;ffffff&#039;; // spectator&lt;br /&gt;
        }&lt;br /&gt;
        $this-&amp;gt;tpl [&#039;PCOLOR&#039;] = $player_color;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Status bar ===&lt;br /&gt;
&lt;br /&gt;
==== Changing state prompt ====&lt;br /&gt;
&lt;br /&gt;
State prompt is message displayed for player which usually comes from state description.&lt;br /&gt;
Sometimes you want to change it without changing state (one way is change state but locally, see client states above).&lt;br /&gt;
&lt;br /&gt;
Simple way just change the html&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        setMainTitle: function(text) {&lt;br /&gt;
            $(&#039;pagemaintitletext&#039;).innerHTML = text;&lt;br /&gt;
        },&lt;br /&gt;
         // usage&lt;br /&gt;
        onMeeple: function(event) {&lt;br /&gt;
              //... &lt;br /&gt;
              this.setMainTitle(_(&#039;You must select where meeple is going&#039;));&lt;br /&gt;
        },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This however will not work with parameters and will not draw You in color, if you want this its more sophisticated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        setDescriptionOnMyTurn : function(text) {&lt;br /&gt;
            this.gamedatas.gamestate.descriptionmyturn = text;&lt;br /&gt;
            var tpl = dojo.clone(this.gamedatas.gamestate.args);&lt;br /&gt;
            if (tpl === null) {&lt;br /&gt;
                tpl = {};&lt;br /&gt;
            }&lt;br /&gt;
            var title = &amp;quot;&amp;quot;;&lt;br /&gt;
            if (this.isCurrentPlayerActive() &amp;amp;&amp;amp; text !== null) {&lt;br /&gt;
                tpl.you = this.divYou(); &lt;br /&gt;
            }&lt;br /&gt;
            title = this.format_string_recursive(text, tpl);&lt;br /&gt;
&lt;br /&gt;
            if (!title) {&lt;br /&gt;
                this.setMainTitle(&amp;quot;&amp;amp;nbsp;&amp;quot;);&lt;br /&gt;
            } else {&lt;br /&gt;
                this.setMainTitle(title);&lt;br /&gt;
            }&lt;br /&gt;
        },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: this method uses &#039;&#039;&#039;setMainTitle&#039;&#039;&#039; defined above and &#039;&#039;&#039;divYou&#039;&#039;&#039; defined in another section of this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Animation ===&lt;br /&gt;
&lt;br /&gt;
==== Attach to new parent without destroying the object ====&lt;br /&gt;
&lt;br /&gt;
BGA function attachToNewParent for some reason destroys the original, if you want similar function that does not you can use this&lt;br /&gt;
ggg.js&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        /**&lt;br /&gt;
         * This method will attach mobile to a new_parent without destroying, unlike original attachToNewParent which destroys mobile and&lt;br /&gt;
         * all its connectors (onClick, etc)&lt;br /&gt;
         */&lt;br /&gt;
        attachToNewParentNoDestroy: function (mobile_in, new_parent_in, relation, place_position) {&lt;br /&gt;
&lt;br /&gt;
            const mobile = $(mobile_in);&lt;br /&gt;
            const new_parent = $(new_parent_in);&lt;br /&gt;
&lt;br /&gt;
            var src = dojo.position(mobile);&lt;br /&gt;
            if (place_position)&lt;br /&gt;
                mobile.style.position = place_position;&lt;br /&gt;
            dojo.place(mobile, new_parent, relation);&lt;br /&gt;
            mobile.offsetTop;//force re-flow&lt;br /&gt;
            var tgt = dojo.position(mobile);&lt;br /&gt;
            var box = dojo.marginBox(mobile);&lt;br /&gt;
            var cbox = dojo.contentBox(mobile);&lt;br /&gt;
            var left = box.l + src.x - tgt.x;&lt;br /&gt;
            var top = box.t + src.y - tgt.y;&lt;br /&gt;
&lt;br /&gt;
            mobile.style.position = &amp;quot;absolute&amp;quot;;&lt;br /&gt;
            mobile.style.left = left + &amp;quot;px&amp;quot;;&lt;br /&gt;
            mobile.style.top = top + &amp;quot;px&amp;quot;;&lt;br /&gt;
            box.l += box.w - cbox.w;&lt;br /&gt;
            box.t += box.h - cbox.h;&lt;br /&gt;
            mobile.offsetTop;//force re-flow&lt;br /&gt;
            return box;&lt;br /&gt;
        },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Animation on oversurface ====&lt;br /&gt;
If you use non-absolute position for your game elements (i.e you use layouts) - you cannot really use BGA animation functions. After years of fidding with different options I use&lt;br /&gt;
techique which I call animation on oversurface that works when parents use different zoom, rotation, etc&lt;br /&gt;
&lt;br /&gt;
* You need another layer on top of everything - oversurface&lt;br /&gt;
* We create copy of the object on oversurface - to move&lt;br /&gt;
* We move the real object on final position - but make it invisible for now&lt;br /&gt;
* We move the phantom to final position applying required zoom and rotation (using css animation), then destroy it&lt;br /&gt;
* When animation is done we make original object visible in new position&lt;br /&gt;
&lt;br /&gt;
The code is bit complex it can be found here&lt;br /&gt;
&lt;br /&gt;
https://codepen.io/VictoriaLa/pen/gORvdJo&lt;br /&gt;
&lt;br /&gt;
Game using it: century, ultimaterailroads&lt;br /&gt;
&lt;br /&gt;
==== Scroll element into view ====&lt;br /&gt;
Ingredients: game.js&lt;br /&gt;
&lt;br /&gt;
This function will scroll given node (div) into view and respect replays and archive mode&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    scrollIntoViewAfter: function (node, delay) {&lt;br /&gt;
      if (this.instantaneousMode || this.inSetup) {&lt;br /&gt;
        return;&lt;br /&gt;
      }&lt;br /&gt;
      if (typeof g_replayFrom != &amp;quot;undefined&amp;quot;) {&lt;br /&gt;
        $(node).scrollIntoView();&lt;br /&gt;
        return;&lt;br /&gt;
      }&lt;br /&gt;
      if (!delay) delay = 0;&lt;br /&gt;
      setTimeout(() =&amp;gt; {&lt;br /&gt;
        $(node).scrollIntoView({ behavior: &amp;quot;smooth&amp;quot;, block: &amp;quot;center&amp;quot; });&lt;br /&gt;
      }, delay);&lt;br /&gt;
    },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Set Auto-click timer for buttons (setAutoClick) ====&lt;br /&gt;
&lt;br /&gt;
Sets up auto-click for a button after a timeout, with the new progress-bar animation. Works in both JS and TS. You can pass the optional parameters (see code comments) or simply call as:&lt;br /&gt;
&amp;lt;pre&amp;gt;this.setAutoClick(document.getElementById(&#039;someID&#039;);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;JavaScript&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/**&lt;br /&gt;
* Sets up auto-click functionality for a button after a timeout period&lt;br /&gt;
* @param button - The button HTML element to auto-click&lt;br /&gt;
* @param timeoutDuration - Optional base duration in ms before auto-click occurs (default: 5000)&lt;br /&gt;
* @param randomIncrement - Optional random additional ms to add to timeout (default: 2000)&lt;br /&gt;
* @param autoClickID - Optional ID for the auto-click events, multiple buttons can therefore point to the same autoClick event&lt;br /&gt;
* @param onAnimationEnd - Optional callback that returns boolean to control if click should occur (default: true)&lt;br /&gt;
*/&lt;br /&gt;
setAutoClick: function(button, timeoutDuration = 5000, randomIncrement = 2000, autoClickID = null, onAnimationEnd = () =&amp;gt; true) {&lt;br /&gt;
    const totalDuration = timeoutDuration + Math.random() * randomIncrement;&lt;br /&gt;
    this.setAutoClick.timeouts = this.setAutoClick.timeouts || {};&lt;br /&gt;
            &lt;br /&gt;
    if(!autoClickID){&lt;br /&gt;
        this.setAutoClick.autoClickIncrement = this.setAutoClick.autoClickIncrement || 1;&lt;br /&gt;
        autoClickID = &#039;auto-click-&#039; + this.setAutoClick.autoClickIncrement++;&lt;br /&gt;
    }&lt;br /&gt;
    this.setAutoClick.timeouts[autoClickID] = this.setAutoClick.timeouts[autoClickID] || [];&lt;br /&gt;
&lt;br /&gt;
    button.style.setProperty(&#039;--bga-autoclick-timeout-duration&#039;, `${totalDuration}ms`);&lt;br /&gt;
    button.classList.add(&#039;bga-autoclick-button&#039;);&lt;br /&gt;
&lt;br /&gt;
    const stopDoubleTrigger = () =&amp;gt; {&lt;br /&gt;
        if(!this.setAutoClick.timeouts[autoClickID]) return;&lt;br /&gt;
        this.setAutoClick.timeouts[autoClickID].forEach(timeout =&amp;gt; clearTimeout(timeout));&lt;br /&gt;
        delete this.setAutoClick.timeouts[autoClickID];&lt;br /&gt;
    }&lt;br /&gt;
    button.addEventListener(&#039;click&#039;, stopDoubleTrigger, true);&lt;br /&gt;
               &lt;br /&gt;
    this.setAutoClick.timeouts[autoClickID].push(&lt;br /&gt;
        setTimeout(() =&amp;gt; {&lt;br /&gt;
            stopDoubleTrigger();&lt;br /&gt;
            if (!document.body.contains(button)) return;&lt;br /&gt;
            const customEventResult = onAnimationEnd();&lt;br /&gt;
            if (customEventResult) button.click();&lt;br /&gt;
        }, totalDuration)&lt;br /&gt;
    );&lt;br /&gt;
},&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;TypeScript&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/**&lt;br /&gt;
* Sets up auto-click functionality for a button after a timeout period&lt;br /&gt;
* @param button - The button HTML element to auto-click&lt;br /&gt;
* @param timeoutDuration - Optional base duration in ms before auto-click occurs (default: 5000)&lt;br /&gt;
* @param randomIncrement - Optional random additional ms to add to timeout (default: 2000)&lt;br /&gt;
* @param autoClickID - Optional ID for the auto-click events, multiple buttons can therefore point to the same autoClick event&lt;br /&gt;
* @param onAnimationEnd - Optional callback that returns boolean to control if click should occur (default: true)&lt;br /&gt;
*/&lt;br /&gt;
public setAutoClick(button: HTMLDivElement, timeoutDuration: number = 5000, randomIncrement: number = 2000, autoClickID: string = null, onAnimationEnd: () =&amp;gt; boolean = () =&amp;gt; true){&lt;br /&gt;
    const fn = this.setAutoClick as typeof this.setAutoClick &amp;amp; {&lt;br /&gt;
        timeouts?: Record&amp;lt;string, number[]&amp;gt;;&lt;br /&gt;
        autoClickIncrement?: number;&lt;br /&gt;
    };&lt;br /&gt;
    fn.timeouts = fn.timeouts || {};&lt;br /&gt;
        &lt;br /&gt;
    const totalDuration = timeoutDuration + Math.random() * randomIncrement;&lt;br /&gt;
&lt;br /&gt;
    if(!autoClickID){&lt;br /&gt;
        fn.autoClickIncrement = fn.autoClickIncrement || 1;&lt;br /&gt;
        autoClickID = &#039;auto-click-&#039; + fn.autoClickIncrement++;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    fn.timeouts[autoClickID] = fn.timeouts[autoClickID] || [];&lt;br /&gt;
&lt;br /&gt;
    button.style.setProperty(&#039;--bga-autoclick-timeout-duration&#039;, `${totalDuration}ms`);&lt;br /&gt;
    button.classList.add(&#039;bga-autoclick-button&#039;);&lt;br /&gt;
&lt;br /&gt;
    const stopDoubleTrigger = () =&amp;gt; {&lt;br /&gt;
        if(!fn.timeouts[autoClickID]) return;&lt;br /&gt;
        fn.timeouts[autoClickID].forEach(timeout =&amp;gt; clearTimeout(timeout));&lt;br /&gt;
        delete fn.timeouts[autoClickID];&lt;br /&gt;
    }&lt;br /&gt;
    button.addEventListener(&#039;click&#039;, stopDoubleTrigger, true);&lt;br /&gt;
            &lt;br /&gt;
    fn.timeouts[autoClickID].push(&lt;br /&gt;
        setTimeout(() =&amp;gt; {&lt;br /&gt;
            stopDoubleTrigger();&lt;br /&gt;
            if (!document.body.contains(button)) return;&lt;br /&gt;
            const customEventResult = onAnimationEnd();&lt;br /&gt;
            if (customEventResult) button.click();&lt;br /&gt;
        }, totalDuration)&lt;br /&gt;
    );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Logs ===&lt;br /&gt;
&lt;br /&gt;
==== Inject icon images in the log ====&lt;br /&gt;
&lt;br /&gt;
Here is an example of what was done for Terra Mystica which is simple and straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//Define the proper message&lt;br /&gt;
		$message = clienttranslate(&#039;${player_name} gets ${power_income} via Structures&#039;);&lt;br /&gt;
		if ($price &amp;gt; 0) {&lt;br /&gt;
			$this-&amp;gt;DbQuery(&amp;quot;UPDATE player SET player_score = player_score - $price WHERE player_id = $player_id&amp;quot;);&lt;br /&gt;
			$message = clienttranslate(&#039;${player_name} pays ${vp_price} and gets ${power_income} via Structures&#039;);&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
// Notify&lt;br /&gt;
		$this-&amp;gt;notify-&amp;gt;all( &amp;quot;powerViaStructures&amp;quot;, $message, array(&lt;br /&gt;
			&#039;i18n&#039; =&amp;gt; array( ),&lt;br /&gt;
			&#039;player_id&#039; =&amp;gt; $player_id,&lt;br /&gt;
			&#039;player_name&#039; =&amp;gt; $this-&amp;gt;getUniqueValueFromDb( &amp;quot;SELECT player_name FROM player WHERE player_id = $player_id&amp;quot; ),&lt;br /&gt;
			&#039;power_tokens&#039; =&amp;gt; $power_tokens,&lt;br /&gt;
			&#039;vp_price&#039; =&amp;gt; $this-&amp;gt;getLogsVPAmount($price),&lt;br /&gt;
			&#039;power_income&#039; =&amp;gt; $this-&amp;gt;getLogsPowerAmount($power_income),&lt;br /&gt;
			&#039;newScore&#039; =&amp;gt; $this-&amp;gt;getUniqueValueFromDb( &amp;quot;SELECT player_score FROM player WHERE player_id = $player_id&amp;quot; ),&lt;br /&gt;
			&#039;counters&#039; =&amp;gt; $this-&amp;gt;getGameCounters(null),&lt;br /&gt;
		) );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With some functions to have the needed html added inside the substitution variable, such as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function getLogsPowerAmount( $amount ) {&lt;br /&gt;
		return &amp;quot;&amp;lt;div class=&#039;tmlogs_icon&#039; title=&#039;Power&#039;&amp;gt;&amp;lt;div class=&#039;power_amount&#039;&amp;gt;$amount&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note: injecting html from php is not ideal but easy, if you want more clean solution, use method below but it is a lot more sophisticated.&lt;br /&gt;
&lt;br /&gt;
==== Inject images and styled html in the log ====&lt;br /&gt;
&lt;br /&gt;
{{InfoBox|title=Warning — Translation|maxWidth=500|color=#c00|body=&#039;&#039;&#039;In order to prevent interference with the translation process, keep in mind that you must only apply modifications to the args object, and not try to substitute the keys (the &amp;lt;code&amp;gt;${player_name}&amp;lt;/code&amp;gt; parts of your string) in the log string.&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
So you want nice pictures in the game log. What do you do? The first idea that comes to mind is to send html from php in notifications (see method above). &lt;br /&gt;
&lt;br /&gt;
This is a bad idea for many reasons:&lt;br /&gt;
&lt;br /&gt;
* It&#039;s bad architecture. ui elements leak into the server, and now you have to manage the ui in multiple places.&lt;br /&gt;
* If you decided to change something in the ui in future version, replay logs for old games and tutorials may not work, since they use stored notifications.&lt;br /&gt;
* Log previews for old games become unreadable. (This is the log state before you enter the game replay, which is useful for troubleshooting and game analysis.)&lt;br /&gt;
* It&#039;s more data to transfer and store in the db.&lt;br /&gt;
* It&#039;s a nightmare for translators.&lt;br /&gt;
&lt;br /&gt;
So what else can you do? You can use client side log injection to intercept log arguments (which come from the server) and replace them with html on the client side. Here are three different method you can use to achieve this.&lt;br /&gt;
&lt;br /&gt;
===== Define &amp;lt;code&amp;gt;this.bgaFormatText()&amp;lt;/code&amp;gt; method =====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js, ggg.game.php&lt;br /&gt;
&lt;br /&gt;
I use this recipe for &#039;&#039;&#039;client side log injection&#039;&#039;&#039; to intercept log arguments (which come from the server) and replace them with html on the client side.&lt;br /&gt;
&lt;br /&gt;
[[File:clientloginjection.png|left]] &lt;br /&gt;
&lt;br /&gt;
ggg.js&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
        /** Declare this function to inject html into log items. */&lt;br /&gt;
&lt;br /&gt;
        bgaFormatText : function(log, args) {&lt;br /&gt;
            try {&lt;br /&gt;
                if (log &amp;amp;&amp;amp; args &amp;amp;&amp;amp; !args.processed) {&lt;br /&gt;
                    args.processed = true;&lt;br /&gt;
                    &lt;br /&gt;
&lt;br /&gt;
                    // list of special keys we want to replace with images&lt;br /&gt;
                    const keys = [&#039;place_name&#039;,&#039;token_name&#039;];&lt;br /&gt;
                    &lt;br /&gt;
                  &lt;br /&gt;
                    for (let i in keys) {&lt;br /&gt;
                        const key = keys[i];&lt;br /&gt;
                        if (args[key]) args[key] = this.getTokenDiv(key, args);                            &lt;br /&gt;
&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
            } catch (e) {&lt;br /&gt;
                console.error(log,args,&amp;quot;Exception thrown&amp;quot;, e.stack);&lt;br /&gt;
            }&lt;br /&gt;
            return { log, args };&lt;br /&gt;
        },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; In the &#039;&#039;bgaFormatText&#039;&#039; method, the &#039;args&#039; parameter will only contain arguments passed to it from the notify method in Game.php (see below).&lt;br /&gt;
&lt;br /&gt;
The &#039;log&#039; parameter is the actual string that is inserted into the logs. You can perform additional js string manipulation on it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        getTokenDiv : function(key, args) {&lt;br /&gt;
            // ... implement whatever html you want here, example from sharedcode.js&lt;br /&gt;
            var token_id = args[key];&lt;br /&gt;
            var item_type = getPart(token_id,0);&lt;br /&gt;
            var logid = &amp;quot;log&amp;quot; + (this.globalid++) + &amp;quot;_&amp;quot; + token_id;&lt;br /&gt;
            switch (item_type) {&lt;br /&gt;
                case &#039;wcube&#039;:&lt;br /&gt;
                    var tokenDiv = this.format_block(&#039;jstpl_resource_log&#039;, {&lt;br /&gt;
                        &amp;quot;id&amp;quot; : logid,&lt;br /&gt;
                        &amp;quot;type&amp;quot; : &amp;quot;wcube&amp;quot;,&lt;br /&gt;
                        &amp;quot;color&amp;quot; : getPart(token_id,1),&lt;br /&gt;
                    });&lt;br /&gt;
                    return tokenDiv;&lt;br /&gt;
             &lt;br /&gt;
                case &#039;meeple&#039;:&lt;br /&gt;
                    if ($(token_id)) {&lt;br /&gt;
                        var clone = dojo.clone($(token_id));&lt;br /&gt;
    &lt;br /&gt;
                        dojo.attr(clone, &amp;quot;id&amp;quot;, logid);&lt;br /&gt;
                        this.stripPosition(clone);&lt;br /&gt;
                        dojo.addClass(clone, &amp;quot;logitem&amp;quot;);&lt;br /&gt;
                        return clone.outerHTML;&lt;br /&gt;
                    }&lt;br /&gt;
                    break;&lt;br /&gt;
     &lt;br /&gt;
                default:&lt;br /&gt;
                    break;&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            return &amp;quot;&#039;&amp;quot; + this.clienttranslate_string(this.getTokenName(token_id)) + &amp;quot;&#039;&amp;quot;;&lt;br /&gt;
       },&lt;br /&gt;
       getTokenName : function(key) {&lt;br /&gt;
           return this.gamedatas.token_types[key].name; // get name for the key, from static table for example&lt;br /&gt;
       },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that in this case the server simply injects token_id as a name, and the client substitutes it for the translated name or the picture.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Game.php:&lt;br /&gt;
&lt;br /&gt;
           $this-&amp;gt;notify-&amp;gt;all(&#039;playerLog&#039;, clienttranslate(&#039;Game moves ${token_name}&#039;), [&#039;token_name&#039;=&amp;gt;$token_id]);&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; As noted above, only arguments actually passed by this method are available to the args parameter received in the client-side &#039;&#039;bgaFormatText&#039;&#039; method.&lt;br /&gt;
&lt;br /&gt;
Sometimes it is the case that you want to pass arguments that are not actually included in the output message. For example, suppose we have a method like this:&lt;br /&gt;
&lt;br /&gt;
           $this-&amp;gt;notify-&amp;gt;all(&#039;tokenPlaced&#039;, clienttranslate(&#039;Player placed ${token_name}&#039;), array(&lt;br /&gt;
              &#039;token_name&#039; =&amp;gt; $token_id,&lt;br /&gt;
              &#039;zone_played&#039; =&amp;gt; $zone);&lt;br /&gt;
&lt;br /&gt;
This will output &amp;quot;Player placed ${token_name}&amp;quot; in the log, and if we subscribe to a notification method activated by the &amp;quot;tokenPlaced&amp;quot; event in the client-side code, that method can make use of the &#039;zone_played&#039; argument. &lt;br /&gt;
&lt;br /&gt;
Now if you want to make some really cool things with game log, most probably you would need more arguments than are included in log message. The problem with that,&lt;br /&gt;
it will work at first, but if you reload game using F5 or when the game loads in turn based mode, you will loose your additional parameters, why? Because when game reloads it does not actually send same notifications, it sends special &amp;quot;hitstorical_log&amp;quot; notification where all  parameters not listed in the message are removed. In example above, field zone_played would be removed from historical log as it is not included in message of the notification. You can till preserve specific arguments in historical log by adding special field preserve to notification arguments like this:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
           $this-&amp;gt;notify-&amp;gt;all(&#039;tokenPlaced&#039;, clienttranslate(&#039;Player placed ${token_name}&#039;), array(&lt;br /&gt;
              &#039;token_name&#039; =&amp;gt; $token_id,&lt;br /&gt;
              &#039;zone_played&#039; =&amp;gt; $zone,&lt;br /&gt;
              &#039;preserve&#039; =&amp;gt; [ &#039;zone_played&#039; ]&lt;br /&gt;
           );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can use zone_played in bgaFormatText even in historical logs.&lt;br /&gt;
&lt;br /&gt;
===== Use &amp;lt;code&amp;gt;:formatFunction&amp;lt;/code&amp;gt; option provided by &amp;lt;code&amp;gt;dojo.string.substitute&amp;lt;/code&amp;gt; =====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js, ggg.game.php, ggg_ggg.tpl, ggg.css&lt;br /&gt;
&lt;br /&gt;
The above method will work in most of the cases, but if you use dotted keys such as &amp;lt;code&amp;gt;${card.name}&amp;lt;/code&amp;gt; (which is supported by the framework, for private state args), the key won&#039;t be substituted because the &amp;lt;code&amp;gt;key in arg&amp;lt;/code&amp;gt; test will fail. If so you need to rely either on this way, or the one after.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;WARNING:&#039;&#039;&#039; using this method on an already advanced project will require you to go through all your notifications to change keys !&lt;br /&gt;
&lt;br /&gt;
Under the hood, the &#039;&#039;&#039;this.format_string_recursive()&#039;&#039;&#039; function calls the &#039;&#039;&#039;dojo.string.substitute&#039;&#039;&#039; method which substitutes &amp;lt;code&amp;gt;${keys}&amp;lt;/code&amp;gt; with the value provided. If you take a look at the [https://dojotoolkit.org/reference-guide/1.7/dojo/string.html#substitute documentation] and [https://github.com/dojo/dojo/blob/c3ceb017cfa25b703f5662dc83d1c8aae9bc5d81/string.js#L163 source code] you can notice that the key can be suffixed with a colon (&amp;lt;code&amp;gt;:&amp;lt;/code&amp;gt;) followed by a function name. This will allow you to specify directly in the substitution string which keys need HTML injection.&lt;br /&gt;
&lt;br /&gt;
First of all, you need to define your formatting function in the ggg.js file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[[ggg.js]]&lt;br /&gt;
        getTokenDiv : function(value, key) {&lt;br /&gt;
            //This is only an example implementation, you need to write your own.&lt;br /&gt;
            //The method should return HTML code&lt;br /&gt;
            switch (key) {&lt;br /&gt;
                case &#039;html_injected_argument1&#039;:&lt;br /&gt;
                    return this.format_block(&#039;jstpl_HTMLLogElement1&#039;,{value: value});&lt;br /&gt;
                case &#039;html_injected_argument2&#039;:&lt;br /&gt;
                    return this.format_block(&#039;jstpl_HTMLLogElement2&#039;,{value: value});&lt;br /&gt;
                ...&lt;br /&gt;
            }&lt;br /&gt;
       }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Obviously you need to define the appropriate templates in the ggg_ggg.tpl file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[[ggg_ggg.tpl]]&lt;br /&gt;
let jstpl_HTMLLogElement1 = &#039;&amp;lt;div class=&amp;quot;log-element log-element-1-${value}&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#039;;&lt;br /&gt;
let jstpl_HTMLLogElement2 = &#039;&amp;lt;div class=&amp;quot;log-element log-element-2-${value}&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#039;;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And the appropriate classes in ggg.css.&lt;br /&gt;
&lt;br /&gt;
Then you need to add the &amp;lt;code&amp;gt;dojo/aspect&amp;lt;/code&amp;gt; module at the top of the ggg.js file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[ggg.js]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 define([&lt;br /&gt;
     &amp;quot;dojo&amp;quot;, &amp;quot;dojo/_base/declare&amp;quot;,&lt;br /&gt;
     &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;&amp;quot;dojo/aspect&amp;quot;,&amp;lt;/span&amp;gt;                 //MUST BE IN THIRD POSITION&#039;&#039;&#039; (see [[#Including your own JavaScript module (II)|below]])&lt;br /&gt;
     &amp;quot;ebg/core/gamegui&amp;quot;,&lt;br /&gt;
     &amp;quot;ebg/counter&amp;quot;,&lt;br /&gt;
 ], function (dojo, declare, &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;&#039;&#039;&#039;aspect&#039;&#039;&#039;&amp;lt;/span&amp;gt;) {&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And you also need to add the following code in your &amp;lt;code&amp;gt;contructor&amp;lt;/code&amp;gt; method in the ggg.js:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[ggg.js]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
         constructor: function(){&lt;br /&gt;
&lt;br /&gt;
             // ... skipped code ...&lt;br /&gt;
             let gameObject = this;            //Needed as the this object in aspect.before will not refer to the game object in which the formatting function resides&lt;br /&gt;
             aspect.before(dojo.string, &amp;quot;substitute&amp;quot;, function(template, map, transform) {      //This allows you to modify the arguments of the dojo.string.substitute method before they&#039;re actually passed to it&lt;br /&gt;
                 return [template, map, transform, gameObject];&lt;br /&gt;
             });&lt;br /&gt;
&lt;br /&gt;
Now you&#039;re all set to inject HTML in your logs. To actually achieve this, you must specify the function name with the key like so:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[ggg.game.php]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 $this-&amp;gt;notify-&amp;gt;all(&amp;quot;notificationName&amp;quot;, clienttranslate(&amp;quot;This log message contains ${plainTextArgument} and the following will receive HTML injection: ${html_injected_argument1:getTokenDiv}&amp;quot;), [&lt;br /&gt;
     &amp;quot;plainTextArgument&amp;quot; =&amp;gt; &amp;quot;some plain text here&amp;quot;,&lt;br /&gt;
     &amp;quot;html_injected_argument1&amp;quot; =&amp;gt; &amp;quot;some value used by getTokenDiv&amp;quot;,&lt;br /&gt;
 ]);&lt;br /&gt;
&lt;br /&gt;
You&#039;re not limited writing only one function, you can write as many functions as you like, and have them each inject a specific type of HTML. You just need to specify the relevant function name after the column in the substitution key.&lt;br /&gt;
&lt;br /&gt;
===== Use &amp;lt;code&amp;gt;transform&amp;lt;/code&amp;gt; argument of &amp;lt;code&amp;gt;dojo.string.substitute&amp;lt;/code&amp;gt; =====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js, ggg.game.php, ggg_ggg.tpl, ggg.css&lt;br /&gt;
&lt;br /&gt;
This method is also relying on the use of &amp;lt;code&amp;gt;dojo.string.substitute&amp;lt;/code&amp;gt; by the framework, and will use the &amp;lt;code&amp;gt;transform&amp;lt;/code&amp;gt; argument, which, accordting to [https://github.com/dojo/dojo/blob/c3ceb017cfa25b703f5662dc83d1c8aae9bc5d81/string.js#L163 source code] and [https://dojotoolkit.org/reference-guide/1.7/dojo/string.html#substitute documentation] will be run on all the messages going through dojo.string.substitute.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;WARNING:&#039;&#039;&#039; This method will be applied to all strings that go through dojo.string.substitute. As such you must take extra care not to substitute keys that may be used by the framework (i.e. ${id}). In order to do so, a good practise would be to prefix all keys that need substitution with a trigram of the game name.&lt;br /&gt;
&lt;br /&gt;
Since all the keys will be fed to the tranform function, by default, it must return the value, substituted or not per your needs. You can define the function like this in the ggg.js file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[ggg.js]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
         getTokenDiv : function(value, key) {&lt;br /&gt;
             //This is only an example implementation, you need to write your own.&lt;br /&gt;
             //The method should return HTML code&lt;br /&gt;
             switch (key) {&lt;br /&gt;
                 case &#039;html_injected_argument1&#039;:&lt;br /&gt;
                     return this.format_block(&#039;jstpl_HTMLLogElement1&#039;,{value: value});&lt;br /&gt;
                 case &#039;html_injected_argument2&#039;:&lt;br /&gt;
                     return this.format_block(&#039;jstpl_HTMLLogElement2&#039;,{value: value});&lt;br /&gt;
                 ...&lt;br /&gt;
                 default:&lt;br /&gt;
                     return value; //Needed otherwise regular strings won&#039;t appear since since the value isn&#039;t returned by the function&lt;br /&gt;
             }&lt;br /&gt;
         }&lt;br /&gt;
&lt;br /&gt;
The templates must be defined in the ggg_ggg.tpl file and the corresponding CSS classes in the ggg.css file.&lt;br /&gt;
&lt;br /&gt;
You need to add the following code at the beginning of the ggg.js file:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[ggg.js]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 define([&lt;br /&gt;
     &amp;quot;dojo&amp;quot;, &amp;quot;dojo/_base/declare&amp;quot;,&lt;br /&gt;
     &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;&amp;quot;dojo/aspect&amp;quot;,&amp;lt;/span&amp;gt;                 //MUST BE IN THIRD POSITION&#039;&#039;&#039; (see [[#Including your own JavaScript module (II)|below]])&lt;br /&gt;
     &amp;quot;ebg/core/gamegui&amp;quot;,&lt;br /&gt;
     &amp;quot;ebg/counter&amp;quot;,&lt;br /&gt;
 ], function (dojo, declare, &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;&#039;&#039;&#039;aspect&#039;&#039;&#039;&amp;lt;/span&amp;gt;) {&lt;br /&gt;
 ...&lt;br /&gt;
And the following code to the &amp;lt;code&amp;gt;constructor&amp;lt;/code&amp;gt; method in ggg.js:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[ggg.js]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
         constructor: function(){&lt;br /&gt;
             // ... skipped code ...&lt;br /&gt;
             let transformFunction = dojo.hitch(this, &amp;quot;getTokenDiv&amp;quot;);          //Needed as the this object in aspect.before will not refer to the game object in which the formatting function resides&lt;br /&gt;
             aspect.before(dojo.string, &amp;quot;substitute&amp;quot;, function(template, map, transform) {&lt;br /&gt;
                 if (undefined === transform) {    //Check for a transform function presence, just in case&lt;br /&gt;
                     return [template, map, transformFunction];&lt;br /&gt;
                 }&lt;br /&gt;
             });&lt;br /&gt;
Then you&#039;re all set for log injection, no need to change anything on the PHP side.&lt;br /&gt;
&lt;br /&gt;
==== Processing logs on re-loading ====&lt;br /&gt;
&lt;br /&gt;
You rarely need to process logs when reloading, but if you want to do something fancy you may have to do it after logs are loaded. &lt;br /&gt;
Logs are loaded asyncronously so you have to listen for logs to be fully loaded.&lt;br /&gt;
Unfortunately there is no direct way of doing it so this is the hack.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hack alert&#039;&#039;&#039; - this extends undocumented function and may be broken when framework is updated&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
			/*&lt;br /&gt;
  			* [Undocumented] Override BGA framework functions to call onLoadingLogsComplete when loading is done&lt;br /&gt;
                        @Override&lt;br /&gt;
   			*/&lt;br /&gt;
			setLoader: function(image_progress, logs_progress) {&lt;br /&gt;
				this.inherited(arguments); // required, this is &amp;quot;super()&amp;quot; call, do not remove&lt;br /&gt;
				//console.log(&amp;quot;loader&amp;quot;, image_progress, logs_progress)&lt;br /&gt;
				if (!this.isLoadingLogsComplete &amp;amp;&amp;amp; logs_progress &amp;gt;= 100) {&lt;br /&gt;
					this.isLoadingLogsComplete = true; // this is to prevent from calling this more then once&lt;br /&gt;
					this.onLoadingLogsComplete();&lt;br /&gt;
				}&lt;br /&gt;
			},&lt;br /&gt;
&lt;br /&gt;
			onLoadingLogsComplete: function() {&lt;br /&gt;
				console.log(&#039;Loading logs complete&#039;);&lt;br /&gt;
				// do something here&lt;br /&gt;
			},&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Overriding format_string_recursive to inject HTML into log, including adding tooltips to log====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js&lt;br /&gt;
&lt;br /&gt;
I&#039;m using cards as an example but this will work with any type of resource or game element. The first step is to override format_string_recursive. You can find info about this in this [https://bga-devs.github.io/blog/posts/translations-summary/ excellent guide]. We will replace the return line from the guide with this:&lt;br /&gt;
 return this.logInject(text);&lt;br /&gt;
The purpose of logInject() is to catch pre-coded text from your notifications, siphon out the meaningful info so that you can manipulate it on the front end, and then replace that pre-coded text in the log with whatever html you desire, as well as adding a tooltip to the element you&#039;re injecting. Here is a simplified version of logInject():&lt;br /&gt;
 logInject: function (log_entry) {&lt;br /&gt;
     const card_regex = /\[\w+-*\w* *\w*\(\d+\)\]/g;    // this will catch a card name in the log formatted like so: [card_name(card_type_arg)] -You may need to adjust the regex to catch your card names&lt;br /&gt;
     const cards_to_replace = log_entry.matchAll(card_regex);&lt;br /&gt;
     for (let card of cards_to_replace) {&lt;br /&gt;
         const match = card[0];&lt;br /&gt;
         const left_parenthesis = match.indexOf(&#039;(&#039;);&lt;br /&gt;
         const card_type_arg = match.slice(left_parenthesis+1, match.length-2);&lt;br /&gt;
         const card_span = this.getHTMLForLog(card_type_arg, &#039;card&#039;);&lt;br /&gt;
         log_entry = log_entry.replace(match, card_span);&lt;br /&gt;
     }&lt;br /&gt;
     return log_entry;&lt;br /&gt;
 }&lt;br /&gt;
getHTMLForLog() takes the card_type_arg and uses it to create the &amp;lt;nowiki&amp;gt;&amp;lt;span&amp;gt; to be injected into the log that you can then attach a tooltip to:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 getHTMLForLog: function (item, type) {   // in this example, item refers to the card_type_arg&lt;br /&gt;
     switch(type) {&lt;br /&gt;
         case &#039;card&#039;:&lt;br /&gt;
             this.log_span_num++; // adds a unique num to the span id so that duplicate card names in the log have unique ids&lt;br /&gt;
             const card_name = this.gamedatas[&#039;cards&#039;][item][&#039;description&#039;];  // or wherever you store your translated card name&lt;br /&gt;
             const item_type = &#039;card_tt&#039;;&lt;br /&gt;
             return `&amp;lt;nowiki&amp;gt;&amp;lt;span id=&amp;quot;${this.log_span_num}_item_${item}&amp;quot; class=&amp;quot;${item_type} item_tooltip&amp;quot;&amp;gt;${card_name}&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;`;&lt;br /&gt;
     }&lt;br /&gt;
 }&lt;br /&gt;
If you only want to add some HTML to your log and don&#039;t care about the tooltips, you can remove the item_tooltip class from the above and stop here. If you want tooltips, you&#039;ll need a function to add them:&lt;br /&gt;
 addTooltipsToLog: function() {&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;   const item_elements = dojo.query(&#039;.item_tooltip:not(.tt_processed)&#039;);&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;   Array.from(item_elements).forEach(ele =&amp;gt; {&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;       const ele_id = ele.id;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;       ele.classList.add(&#039;tt_processed&#039;);  // prevents tooltips being re-added to previous log entries&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;       if (ele.classList.contains(&#039;card_tt&#039;)) {&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;           const card_type_arg = ele_id.slice(-3).replace(/^\D+/g, &amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;);  // extracts the card_type_arg from the span id&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;           this.cardTooltip(ele_id, card_type_arg)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;       }&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;   });&lt;br /&gt;
 }&lt;br /&gt;
cardTooltip() is just however you want to create and add your tooltip. Mine is below:&lt;br /&gt;
 cardTooltip: function (ele, card_type_arg) {&lt;br /&gt;
     const card = this.gamedatas.cards[card_type_arg];&lt;br /&gt;
     const bg_pos = card[&#039;x_y&#039;];&lt;br /&gt;
     const skill = dojo.string.substitute(&amp;quot;${skill}&amp;quot;, { skill: card[&#039;skill&#039;] });&lt;br /&gt;
     const description = dojo.string.substitute(&amp;quot;${description}&amp;quot;, { description: card[&#039;description&#039;] });&lt;br /&gt;
     const html = `&amp;lt;nowiki&amp;gt;&amp;lt;div style=&amp;quot;margin-bottom: 5px; display: inline;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;${description}&amp;lt;/strong&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
                   &amp;lt;nowiki&amp;gt;&amp;lt;span style=&amp;quot;font-size: 10px; margin-left: 5px;&amp;quot;&amp;gt;${skill}&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
                   &amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;asset asset_tt&amp;quot; style=&amp;quot;background-position: -${bg_pos[0]}% -${bg_pos[1]}%; margin-bottom: 5px;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;`;&lt;br /&gt;
     this.addTooltipHTML(ele, html, 1000);&lt;br /&gt;
 }&lt;br /&gt;
And finally, you need to connect addTooltipsToLog to the notifqueue so it is called whenever the log is updated. This is in my JS setup:&lt;br /&gt;
 dojo.connect(this.notifqueue, &#039;addToLog&#039;, () =&amp;gt; {&lt;br /&gt;
     this.addTooltipsToLog();&lt;br /&gt;
 });&lt;br /&gt;
You can expand this to cover multiple types of tooltips. For example, I have it set up for cards: formatted in log as [card_name(card_type_arg)], hexes: formatted as {pitch_name(pitch_type_arg)}, objectives: formatted as ==objective_name(objective_type_arg)==, etc.&lt;br /&gt;
&lt;br /&gt;
===Player Panel===&lt;br /&gt;
&lt;br /&gt;
====Inserting non-player panel====&lt;br /&gt;
&#039;&#039;&#039;This should be avoided. The new guideline is to avoid it in new games and remove it from old games.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js, ggg_ggg.tpl&lt;br /&gt;
&lt;br /&gt;
If you want to insert non-player panel on the right side (for example to hold extra preferences, zooming controls, etc)&lt;br /&gt;
&lt;br /&gt;
this can go pretty much anywhere in template it will be moved later&lt;br /&gt;
&lt;br /&gt;
ggg_ggg.tpl:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	&amp;lt;div class=&#039;player_board_config&#039; id=&amp;quot;player_board_config&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- here is whatever you want, buttons just example --&amp;gt;&lt;br /&gt;
		&amp;lt;button id=&amp;quot;zoom-out&amp;quot; class=&amp;quot; fa fa-search-minus fa-2x config-control&amp;quot;&amp;gt;&amp;lt;/button&amp;gt;&lt;br /&gt;
		&amp;lt;button id=&amp;quot;zoom-in&amp;quot; class=&amp;quot; fa fa-search-plus fa-2x config-control&amp;quot;&amp;gt;&amp;lt;/button&amp;gt;&lt;br /&gt;
		&amp;lt;button id=&amp;quot;show-settings&amp;quot; class=&amp;quot;fa fa-cog fa-2x config-control &amp;quot;&amp;gt;&amp;lt;/button&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
some hackery required in js&lt;br /&gt;
&lt;br /&gt;
ggg.js:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/* @Override */&lt;br /&gt;
	updatePlayerOrdering() {&lt;br /&gt;
		this.inherited(arguments);&lt;br /&gt;
		dojo.place(&#039;player_board_config&#039;, &#039;player_boards&#039;, &#039;first&#039;);&lt;br /&gt;
	},&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Images and Icons ===&lt;br /&gt;
&lt;br /&gt;
==== Accessing images from js ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
     // your game resources&lt;br /&gt;
     &lt;br /&gt;
     var my_img = &#039;&amp;lt;img src=&amp;quot;&#039;+g_gamethemeurl+&#039;img/cards.jpg&amp;quot;/&amp;gt;&#039;;&lt;br /&gt;
     &lt;br /&gt;
     // shared resources&lt;br /&gt;
     var my_help_img = &amp;quot;&amp;lt;img class=&#039;imgtext&#039; src=&#039;&amp;quot; + g_themeurl + &amp;quot;img/layout/help_click.png&#039; alt=&#039;action&#039; /&amp;gt; &amp;lt;span class=&#039;tooltiptext&#039;&amp;gt;&amp;quot; +&lt;br /&gt;
                    text + &amp;quot;&amp;lt;/span&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====High-Definition Graphics====&lt;br /&gt;
&lt;br /&gt;
Some users will have screens which can display text and images at a greater resolution than the usual 72 dpi, e.g. the &amp;quot;Retina&amp;quot; screens on the 5k iMac, all iPads, and high-DPI screens on laptops from many manufacturers. If you can get art assets at this size, they will make your game look extra beautiful. You &#039;&#039;could&#039;&#039; just use large graphics and scale them down, but that would increase the download time and bandwidth for users who can&#039;t display them. Instead, a good way is to prepare a separate graphics file at exactly twice the size you would use otherwise, and add &amp;quot;@2x&amp;quot; at the end of the filename, e.g. if pieces.png is 240x320, then pieces@2x.png is 480x640.&lt;br /&gt;
&lt;br /&gt;
There are two changes required in order to use the separate graphics files. First in your css, where you use a file, add a media query which overrides the original definition and uses the bigger version on devices which can display them. Ensuring that the &amp;quot;background-size&amp;quot; attribute is set means that the size of the displayed object doesn&#039;t change, but only is drawn at the improved dot pitch.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.piece {&lt;br /&gt;
    position: absolute;&lt;br /&gt;
    background-image: url(&#039;img/pieces.png&#039;);&lt;br /&gt;
    background-size:240px 320px;&lt;br /&gt;
    z-index: 10;&lt;br /&gt;
}&lt;br /&gt;
@media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)&lt;br /&gt;
{&lt;br /&gt;
    .piece {&lt;br /&gt;
        background-image: url(&#039;img/pieces@2x.png&#039;);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Secondly, in your setup function in javascript, you must ensure than only the appropriate one version of the file gets pre-loaded (otherwise you more than waste the bandwidth saved by maintaining the standard-resolution file). Note that the media query is the same in both cases:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
            var isRetina = &amp;quot;(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)&amp;quot;;&lt;br /&gt;
            if (window.matchMedia(isRetina).matches)&lt;br /&gt;
            {&lt;br /&gt;
                this.dontPreloadImage( &#039;pieces.png&#039; );&lt;br /&gt;
                this.dontPreloadImage( &#039;board.jpg&#039; );&lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                this.dontPreloadImage( &#039;pieces@2x.png&#039; );&lt;br /&gt;
                this.dontPreloadImage( &#039;board@2x.jpg&#039; );&lt;br /&gt;
            }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Using CSS to create different colors of game pieces if you have only white piece====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
background-color: #${color}; &lt;br /&gt;
background-blend-mode: multiply;&lt;br /&gt;
background-image: url( &#039;img/mypiece.png&#039;);&lt;br /&gt;
mask: url(&#039;img/mypiece.png&#039;);&lt;br /&gt;
-webkit-mask: url(&#039;img/mypiece.png&#039;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where ${color} - is color you want&lt;br /&gt;
&lt;br /&gt;
Note: piece has to be white (shades of gray). Sprite can be used too, just add add background-position as usual.&lt;br /&gt;
&lt;br /&gt;
==== Accessing player avatar URLs ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      getPlayerAvatar(playerId) {&lt;br /&gt;
         let avatarURL = &#039;&#039;;&lt;br /&gt;
&lt;br /&gt;
         if (null != $(&#039;avatar_&#039; + playerId)) {&lt;br /&gt;
            let smallAvatarURL = dojo.attr(&#039;avatar_&#039; + playerId, &#039;src&#039;);&lt;br /&gt;
            avatarURL = smallAvatarURL.replace(&#039;_32.&#039;, &#039;_184.&#039;);&lt;br /&gt;
         }&lt;br /&gt;
         else {&lt;br /&gt;
            avatarURL = &#039;https://x.boardgamearena.net/data/data/avatar/default_184.jpg&#039;;&lt;br /&gt;
         }&lt;br /&gt;
&lt;br /&gt;
         return avatarURL;&lt;br /&gt;
      },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note:  This gets avatar URLs at 184x184 resolution.  You can also use 92, 50, and 32 depending on which resolution you want.&lt;br /&gt;
&lt;br /&gt;
====Adding Image buttons====&lt;br /&gt;
&lt;br /&gt;
Its pretty trivial but just in case you need a working function:&lt;br /&gt;
&lt;br /&gt;
ggg.js:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
                addImageActionButton: function (id, div_html, handler) { // div_html is string not node&lt;br /&gt;
                    this.addActionButton(id, div_html, handler, &#039;&#039;, false, &#039;gray&#039;); &lt;br /&gt;
                    dojo.style(id, &amp;quot;border&amp;quot;, &amp;quot;none&amp;quot;); // remove ugly border&lt;br /&gt;
                    dojo.addClass(id, &amp;quot;bgaimagebutton&amp;quot;); // add css class to do more styling&lt;br /&gt;
                    return $(id); // return node for chaining&lt;br /&gt;
                },&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example of usage:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    this.addImageActionButton(&#039;button_coin&#039;,&amp;quot;&amp;lt;div class=&#039;coin&#039;&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;, ()=&amp;gt;{ alert(&#039;Ha!&#039;); });&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Other Fluff===&lt;br /&gt;
&lt;br /&gt;
====Use thematic fonts====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.css&lt;br /&gt;
&lt;br /&gt;
Sometime game elements use specific fonts of text, if you want to match it up you can load some specific font (IMPORTANT: from some &#039;&#039;&#039;free font&#039;&#039;&#039; source. See notes below).&lt;br /&gt;
&lt;br /&gt;
[[File:Dragonline_font.png]]&lt;br /&gt;
&lt;br /&gt;
.css&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/* latin-ext */&lt;br /&gt;
@font-face {&lt;br /&gt;
  font-family: &#039;Qwigley&#039;;&lt;br /&gt;
  font-style: normal;&lt;br /&gt;
  font-weight: 400;&lt;br /&gt;
  src: local(&#039;Qwigley&#039;), local(&#039;Qwigley-Regular&#039;), url(https://fonts.gstatic.com/s/qwigley/v6/2Dy1Unur1HJoklbsg4iPJ_Y6323mHUZFJMgTvxaG2iE.woff2) format(&#039;woff2&#039;);&lt;br /&gt;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;&lt;br /&gt;
}&lt;br /&gt;
/* latin */&lt;br /&gt;
@font-face {&lt;br /&gt;
  font-family: &#039;Qwigley&#039;;&lt;br /&gt;
  font-style: normal;&lt;br /&gt;
  font-weight: normal;&lt;br /&gt;
  src: local(&#039;Qwigley&#039;), local(&#039;Qwigley-Regular&#039;), url(https://fonts.gstatic.com/s/qwigley/v6/gThgNuQB0o5ITpgpLi4Zpw.woff2) format(&#039;woff2&#039;);&lt;br /&gt;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;&lt;br /&gt;
}&lt;br /&gt;
@font-face {&lt;br /&gt;
  font-family: &#039;Qwigley&#039;;&lt;br /&gt;
  font-style: normal;&lt;br /&gt;
  font-weight: normal;&lt;br /&gt;
  src: local(&#039;Qwigley&#039;), local(&#039;Qwigley-Regular&#039;), url(http://ff.static.1001fonts.net/q/w/qwigley.regular.ttf) format(&#039;ttf&#039;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.zone_title {&lt;br /&gt;
	display: inline-block;&lt;br /&gt;
	position: absolute;&lt;br /&gt;
	font: italic 32px/32px &amp;quot;Qwigley&amp;quot;, cursive;	   &lt;br /&gt;
	height: 32px;&lt;br /&gt;
	width: auto;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; if you need to include a font that&#039;s not available online, an extra action will be needed from an admin. Please include the font file(s) in your img directory, and mention it to admins when requesting your game to be moved to alpha. &#039;&#039;&#039;Please remember that the font has to be free, and include a .txt with all appropriate license information about the font.&#039;&#039;&#039;&lt;br /&gt;
You can look for free fonts (for example) on https://fonts.google.com or https://www.fontsquirrel.com/)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Content Security Policy&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BGA runs a Content Security Policy which will limit the origins from which you can load external fonts, in order to prevent license abuse.&lt;br /&gt;
&lt;br /&gt;
The CSP is a whitelist of allowed origins. To see the list, view the response headers of any page on Studio, and look for the &amp;quot;Content-Security-Policy&amp;quot; header.&lt;br /&gt;
&lt;br /&gt;
You will specifically want to check for the font-src token within these headers, and limit any external fonts to these sources.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This list is subject to change&#039;&#039;&#039; but as of the time of writing, the only acceptabled external sites are use.typekit.net and fonts.gstatic.com.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Scale to fit for big boards===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg_ggg.tpl, ggg.js&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lets say you have huge game board, and lets say you want it to be 1400px wide. Besides the board there will be side bar which is 240 and trim. &lt;br /&gt;
My display is 1920 wide so it fits, but there is big chance other people won&#039;t have that width. What do you do?&lt;br /&gt;
&lt;br /&gt;
You have to decide:&lt;br /&gt;
* If board does not fit you want scale whole thing down, the best way is probably use viewport (see https://en.doc.boardgamearena.com/Your_game_mobile_version)&lt;br /&gt;
*You can leave the board as is and make sure it is scrollable horizonatally&lt;br /&gt;
*You add custom scale just for the board (can add user controls  - and hook to transform: scale())&lt;br /&gt;
&lt;br /&gt;
I tried to auto-scale but this just does work, too many variables - browser zoom, 3d mode, viewport, custom bga scaling, devicePixelRatio - all create some impossible coctail of zooming...&lt;br /&gt;
Here is scaling functing for custom user scaling&lt;br /&gt;
&lt;br /&gt;
ggg_ggg.tpl:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   &amp;lt;div id=&amp;quot;thething&amp;quot; class=&amp;quot;thething&amp;quot;&amp;gt;&lt;br /&gt;
            ... everything else you declare ...&lt;br /&gt;
   &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ggg.js:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    onZoomPlus: function() {&lt;br /&gt;
       this.setZoom(this.zoom + 0.1);&lt;br /&gt;
    },&lt;br /&gt;
    onZoomMinus: function() {&lt;br /&gt;
       this.setZoom(this.zoom - 0.1);&lt;br /&gt;
    },&lt;br /&gt;
&lt;br /&gt;
    setZoom: function (zoom) {&lt;br /&gt;
      zoom = parseInt(zoom) || 0;&lt;br /&gt;
      if (zoom === 0 || zoom &amp;lt; 0.1 || zoom &amp;gt; 10) {&lt;br /&gt;
        zoom = 1;&lt;br /&gt;
      }&lt;br /&gt;
      this.zoom = zoom;&lt;br /&gt;
      var inner = document.getElementById(&amp;quot;thething&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
      if (zoom == 1) {&lt;br /&gt;
        inner.style.removeProperty(&amp;quot;transform&amp;quot;);&lt;br /&gt;
        inner.style.removeProperty(&amp;quot;width&amp;quot;);&lt;br /&gt;
      } else {&lt;br /&gt;
        inner.style.transform = &amp;quot;scale(&amp;quot; + zoom + &amp;quot;)&amp;quot;;&lt;br /&gt;
        inner.style.transformOrigin = &amp;quot;0 0&amp;quot;;&lt;br /&gt;
        inner.style.width = 100 / zoom + &amp;quot;%&amp;quot;;&lt;br /&gt;
      }&lt;br /&gt;
      localStorage.setItem(`${this.game_name}_zoom`, &amp;quot;&amp;quot; + this.zoom);&lt;br /&gt;
      this.onScreenWidthChange();&lt;br /&gt;
    },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic tooltips===&lt;br /&gt;
&lt;br /&gt;
If you really need a dynamic tooltip you can use this technique. (Only use it if the static tooltips provided by the BGA framework are not sufficient.)&lt;br /&gt;
&lt;br /&gt;
            new dijit.Tooltip({&lt;br /&gt;
                connectId: [&amp;quot;divItemId&amp;quot;],&lt;br /&gt;
                getContent: function(matchedNode){&lt;br /&gt;
                    return &amp;quot;... calculated ...&amp;quot;; &lt;br /&gt;
                }&lt;br /&gt;
            });&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an out-of-the-box djit.Tooltip. It has a &#039;&#039;getContent&#039;&#039; method which is called dynamically.&lt;br /&gt;
&lt;br /&gt;
The string returned by getContent() becomes the innerHTML of the tooltip, so it can be anything. In this example matchedNode is a dojo node representing dom object with id of &amp;quot;divItemId&amp;quot; but there are more parameters which I am not posting here which allows more sophisticated subnode queries (i.e. you can attach tooltip to all nodes with class or whatever).&lt;br /&gt;
&lt;br /&gt;
[https://dojotoolkit.org/reference-guide/1.10/dijit/Tooltip.html dijit.Tooltip]&lt;br /&gt;
&lt;br /&gt;
It&#039;s not part of the BGA API so use at your own risk.&lt;br /&gt;
&lt;br /&gt;
===Rendering text with players color and proper background===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        /* Implementation of proper colored You with background in case of white or light colors  */&lt;br /&gt;
 &lt;br /&gt;
        divYou: function() {&lt;br /&gt;
            var color = this.gamedatas.players[this.player_id].color;&lt;br /&gt;
            var color_bg = &amp;quot;&amp;quot;;&lt;br /&gt;
            if (this.gamedatas.players[this.player_id] &amp;amp;&amp;amp; this.gamedatas.players[this.player_id].color_back) {&lt;br /&gt;
                color_bg = &amp;quot;background-color:#&amp;quot; + this.gamedatas.players[this.player_id].color_back + &amp;quot;;&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
            var you = &amp;quot;&amp;lt;span style=\&amp;quot;font-weight:bold;color:#&amp;quot; + color + &amp;quot;;&amp;quot; + color_bg + &amp;quot;\&amp;quot;&amp;gt;&amp;quot; + __(&amp;quot;lang_mainsite&amp;quot;, &amp;quot;You&amp;quot;) + &amp;quot;&amp;lt;/span&amp;gt;&amp;quot;;&lt;br /&gt;
            return you;&lt;br /&gt;
        },&lt;br /&gt;
&lt;br /&gt;
        /* Implementation of proper colored player name with background in case of white or light colors  */&lt;br /&gt;
&lt;br /&gt;
        divColoredPlayer: function(player_id) {&lt;br /&gt;
            var color = this.gamedatas.players[player_id].color;&lt;br /&gt;
            var color_bg = &amp;quot;&amp;quot;;&lt;br /&gt;
            if (this.gamedatas.players[player_id] &amp;amp;&amp;amp; this.gamedatas.players[player_id].color_back) {&lt;br /&gt;
                color_bg = &amp;quot;background-color:#&amp;quot; + this.gamedatas.players[player_id].color_back + &amp;quot;;&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
            var div = &amp;quot;&amp;lt;span style=\&amp;quot;color:#&amp;quot; + color + &amp;quot;;&amp;quot; + color_bg + &amp;quot;\&amp;quot;&amp;gt;&amp;quot; + this.gamedatas.players[player_id].name + &amp;quot;&amp;lt;/span&amp;gt;&amp;quot;;&lt;br /&gt;
            return div;&lt;br /&gt;
        },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Cool realistic shadow effect with CSS===&lt;br /&gt;
&lt;br /&gt;
====Rectangles and circles====&lt;br /&gt;
&lt;br /&gt;
It is often nice to have a drop shadow around tiles and tokens, to separate them from the table visually. It is very easy to add a shadow to rectangular elements, just add this to your css:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.xxx-tile {&lt;br /&gt;
    box-shadow: 3px 3px 3px #000000a0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
box-shadow obeys &#039;&#039;&#039;border-radius&#039;&#039;&#039; of the element, so it will look good for rounded rectangles, and hence also circles (if border-radius is set appropriately).&lt;br /&gt;
&lt;br /&gt;
box-shadow also supports various other parameters and can be used to achieve effects such as glowing, borders, inner shadows etc. If you need to animate a box-shadow, you may be able to get better performance (avoiding redraws) if you attach the shadow to another element (possibly an ::after pseudo-element) and change only the &#039;&#039;&#039;opacity&#039;&#039;&#039; of that element.&lt;br /&gt;
&lt;br /&gt;
==== Irregular Shapes ====&lt;br /&gt;
&lt;br /&gt;
If you wish to make a shadow effect for game pieces that are not a rectangle, but your game pieces are drawn from rectangles in a PNG image, you can apply the shadow to the piece using any art package and save it inside the image. This usually will yield the best performance. Remember to account for the size of the shadow when you lay out images in the sprite sheet.&lt;br /&gt;
&lt;br /&gt;
However that sometimes will not be an option, for example if the image needs to be rotated while the shadow remains offset in the same direction. In this case, one option is to not use box-shadow but use filter, which is supported by recent major browsers.  This way, you can use the alpha channel of your element to drop a shadow.  This even work for transparent backgrounds, so that if you are using the &amp;quot;CSS-sprite&amp;quot; method, it will work!&lt;br /&gt;
&lt;br /&gt;
For instance:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.xxx-token {&lt;br /&gt;
    filter: drop-shadow(0px 0px 1px #000000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beware that some browsers still do not always draw drop-shadow correctly. In particular, Safari frequently leaves bits of shadow behind when objects move around the screen. In Chrome, shadows sometimes flicker badly if another element is animating close by. Some of these correctness issues can be solved by adding &#039;&#039;&#039;isolation: isolate; will-change: filter;&#039;&#039;&#039; to affected elements, but this significantly affects redraw performance.&lt;br /&gt;
&lt;br /&gt;
Beware of performance issues - particularly on Safari (MacOS, iPhone and iPad). Keep in mind that drop-shadow are very GPU intensive. This becomes noticeable once you have about 40 components with drop-shadow filter. If that is your case, you can quite easily implement a user preference to disable shadows for users on slower machines:&lt;br /&gt;
&lt;br /&gt;
gameoptions.inc.php&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
100 =&amp;gt; array(&lt;br /&gt;
			&#039;name&#039; =&amp;gt; totranslate(&#039;Shadows&#039;),&lt;br /&gt;
			&#039;needReload&#039; =&amp;gt; true, // after user changes this preference game interface would auto-reload&lt;br /&gt;
			&#039;values&#039; =&amp;gt; array(&lt;br /&gt;
					1 =&amp;gt; array( &#039;name&#039; =&amp;gt; totranslate( &#039;Enabled&#039; ), &#039;cssPref&#039; =&amp;gt; &#039;&#039; ),&lt;br /&gt;
					2 =&amp;gt; array( &#039;name&#039; =&amp;gt; totranslate( &#039;Disabled&#039; ), &#039;cssPref&#039; =&amp;gt; &#039;no-shadow&#039; )&lt;br /&gt;
			)&lt;br /&gt;
	),&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[game].css&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.no-shadow * {&lt;br /&gt;
	filter: none !important; &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/pre&amp;gt;For Safari, it is usually better to simply disable drop-shadow completely: [[Game interface stylesheet: yourgamename.css#Warning: using drop-shadow]].&lt;br /&gt;
&lt;br /&gt;
====Shadows with clip-path====&lt;br /&gt;
&lt;br /&gt;
For some reason, a shadow will not work together with clip-path on one element. To use both clip-path (when for example using .svg to cut out cardboard components from your .jpg spritesheet) and drop-shadow, you need to wrap the element into another one, and apply drop-shadow to the outer one, and clip-path to the inner one.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;my-token-wrap&#039;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&#039;my-token&#039;&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.my-token-wrap {&lt;br /&gt;
    filter: drop-shadow(0px 0px 1px #000000);&lt;br /&gt;
}&lt;br /&gt;
.my-token-wrap .my-token {&lt;br /&gt;
    clip-path: url(#my-token-path);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using the CSS classes from the state machine ===&lt;br /&gt;
&lt;br /&gt;
If you need to hide or show stuff depending on the state of your game, you can of course use javascript, but CSS is hand enough for that.  The #overall-content element does change class depending on the game state.  For instance, if you are in state &#039;&#039;playerTurn&#039;&#039;, it will have the class &#039;&#039;gamestate_playerTurn&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
So now, if you want to show the discard pile only during player turns, you may use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#discard_pile { display: none }&lt;br /&gt;
.gamestate_playerTurn #discard_pile { display: block }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can be used if you want to change sizing of elements, position, layout or visual appearance.&lt;br /&gt;
&lt;br /&gt;
==Game Model and Database design ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Database for The euro game ===&lt;br /&gt;
Lets say we have a game with workers, dice, tokens, board, resources, money and vp. Workers and dice can be placed in various zones on the board, and you can get resources, money, tokens and vp in your home zone. Also tokens can be flipped or not flipped.&lt;br /&gt;
&lt;br /&gt;
[[File:Madeira board.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now lets try to map it, we have&lt;br /&gt;
*(meeple,zone)&lt;br /&gt;
*(die, zone, sideup)&lt;br /&gt;
*(resource cube/money token/vp token,player home zone)&lt;br /&gt;
*(token, player home zone, flip state)&lt;br /&gt;
We can notice that resource and money are uncountable, and don&#039;t need to be track individually so we can replace our mapping to&lt;br /&gt;
*(resource type/money,player home zone, count)&lt;br /&gt;
And vp stored already for us in player table, so we can remove it from that list.&lt;br /&gt;
&lt;br /&gt;
Now when we get to encode it we can see that everything can be encoded as (object,zone,state) form, where object and zone is string and state is integer. The resource mapping is slightly different semantically so you can go with two table, or counting using same table with state been used as count for resources.&lt;br /&gt;
&lt;br /&gt;
So the piece mapping for non-grid based games can be in most case represented by (string: token_key, string: token_location, int: token_state), example of such database schema can be found here: [https://github.com/elaskavaia/bga-sharedcode/blob/master/dbmodel.sql dbmodel.sql] and class implementing access to it here [https://github.com/elaskavaia/bga-sharedcode/blob/master/modules/tokens.php table.game.php].&lt;br /&gt;
&lt;br /&gt;
Variant 1: Minimalistic&lt;br /&gt;
&lt;br /&gt;
 CREATE TABLE IF NOT EXISTS `token` (&lt;br /&gt;
  `token_key` varchar(32) NOT NULL,&lt;br /&gt;
  `token_location` varchar(32) NOT NULL,&lt;br /&gt;
  `token_state` int(10),&lt;br /&gt;
  PRIMARY KEY (`token_key`)&lt;br /&gt;
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+token&lt;br /&gt;
!token_key&lt;br /&gt;
!token_location&lt;br /&gt;
!token_state&lt;br /&gt;
|-&lt;br /&gt;
|meeple_red_1&lt;br /&gt;
|home_red&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|dice_black_2&lt;br /&gt;
|board_guard&lt;br /&gt;
|1&lt;br /&gt;
|-&lt;br /&gt;
|dice_green_1&lt;br /&gt;
|board_action_mayor&lt;br /&gt;
|3&lt;br /&gt;
|-&lt;br /&gt;
|bread&lt;br /&gt;
|home_red &lt;br /&gt;
| 5&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Now how we represent resource counters such as bread?&lt;br /&gt;
Using same table from we simply add special counter token for bread and use state to indicate the count. Note to keep first column unique we have to add player identification for that counter, i.e. ff0000 is red player.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+token&lt;br /&gt;
!token_key&lt;br /&gt;
!token_location&lt;br /&gt;
!token_state&lt;br /&gt;
|-&lt;br /&gt;
|bread_ff0000&lt;br /&gt;
|tableau_ff0000&lt;br /&gt;
|5&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See php module for this table here https://github.com/elaskavaia/bga-sharedcode/blob/master/modules/tokens.php&lt;br /&gt;
&lt;br /&gt;
Variant 2: Additional resource table, resource count for each player id&lt;br /&gt;
&lt;br /&gt;
 CREATE TABLE IF NOT EXISTS `resource` (&lt;br /&gt;
  `player_id` int(10) unsigned NOT NULL,&lt;br /&gt;
  `resource_key` varchar(32) NOT NULL,&lt;br /&gt;
  `resource_count` int(10) signed NOT NULL,&lt;br /&gt;
  PRIMARY KEY (`player_id`,`resource_key`)&lt;br /&gt;
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;&lt;br /&gt;
&lt;br /&gt;
 ALTER TABLE resource ADD CONSTRAINT fk_player_id FOREIGN KEY (player_id) REFERENCES player(player_id);&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+resource&lt;br /&gt;
!player_id&lt;br /&gt;
!resource_key&lt;br /&gt;
!resource_count&lt;br /&gt;
|-&lt;br /&gt;
| 123456&lt;br /&gt;
|bread&lt;br /&gt;
|5&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Variant 3: More normalised&lt;br /&gt;
&lt;br /&gt;
This version is similar to &amp;quot;card&amp;quot; table from hearts tutorial, you can also use exact cards database schema and Deck implementation for most purposes (even you not dealing with cards). &lt;br /&gt;
&lt;br /&gt;
 CREATE TABLE IF NOT EXISTS `token` (&lt;br /&gt;
  `token_id` int(10) unsigned NOT NULL AUTO_INCREMENT,&lt;br /&gt;
  `token_type` varchar(16) NOT NULL,&lt;br /&gt;
  `token_arg` int(11) NOT NULL,&lt;br /&gt;
  `token_location` varchar(32) NOT NULL,&lt;br /&gt;
  `token_state` int(10),&lt;br /&gt;
  PRIMARY KEY (`token_id`)&lt;br /&gt;
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+token&lt;br /&gt;
!token_id&lt;br /&gt;
!token_type&lt;br /&gt;
!token_arg&lt;br /&gt;
!token_location&lt;br /&gt;
!token_state&lt;br /&gt;
|-&lt;br /&gt;
|22&lt;br /&gt;
|meeple&lt;br /&gt;
|123456&lt;br /&gt;
|home_123456&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|23&lt;br /&gt;
|dice&lt;br /&gt;
|2&lt;br /&gt;
|board_guard&lt;br /&gt;
|1&lt;br /&gt;
|-&lt;br /&gt;
|26 &lt;br /&gt;
|dice&lt;br /&gt;
|1&lt;br /&gt;
|board_action_mayor&lt;br /&gt;
|3&lt;br /&gt;
|-&lt;br /&gt;
|49&lt;br /&gt;
|bread&lt;br /&gt;
|0&lt;br /&gt;
|home_123456&lt;br /&gt;
|5&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Advantages of this would be is a bit more straightforward to do some queries in db, disadvantage its hard to read (as you can compare with previous example, you&lt;br /&gt;
cannot just look at say, ah I know what it means). Another questionable advantage is it allows you to do id randomisation, so it hard to do crafted queries to &lt;br /&gt;
cheat, the down side of that you cannot understand it either, and handcraft db states for debugging or testing.&lt;br /&gt;
&lt;br /&gt;
=== Database for The card game===&lt;br /&gt;
&lt;br /&gt;
Lets say you have a standard card game, player have hidden cards in hand, you can draw card from draw deck, play card on tableau and discard to discard pile.&lt;br /&gt;
We have to design database for such game.&lt;br /&gt;
&lt;br /&gt;
In real word to &amp;quot;save&amp;quot; the game we take a picture a play area, save cards from it, then put away draw deck, discard and hand of each player separately and mark it, also we will record current scoring (if any) and who&#039;s turn was it.&lt;br /&gt;
&lt;br /&gt;
*Framework handles state machine transition, so you don&#039;t have to worry about database design for that (i.e. who&#039;s turn it is, what phase of the game we are at, you still have to design it but part of state machine step)&lt;br /&gt;
*Also framework supports basic player information, color, order around the table, basic scoring, etc, so you don&#039;t have to worry about it either&lt;br /&gt;
*The only thing you need in our database is state of the &amp;quot;board&amp;quot;, which is &amp;quot;where each pieces is, and in what state&amp;quot;, or (position,rotation) pair.&lt;br /&gt;
&lt;br /&gt;
Lets see what we have for that: &lt;br /&gt;
*The card state is very simple, its usually &amp;quot;face up/face down&amp;quot;, &amp;quot;tapped/untapped&amp;quot;, &amp;quot;right side up/up side down&amp;quot;&lt;br /&gt;
*As position go we never need real coordinates x,y,z. We need to know what &amp;quot;zone&amp;quot; card was, and depending on the zone it may sometimes need an extra &amp;quot;z&amp;quot; or &amp;quot;x&amp;quot; as card order. The zone position usually static or irrelevant.&lt;br /&gt;
*So our model is: we have cards, which have some attributes, at any given point in time they belong to a &amp;quot;zone&amp;quot;, and can also have order and state&lt;br /&gt;
* Now for mapping we should consider what information changes and what information is static, later is always candidate for material file&lt;br /&gt;
*For dynamic information we should try to reduce amount of fields we need&lt;br /&gt;
**we need at least a field for card, so its one&lt;br /&gt;
**we need to know what zone cards belong to, its 2&lt;br /&gt;
**and we have possibly few other fields, if you look closely at you game you may find out that most of the zone only need one attribute at a time, i.e. draw pile always have cards face down, hand always face up, also for hand and discard order does not matter at all (but for draw it does matter). So in majority of cases we can get away with one single extra integer field representing state or order&lt;br /&gt;
*In real database both card and zone will be integers as primary keys referring to additional tables, but in our case its total overkill, so they can be strings as easily&lt;br /&gt;
&lt;br /&gt;
Variant 1: Minimalistic&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CREATE TABLE IF NOT EXISTS `card` (&lt;br /&gt;
  `card_key` varchar(32) unsigned NOT NULL,&lt;br /&gt;
  `card_location` varchar(32) NOT NULL,&lt;br /&gt;
  `card_state` int(11) NOT NULL,&lt;br /&gt;
  PRIMARY KEY (`card_id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Variant 2: More normalised&lt;br /&gt;
&lt;br /&gt;
This version supported by Deck php class, so unless you want to rewrite db access layer go with this one&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CREATE TABLE IF NOT EXISTS `card` (&lt;br /&gt;
  `card_id` int(10) unsigned NOT NULL AUTO_INCREMENT,&lt;br /&gt;
  `card_type` varchar(16) NOT NULL,&lt;br /&gt;
  `card_type_arg` int(11) NOT NULL,&lt;br /&gt;
  `card_location` varchar(16) NOT NULL,&lt;br /&gt;
  `card_location_arg` int(11) NOT NULL,&lt;br /&gt;
  PRIMARY KEY (`card_id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you using this schema, some zones/locations have special semantic. The &#039;hand&#039; location is actually multiple locations - one per player, but player id is encoded as card_location_arg. If &#039;hand&#039; in your game is ordered, visible or can have some other card states, you cannot use hand location (replacement is hand_&amp;lt;player_id&amp;gt; or hand_&amp;lt;color_id&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==Game Elements==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resource===&lt;br /&gt;
&lt;br /&gt;
A game resource, such as &amp;quot;wood,&amp;quot; is usually infinite and represented by a count allocated to a specific player or supply.&lt;br /&gt;
&lt;br /&gt;
If a resource can be placed on location, use the &amp;quot;Meeple&amp;quot; model described below.&lt;br /&gt;
&lt;br /&gt;
For a working example, you can check out: [https://codepen.io/VictoriaLa/pen/emYgLzR CodePen Example] (ui only).&lt;br /&gt;
&lt;br /&gt;
====Representation in Database====&lt;br /&gt;
In a minimalistic &amp;quot;tokens&amp;quot; database, it would look like this (e.g., the red player has 3 wood):&lt;br /&gt;
  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+token&lt;br /&gt;
!token_key&lt;br /&gt;
!token_location&lt;br /&gt;
! token_state&lt;br /&gt;
|-&lt;br /&gt;
|wood_ff0000&lt;br /&gt;
|&lt;br /&gt;
|3&lt;br /&gt;
|-&lt;br /&gt;
|wood_supply&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The second row you need to store the resource in the supply (if it&#039;s counted).&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t like this solution can use bga_globals table for this or create your own resource table.&lt;br /&gt;
&lt;br /&gt;
Its not recommened to extend player table to store this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Representation in Material File (material.inc.php)====&lt;br /&gt;
In the material file, you can define some information about resources. For instance, you can specify that it&#039;s of type &amp;quot;resource&amp;quot; and call it &amp;quot;Wood&amp;quot; in English, along with a tooltip:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$this-&amp;gt;token_types = [&lt;br /&gt;
  ...&lt;br /&gt;
  &#039;wood&#039; =&amp;gt; [&lt;br /&gt;
     &#039;name&#039; =&amp;gt; clienttranslate(&#039;Wood&#039;),&lt;br /&gt;
     &#039;tooltip&#039; =&amp;gt; clienttranslate(&#039;Game resource used for building houses&#039;),&lt;br /&gt;
     &#039;type&#039; =&amp;gt; &#039;resource&#039;,&lt;br /&gt;
     &#039;max&#039; =&amp;gt; 40&lt;br /&gt;
  ]&lt;br /&gt;
];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====HTML Representation====&lt;br /&gt;
In HTML, this would look something like this within the player panel. Using the data attribute instead of a CDATA value is much more flexible:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;wood_ff0000&amp;quot; class=&amp;quot;resource wood&amp;quot; data-value=&amp;quot;3&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JavaScript Handling ====&lt;br /&gt;
When you get the object from the server, one of the tokens will be sent in the array like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
token = {&lt;br /&gt;
  key: &#039;wood_ff0000&#039;,&lt;br /&gt;
  location: &#039;-&#039;,&lt;br /&gt;
  state: &#039;3&#039;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can create a corresponding `&amp;lt;div&amp;gt;` in the `setup()` method of `game.js` as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
const playerColor = token.key.split(&#039;_&#039;)[1];&lt;br /&gt;
const resType = token.key.split(&#039;_&#039;)[0];&lt;br /&gt;
const tokenInfo = this.gamedatas.token_types[resType]; // token_types is the structure from the material file sent to the client&lt;br /&gt;
const div = `&amp;lt;div id=&amp;quot;${token.key}&amp;quot; class=&amp;quot;${resType} ${tokenInfo.type} ${token.key}&amp;quot; data-value=&amp;quot;${token.state}&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;`;&lt;br /&gt;
&lt;br /&gt;
if (playerColor != &#039;supply&#039;) {&lt;br /&gt;
    document.querySelector(`#player_board_${this.getPlayerIdByColor(playerColor)} &amp;gt; .player-board-game-specific-content`).insertAdjacentHTML(&#039;beforeend&#039;,div);&lt;br /&gt;
    this.addTooltip(token.key, _(tokenInfo.name) + &amp;quot; &amp;quot; + _(tokenInfo.tooltip), &amp;quot;&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you receive an update notification (assuming you get the same &amp;quot;token&amp;quot; object), you can simply update the `data-value`:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
document.querySelector(`#${token.key}`).dataset.value = token.state;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To display the resource in the game log, you can format it like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Player gains &amp;lt;div class=&amp;quot;resource wood&amp;quot; data-value=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For more on injecting icon images in the log, see: [[BGA_Studio_Cookbook#Inject_icon_images_in_the_log]]&lt;br /&gt;
&lt;br /&gt;
====Graphic Representation (.css)====&lt;br /&gt;
To properly display the resource image, it is preferable to use an image sprite that includes all resources, &lt;br /&gt;
usually it will be .png as these objects have shape. &lt;br /&gt;
This how will .css look like with horizontal sprite image:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.resource {&lt;br /&gt;
  background-image: url(https://en.doc.boardgamearena.com/images/d/d3/Cubes.png);&lt;br /&gt;
  background-repeat: no-repeat;&lt;br /&gt;
  background-size: cover; /* auto-scale */&lt;br /&gt;
  aspect-ratio: 1/1; /* that will keep heigh in sync */&lt;br /&gt;
  width: 32px; /* default size, specific location should override */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.wood {&lt;br /&gt;
  /* Since the sprite is a horizontal row of 11 cubes and 9 is the brown cube position */&lt;br /&gt;
  background-position: calc(100% / (11 - 1) * 9) 0%;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To show a text overlay with the resource value, you can use the following CSS:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.resource[data-value]:after {&lt;br /&gt;
  content: attr(data-value);&lt;br /&gt;
  width: 100%;&lt;br /&gt;
  height: 100%;&lt;br /&gt;
  position: absolute;&lt;br /&gt;
  font-size: xx-large;&lt;br /&gt;
  text-align: center;&lt;br /&gt;
  text-shadow: 2px 0 2px #fff, 0 -2px 2px #fff, 0 2px 2px #fff, -2px 0 2px #fff;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This solution is fully scalable — you only need to specify the size where you want it displayed. &lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.player_board_content &amp;gt; .resource {&lt;br /&gt;
  width: 40px;&lt;br /&gt;
  position: relative;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you have that board that tracks the resource on resource tracker - you can show this IN ADDITION of showing resource on player panel.&lt;br /&gt;
&lt;br /&gt;
====Selection and Actions====&lt;br /&gt;
It is best to put buttons with resource images on the status bar, rather than having the player click on the player panel.&lt;br /&gt;
&lt;br /&gt;
For animation:&lt;br /&gt;
*Can use move animation to animate resourced gained or played from the board location to the player panel&lt;br /&gt;
*Can use &amp;quot;vapor&amp;quot; animation to show resource gained from the board&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Meeple===&lt;br /&gt;
&lt;br /&gt;
A meeple is a game piece, typically representing a &amp;quot;worker,&amp;quot; depicted as a human-shaped figure in a specific color assigned to a player.&lt;br /&gt;
&lt;br /&gt;
The key distinction between meeples and traditional resources is that meeples are placed on locations and can exist &lt;br /&gt;
in at least two states — standing or lying down. &lt;br /&gt;
&lt;br /&gt;
This concept also applies to similar pieces like &amp;quot;houses,&amp;quot; &amp;quot;animeeples,&amp;quot; &amp;quot;ships,&amp;quot; and others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Representation in Database====&lt;br /&gt;
In a simplified &amp;quot;tokens&amp;quot; database, it might be represented like this &lt;br /&gt;
(e.g., the red player&#039;s first meeple is on action spot 1, while the white meeple remains in supply):&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+token&lt;br /&gt;
!token_key&lt;br /&gt;
!token_location&lt;br /&gt;
! token_state&lt;br /&gt;
|-&lt;br /&gt;
|meeple_ff0000_1&lt;br /&gt;
|actionspot_1&lt;br /&gt;
|1&lt;br /&gt;
|-&lt;br /&gt;
|meeple_ffffff_1&lt;br /&gt;
| supply&lt;br /&gt;
|0&lt;br /&gt;
|}  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Representation in Material File (material.inc.php)====&lt;br /&gt;
&lt;br /&gt;
Here we define some properties, for example name can be used in notification and as tooltip, type can be used to create the div by &lt;br /&gt;
javascript, &#039;create&#039; - can be used by server to create 8 meeples of this type in database and set location to &#039;supply_ff0000&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$this-&amp;gt;token_types = [&lt;br /&gt;
  ...&lt;br /&gt;
  &#039;meeple_ff0000&#039; =&amp;gt; [&lt;br /&gt;
     &#039;name&#039; =&amp;gt; clienttranslate(&#039;Red Worker&#039;),&lt;br /&gt;
     &#039;type&#039; =&amp;gt; &#039;meeple meeple_ff0000&#039;,&lt;br /&gt;
     &#039;create&#039; =&amp;gt; 8,&lt;br /&gt;
     &#039;location&#039; =&amp;gt; &#039;supply_ff0000&#039;&lt;br /&gt;
  ]&lt;br /&gt;
];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====HTML Representation ====&lt;br /&gt;
In HTML, this would look something like this. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;meeple_ff0000_1&amp;quot; class=&amp;quot;meeple meeple_ff0000&amp;quot; data-state=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====JavaScript Handling ====&lt;br /&gt;
When you get the object from the server, each meeple object will be similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
meeple = {&lt;br /&gt;
  key: &#039;meeple_ff0000_1&#039;,&lt;br /&gt;
  location: &#039;actionslot_1&#039;,&lt;br /&gt;
  state: &#039;1&#039;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can create a corresponding `&amp;lt;div&amp;gt;` in the `setup()` method of `game.js` as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
const playerColor = token.key.split(&#039;_&#039;)[1];&lt;br /&gt;
const resType = token.key.split(&#039;_&#039;)[0];&lt;br /&gt;
const tokenInfo = this.gamedatas.token_types[resType]; // token_types is the structure from the material file sent to the client&lt;br /&gt;
const div = `&amp;lt;div id=&amp;quot;${token.key}&amp;quot; class=&amp;quot;${tokenInfo.type} ${token.key}&amp;quot; data-state=&amp;quot;${token.state}&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;`;&lt;br /&gt;
&lt;br /&gt;
$(token.location).insertAdjacentHTML(&#039;beforeend&#039;,div);&lt;br /&gt;
this.addTooltip(token.key, _(tokenInfo.name) + &amp;quot; &amp;quot; + _(tokenInfo.tooltip), &amp;quot;&amp;quot;);&lt;br /&gt;
$(token.key).addEventListener(&#039;onclick&#039;,(ev)=&amp;gt;this.onMeepleClick(ev));&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you receive an update notification (assuming you get the same &amp;quot;token&amp;quot; object), you either create it if not exists or animate:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if ($(token.key)) {&lt;br /&gt;
  // exists&lt;br /&gt;
  $(token.key).dataset.state = token.state; // update state&lt;br /&gt;
  this.moveToken(token.key, token.location); // animate to new location (custom functon), see [[BGA_Studio_Cookbook#Animation]]&lt;br /&gt;
  } else {&lt;br /&gt;
  // crate meeple using code in previous section&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Graphic Representation (.css)====&lt;br /&gt;
&lt;br /&gt;
Use same sprite technique from Resource section above.&lt;br /&gt;
&lt;br /&gt;
When placed on the board it will look good with shadow, but its not recommended on mobile&lt;br /&gt;
&lt;br /&gt;
  filter: drop-shadow(black 5px 5px 5px);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To represent &amp;quot;laying down&amp;quot; meeple, you have to use a different sprite image, which you will apply based on data attribute&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.meeple[data-state=&amp;quot;1&amp;quot;] {&lt;br /&gt;
   background-image: url(...);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also rotate you div, but it will look lame.&lt;br /&gt;
Other options include changing its shading, adding overlay (i.e. sad face) and so on. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Selection and Actions====&lt;br /&gt;
To show user that meeple is active it best to use drop-shadow as image as non-square, however this may be very slow.&lt;br /&gt;
For simplier case use box shadow.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.active_slot {&lt;br /&gt;
  filter: drop-shadow(0px 0px 10px blue);&lt;br /&gt;
  cursor: pointer;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* draw a circle around game element for selection */&lt;br /&gt;
.active_slot_simple:after {&lt;br /&gt;
  content: &amp;quot; &amp;quot;;&lt;br /&gt;
  width: 110%;&lt;br /&gt;
  top: -5%;&lt;br /&gt;
  left: -5%;&lt;br /&gt;
  aspect-ratio: 1/1;&lt;br /&gt;
  position: absolute;&lt;br /&gt;
  border-radius: 50%;&lt;br /&gt;
  box-shadow: 0px 0px 4px 3px #64b4ff;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See code example at https://codepen.io/VictoriaLa/pen/emYgLzR&lt;br /&gt;
&lt;br /&gt;
When a meeple is gained from the supply, you can display a meeple icon on the status bar button &lt;br /&gt;
instead of showing the supply on the board.&lt;br /&gt;
&lt;br /&gt;
===Dice ===&lt;br /&gt;
The 2D dice can use similar handing as meeple but it has 6 states instead of 2.&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: Never roll dice using javascript. All dice rolling must be done using bga_rand() function in php.&lt;br /&gt;
&lt;br /&gt;
====Representation in Database====&lt;br /&gt;
In a simplified &amp;quot;tokens&amp;quot; database, it might be represented like this &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+token&lt;br /&gt;
!token_key&lt;br /&gt;
!token_location&lt;br /&gt;
!token_state&lt;br /&gt;
|-&lt;br /&gt;
|die_black&lt;br /&gt;
|actionspot_1&lt;br /&gt;
|1&lt;br /&gt;
|-&lt;br /&gt;
|die_red&lt;br /&gt;
|supply &lt;br /&gt;
|6&lt;br /&gt;
|}&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
====Representation in Material File (material.inc.php)====&lt;br /&gt;
&lt;br /&gt;
Similar to resource and meeple above&lt;br /&gt;
&lt;br /&gt;
====HTML Representation====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;die_black&amp;quot; class=&amp;quot;die&amp;quot; data-state=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====JavaScript Handling (.js)====&lt;br /&gt;
See meeple section&lt;br /&gt;
&lt;br /&gt;
====Graphic Representation (.css)====&lt;br /&gt;
For dice we would usually use N x 6 sprite, and since the sides are square - the .jpg format is better (it is smaller then png)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.die {  &lt;br /&gt;
  background-image: url(https://en.doc.boardgamearena.com/images/c/c5/64_64_dice.jpg);&lt;br /&gt;
  background-size: 600%;&lt;br /&gt;
  background-repeat: no-repeat;&lt;br /&gt;
  aspect-ratio: 1/1;&lt;br /&gt;
  width: 64px;&lt;br /&gt;
  border-radius: 5%; /* looks better with rounded corders */&lt;br /&gt;
}&lt;br /&gt;
.die[data-state=&amp;quot;3&amp;quot;] {&lt;br /&gt;
  background-position: calc(100% / 5 * 2) 0%;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The 3D dice a bit tricker to create but its feasible, see https://codepen.io/VictoriaLa/pen/QWBBbwz for an example.&lt;br /&gt;
&lt;br /&gt;
Also multiple examples on N-sided dice can be found on [[BGA_Code_Sharing]]&lt;br /&gt;
&lt;br /&gt;
====Selection and Actions====&lt;br /&gt;
Since it is a square its a lot easier to make a square selection highlight&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.die.active_slot  {&lt;br /&gt;
  box-shadow: 0px 0px 4px 4px blue;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Card===&lt;br /&gt;
&lt;br /&gt;
Cards are the most complex game resource, they can be located in various zones, stacked, tapped, put face down and can have arbitrary complete abilities.&lt;br /&gt;
If you have square tiles - it can be treated the same as cards.&lt;br /&gt;
&lt;br /&gt;
====Representation in Database====&lt;br /&gt;
&lt;br /&gt;
In a simplified &amp;quot;tokens&amp;quot; database, it might be represented like this &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+token&lt;br /&gt;
!token_key&lt;br /&gt;
!token_location&lt;br /&gt;
!token_state&lt;br /&gt;
|-&lt;br /&gt;
|card_project_123&lt;br /&gt;
|tableau_ff0000&lt;br /&gt;
|1&lt;br /&gt;
|-&lt;br /&gt;
|card_corp_p1&lt;br /&gt;
| deck_corp&lt;br /&gt;
|6&lt;br /&gt;
|}&lt;br /&gt;
  &lt;br /&gt;
Means project card is player red tableau and state 1 means it has been used for example,&lt;br /&gt;
and second card of corproration file in in deck at position 6 from the top.&lt;br /&gt;
&lt;br /&gt;
When duplcates are in play you need to add extra unique disambigator in the key.&lt;br /&gt;
&lt;br /&gt;
Usually cards will have numeric id associated with type, but it this number is per expansition, so leave the space for expansion identifier in there also.&lt;br /&gt;
&lt;br /&gt;
Another option use [[Deck]] component.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Representation in Material====&lt;br /&gt;
&lt;br /&gt;
All the card properties which do not change during the game can be put in material file (or its alternative)&lt;br /&gt;
&lt;br /&gt;
This is example from terraforming mars&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &#039;card_main_81&#039; =&amp;gt; [  //&lt;br /&gt;
  &#039;location&#039; =&amp;gt; &#039;deck_main&#039;,&lt;br /&gt;
  &#039;create&#039; =&amp;gt; &#039;single&#039;,&lt;br /&gt;
  &#039;num&#039; =&amp;gt; 81,&lt;br /&gt;
  &#039;name&#039; =&amp;gt; clienttranslate(&#039;Ganymede Colony&#039;),&lt;br /&gt;
  &#039;t&#039; =&amp;gt; 1,&lt;br /&gt;
  &#039;r&#039; =&amp;gt; &amp;quot;city(&#039;Ganymede Colony&#039;)&amp;quot;,&lt;br /&gt;
  &#039;cost&#039; =&amp;gt; 20,&lt;br /&gt;
  &#039;tags&#039; =&amp;gt; &#039;Space City Jovian&#039;,&lt;br /&gt;
  &#039;vp&#039; =&amp;gt; &#039;tagJovian&#039;,&lt;br /&gt;
  &#039;deck&#039; =&amp;gt; &#039;Basic&#039;,&lt;br /&gt;
  &#039;text&#039; =&amp;gt; clienttranslate(&#039;Place a city tile ON THE RESERVED AREA [for Ganymede Colony].&#039;),&lt;br /&gt;
  &#039;text_vp&#039; =&amp;gt; clienttranslate(&#039;1 VP per Jovian tag you have.&#039;),&lt;br /&gt;
],&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====HTML Representation====&lt;br /&gt;
&lt;br /&gt;
There is 2 main options:&lt;br /&gt;
* Use exact cards images in english&lt;br /&gt;
*Use cards images WITHOUT text&lt;br /&gt;
&lt;br /&gt;
The 3d option is completely redo the graphic layout that game designed did already, but I won&#039;t go there&lt;br /&gt;
&lt;br /&gt;
The first option is very simple and similar to other resources and meeple&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;card_project_123&amp;quot; class=&amp;quot;card card_project card_project_123&amp;quot; data-state=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second option means you can add translated text instead&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;card_project_123&amp;quot; class=&amp;quot;card card_project card_project_123&amp;quot; data-state=&amp;quot;1&amp;quot; data-cost=&amp;quot;22&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;div class=&amp;quot;card_name&amp;quot;&amp;gt;Ganymede Colony&amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;lt;div class=&amp;quot;card_text&amp;quot;&amp;gt;Place a city tile ON THE RESERVED AREA [for Ganymede Colony].&amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;lt;div class=&amp;quot;card_cost&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the example above card_cost is also rendered as this can change during the game (even printed value is the same),&lt;br /&gt;
it would be rendered using data-cost attribute.&lt;br /&gt;
&lt;br /&gt;
Instead of using class you can also use state even if it is static&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;div id=&amp;quot;card_H_10&amp;quot; class=&amp;quot;card&amp;quot; data-suit=&amp;quot;H&amp;quot; data-rank=&amp;quot;10&amp;quot;&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: to make flip animation you effectively need to make a &amp;quot;3d&amp;quot; card and provide both faces with separate graphics,&lt;br /&gt;
which makes more complex div. See examples at [[BgaCards]].&lt;br /&gt;
&lt;br /&gt;
Note: you can also use [[Stock]] component that handles html, js, css, layout and selection at the same time. If do that skip sections below.&lt;br /&gt;
&lt;br /&gt;
====JavaScript Handling (.js)====&lt;br /&gt;
You will get the server data which looks like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
card = {&lt;br /&gt;
  key: &#039;card_project_123&#039;,&lt;br /&gt;
  location: &#039;tableau_ff0000&#039;,&lt;br /&gt;
  state: &#039;1&#039;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  createCard(token: Token) {&lt;br /&gt;
    // token_types is the structure from the material file sent to the client&lt;br /&gt;
    const tokenInfo = this.gamedatas.token_types[token.key]; &lt;br /&gt;
    const div = `&lt;br /&gt;
    &amp;lt;div id=&amp;quot;${token.key}&amp;quot; class=&amp;quot;${tokenInfo.type} ${token.key}&amp;quot; data-state=&amp;quot;${token.state}&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;div class=&amp;quot;card_name&amp;quot;&amp;gt;${_(tokenInfo.name)}&amp;lt;/div&amp;gt;&lt;br /&gt;
       &amp;lt;div class=&amp;quot;card_text&amp;quot;&amp;gt;${_(tokenInfo.text)}&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;`;&lt;br /&gt;
&lt;br /&gt;
    $(token.location).insertAdjacentHTML(&#039;beforeend&#039;,div);&lt;br /&gt;
    this.addTooltipHtml(token.key, this.getTooptipHtmlForToken(token));&lt;br /&gt;
    $(token.key).addEventListener(&amp;quot;onclick&amp;quot;, (ev) =&amp;gt; this.onCardClick(ev));&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you receive an update notification (assuming you get the same &amp;quot;token&amp;quot; object), you either create it if not exists or animate:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if ($(token.key)) {&lt;br /&gt;
  // exists&lt;br /&gt;
  $(token.key).dataset.state = token.state; // update state&lt;br /&gt;
  $(token.key).dataset.cost = token.cost; // update cost (discounted cost)&lt;br /&gt;
  this.moveCard(token.key, token.location); // animate to new location (custom functon), see [[BGA_Studio_Cookbook#Animation]]&lt;br /&gt;
} else {&lt;br /&gt;
  this.createCard(token);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Graphic Representation (.css)====&lt;br /&gt;
&lt;br /&gt;
For this html&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;game&amp;quot; class=&amp;quot;classic_deck&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div id=&amp;quot;hand&amp;quot; class=&amp;quot;hand&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;card_H_10&amp;quot; class=&amp;quot;card&amp;quot; data-suit=&#039;H&#039; data-rank=&amp;quot;10&amp;quot;&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;card_C_K&amp;quot; class=&amp;quot;card&amp;quot; data-suit=&#039;C&#039; data-rank=&amp;quot;K&amp;quot;&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is example css using sprite image of playing cards&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.card {&lt;br /&gt;
   background-image: url(&#039;https://x.boardgamearena.net/data/others/cards/FULLREZ_CARDS_ORIGINAL_NORMAL.jpg&#039;);   /* don&#039;t do full url in your game, copy this file inside img folder */&lt;br /&gt;
  &lt;br /&gt;
   background-size: 1500% auto;  /* this mean size of background is 15 times bigger than size of card, because its sprite */&lt;br /&gt;
   border-radius: 5%;&lt;br /&gt;
   width: 10em;&lt;br /&gt;
   height: 13.5em;&lt;br /&gt;
   box-shadow: 0.1em 0.1em 0.2em 0.1em #555;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
.card[data-rank=&amp;quot;10&amp;quot;] { /* 10 is column number 10 - 2 because we start from 0 and first card is sprite is 2. The multiplier is (15 - 1) is because we have 15 columns. -1 is because % in CSS is weird like that. */&lt;br /&gt;
   background-position-x: calc(100% / (15 - 1) * (10 - 2));&lt;br /&gt;
}&lt;br /&gt;
.card[data-rank=&amp;quot;K&amp;quot;] { /* King will be number 13 in rank */&lt;br /&gt;
   background-position-x: calc(100% / (15 - 1) * (13 - 2));&lt;br /&gt;
}&lt;br /&gt;
.card[data-suit=&amp;quot;H&amp;quot;] { /* Hears row position is 1 (because we count from 0). Multiplier (4 - 1) is because we have 4 rows and -1 is because % in CSS is weird like that. */&lt;br /&gt;
   background-position-y: calc(100% / (4 - 1) * (1));&lt;br /&gt;
}&lt;br /&gt;
.card[data-suit=&amp;quot;C&amp;quot;] { /* Clubs row position is 2 */&lt;br /&gt;
   background-position-y: calc(100% / (4 - 1) * (2));&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
See code at https://codepen.io/VictoriaLa/pen/mdMzRxa&lt;br /&gt;
&lt;br /&gt;
====Selection and Actions====&lt;br /&gt;
&lt;br /&gt;
Since it is a square its a lot easier to make a square selection highlight&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.card.active_slot  {&lt;br /&gt;
  box-shadow: 0px 0px 4px 4px blue;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Card Layouts====&lt;br /&gt;
There are two options - you use [[Stock]] component or don&#039;t, see [[Anti-Stock]] for details on how to do your own layouts.&lt;br /&gt;
&lt;br /&gt;
This is comprehensive example of various card layouts and animations&lt;br /&gt;
https://thoun.github.io/bga-cards/demo/index.html&lt;br /&gt;
&lt;br /&gt;
===Hex Tiles===&lt;br /&gt;
From data perspective hex tiles exactly the same as cards.&lt;br /&gt;
From visualization there is a small trick.&lt;br /&gt;
&lt;br /&gt;
CSS:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.hex {&lt;br /&gt;
  width: var(--hex-width);&lt;br /&gt;
  aspect-ratio: 1 / 1.1193;&lt;br /&gt;
  border-radius: 30%;&lt;br /&gt;
  background-color: yellow; /* this is just for demo, use proper .png file for this */&lt;br /&gt;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.hex.active_slot_simple {&lt;br /&gt;
  background-color: rgba(86, 207, 110, 0.4);&lt;br /&gt;
}&lt;br /&gt;
.hex.active_slot {&lt;br /&gt;
  filter: drop-shadow(0px 0px 10px blue);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tetris Tiles===&lt;br /&gt;
You can use clip-path for actual shape and svg path for outline&lt;br /&gt;
See example at https://codepen.io/VictoriaLa/pen/OJmoZGw&lt;br /&gt;
&lt;br /&gt;
===Track===&lt;br /&gt;
&lt;br /&gt;
Tracker can be represented as &amp;quot;resource&amp;quot; in database - in this case its just number, or similar to &amp;quot;meeple&amp;quot; in which case&lt;br /&gt;
the location will have the &amp;quot;number&amp;quot; associated with position on track&lt;br /&gt;
&lt;br /&gt;
In a simplified &amp;quot;tokens&amp;quot; database, it might be represented like this &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+token&lt;br /&gt;
!token_key&lt;br /&gt;
!token_location&lt;br /&gt;
!token_state&lt;br /&gt;
|-&lt;br /&gt;
|tracker_o&lt;br /&gt;
| scale_o_1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|tracker_t &lt;br /&gt;
| scale_t_10 &lt;br /&gt;
|0&lt;br /&gt;
|}&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
The tracker location in this case may have some properties in material file, for example to trigger game effect when we land on this spot&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &#039;scale_t&#039; =&amp;gt; [&lt;br /&gt;
    &#039;index_start&#039; =&amp;gt; 0,&lt;br /&gt;
    &#039;max&#039; =&amp;gt; 20,&lt;br /&gt;
    &#039;value_start&#039; =&amp;gt; -30,&lt;br /&gt;
    &#039;value_step&#039; =&amp;gt; 2,&lt;br /&gt;
    &#039;slot_type&#039; =&amp;gt; &#039;slot slot_t&#039;&lt;br /&gt;
  ],&lt;br /&gt;
  &#039;scale_t_10&#039; =&amp;gt; [&lt;br /&gt;
    &#039;r&#039; =&amp;gt; &#039;ocean&#039;,&lt;br /&gt;
    &#039;param&#039; =&amp;gt; &#039;t&#039;,&lt;br /&gt;
    &#039;tooltp&#039; =&amp;gt; clienttranslate(&#039;Place an ocean&#039;),&lt;br /&gt;
    &#039;value&#039; =&amp;gt; 0&lt;br /&gt;
  ],&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The track in this case can be generated as series of slots (create in js)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    for(let i=trackInfo.index_start,value = trackInfo.value_start;i&amp;lt;trackInfo.index_start+trackInfo.max;i++,value+=trackInfo.value_step) {&lt;br /&gt;
      $(trackInfo.key).insertAdjacentHTML(&#039;beforeend&#039;,`&amp;lt;div id=&amp;quot;${trackInfo.key}_${i}&amp;quot; class=&amp;quot;${trackInfo.slot_type} data-value=${value}&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;`);&lt;br /&gt;
      this.addTooltip(`${trackInfo.key}_${i}`, _(tokenInfo.tooltip), &amp;quot;&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then use regular move animation to move tracker into position on track.&lt;br /&gt;
&lt;br /&gt;
==Code Organization==&lt;br /&gt;
&lt;br /&gt;
===Including your own JavaScript module===&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js, modules/ggg_other.js&lt;br /&gt;
&lt;br /&gt;
*Create ggg_other.js in modules/ folder and sync&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;
], function( dojo, declare )&lt;br /&gt;
{&lt;br /&gt;
return declare(&amp;quot;bgagame.other&amp;quot;, null, { // null here if we don&#039;t want to inherit from anything&lt;br /&gt;
        constructor: function(){},&lt;br /&gt;
        mystuff: function(){},&lt;br /&gt;
    });&lt;br /&gt;
        &lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify ggg.js to include it&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  define([ &amp;quot;dojo&amp;quot;, &amp;quot;dojo/_base/declare&amp;quot;, &amp;quot;ebg/core/gamegui&amp;quot;, &amp;quot;ebg/counter&amp;quot;,&lt;br /&gt;
    g_gamethemeurl + &amp;quot;modules/ggg_other.js&amp;quot;     // load my own module!!!&lt;br /&gt;
  ], function(dojo,&lt;br /&gt;
        declare) {&lt;br /&gt;
     &lt;br /&gt;
&lt;br /&gt;
use it&lt;br /&gt;
&lt;br /&gt;
  foo = new bgagame.other();&lt;br /&gt;
&lt;br /&gt;
===Including your own JavaScript module (II) ===&lt;br /&gt;
&lt;br /&gt;
*Create ggg_other.js in modules/ folder and sync&lt;br /&gt;
&lt;br /&gt;
  define([], function () {&lt;br /&gt;
    return &amp;quot;value&amp;quot;;&lt;br /&gt;
  }); &lt;br /&gt;
&lt;br /&gt;
* Modify ggg.js to include it&lt;br /&gt;
&lt;br /&gt;
  define([ &lt;br /&gt;
    &amp;quot;dojo&amp;quot;, &lt;br /&gt;
    &amp;quot;dojo/_base/declare&amp;quot;, &lt;br /&gt;
    &amp;quot;bgagame/modules/ggg_other&amp;quot;, &lt;br /&gt;
    &amp;quot;ebg/core/gamegui&amp;quot;, &lt;br /&gt;
    &amp;quot;ebg/counter&amp;quot;&lt;br /&gt;
  ], function(dojo, declare, other) {&lt;br /&gt;
  &lt;br /&gt;
  });&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
This is maybe a little bit more the idea of the AMD Loader than the first option, although the first option should work as well.&lt;br /&gt;
&lt;br /&gt;
A little explanation to this:&lt;br /&gt;
The define function loads all the modules listed in the array and calls the following function with these loaded modules as parameters.&lt;br /&gt;
By putting your module at the third position in the array it is passed as the third parameter to the function. Be aware that the modules are resolved by position only, not by name. So you can load the module &#039;&#039;&#039;ggg_other&#039;&#039;&#039; and pass it as a parameter with the name &#039;&#039;&#039;other&#039;&#039;&#039;. &#039;&#039;&#039;gamegui&#039;&#039;&#039; and &#039;&#039;&#039;counter&#039;&#039;&#039; are passed in as well, but when the parameters are not defined they are just skipped. Because these modules put their content into the global scope it does not matter and you can use them from there.&lt;br /&gt;
&lt;br /&gt;
In the example above the string &amp;quot;value&amp;quot; is passed for the parameter &#039;&#039;&#039;other&#039;&#039;&#039;, but the function in your module can return whatever you want. It can be an object, an array, something you declared with dojo.declare, you can return even functions. &lt;br /&gt;
Your module can load other modules. Just put them in the array at the beginning and pass them as parameters to your function.&lt;br /&gt;
The advantage of passing the values as parameter is that you do not need to put these values in the global scope, so they can&#039;t be collisions with values defined in other scripts or the BGA Framework.&lt;br /&gt;
&lt;br /&gt;
The dojo toolkit provides good documentation to all of its components, the complete documentation for the AMD-Loader is here:&lt;br /&gt;
https://dojotoolkit.org/documentation/tutorials/1.10/modules/index.html It should be still correct, even as it seems to be only for version 1.10&lt;br /&gt;
&lt;br /&gt;
===Including your own PHP module===&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.game.php, modules/ggg_other.php&lt;br /&gt;
&lt;br /&gt;
*Create ggg_other.php in modules/ folder and sync&lt;br /&gt;
*Modify ggg.game.php to include it&lt;br /&gt;
&lt;br /&gt;
 require_once (&#039;modules/ggg_other.php&#039;);&lt;br /&gt;
&lt;br /&gt;
===Creating a test class to run PHP locally ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.game.php, stubs&lt;br /&gt;
For this you need stubs of other method you can use this for example&lt;br /&gt;
https://github.com/elaskavaia/bga-sharedcode/raw/master/misc/module/table/table.game.php&lt;br /&gt;
&lt;br /&gt;
Create another php files, i.e ggg_test.php&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
define(&amp;quot;APP_GAMEMODULE_PATH&amp;quot;, &amp;quot;misc/&amp;quot;); // include path to stubs, which defines &amp;quot;table.game.php&amp;quot; and other classes&lt;br /&gt;
require_once (&#039;eminentdomaine.game.php&#039;);&lt;br /&gt;
&lt;br /&gt;
class MyGameTest1 extends MyGame { // this is your game class defined in ggg.game.php&lt;br /&gt;
    function __construct() {&lt;br /&gt;
        parent::__construct();&lt;br /&gt;
        include &#039;../material.inc.php&#039;;// this is how this normally included, from constructor&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    // override/stub methods here that access db and stuff&lt;br /&gt;
    function getGameStateValue($var) {&lt;br /&gt;
        if ($var == &#039;round&#039;)&lt;br /&gt;
            return 3;&lt;br /&gt;
        return 0;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
$x = new MyGameTest1(); // instantiate your class&lt;br /&gt;
$p = $x-&amp;gt;getGameProgression(); // call one of the methods to test&lt;br /&gt;
if ($p != 50)&lt;br /&gt;
    echo &amp;quot;Test1: FAILED&amp;quot;;&lt;br /&gt;
else&lt;br /&gt;
    echo &amp;quot;Test1: PASSED&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run from command line like&lt;br /&gt;
 php8.2 ggg_test.php&lt;br /&gt;
&lt;br /&gt;
If you do it this way - you can also use local php debugger (i.e. integrated with IDE or command line).&lt;br /&gt;
&lt;br /&gt;
===Avoiding code in dojo declare style===&lt;br /&gt;
Dojo class declarations are rather bizzare and do not work with most IDEs.&lt;br /&gt;
If you want to write in plain JS with classes, you can stub all the dojo define/declare stuff&lt;br /&gt;
and hook your class into that, so the classes are outside of this mess.&lt;br /&gt;
&lt;br /&gt;
NOTE: this technique is for experienced developers, do not try it if you do not understand&lt;br /&gt;
the consequences.&lt;br /&gt;
&lt;br /&gt;
This is complete example of game .js class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  // Testla is game name is has to be changed&lt;br /&gt;
class Testla {&lt;br /&gt;
	constructor(game) {&lt;br /&gt;
		console.log(&#039;game constructor&#039;);&lt;br /&gt;
		this.game = game;&lt;br /&gt;
		this.varfoo = new MyFoo(); // this example of class from custom module&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	setup(gamedatas) {&lt;br /&gt;
		console.log(&amp;quot;Starting game setup&amp;quot;, this.varfoo);&lt;br /&gt;
		this.gamedatas = gamedatas;&lt;br /&gt;
		this.dojo.create(&amp;quot;div&amp;quot;, { class: &#039;whiteblock&#039;, innerHTML: _(&amp;quot;hello&amp;quot;) }, &#039;thething&#039;);&lt;br /&gt;
		console.log(&amp;quot;Ending game setup&amp;quot;);&lt;br /&gt;
	};&lt;br /&gt;
	onEnteringState(stateName, args) {&lt;br /&gt;
		console.log(&#039;onEnteringState : &#039; + stateName, args);&lt;br /&gt;
		this.game.addActionButton(&#039;b1&#039;,_(&#039;Click Me&#039;), (e)=&amp;gt;this.onButtonClick(e));&lt;br /&gt;
	};&lt;br /&gt;
	onLeavingState(stateName) {&lt;br /&gt;
		console.log(&#039;onLeavingState : &#039; + stateName, args);&lt;br /&gt;
	};&lt;br /&gt;
	onUpdateActionButtons(stateName, args) {&lt;br /&gt;
		console.log(&#039;onUpdateActionButtons : &#039; + stateName, args);&lt;br /&gt;
	};&lt;br /&gt;
	onButtonClick(event) {&lt;br /&gt;
		console.log(&#039;onButtonClick&#039;,event);&lt;br /&gt;
	};&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&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;
	g_gamethemeurl + &#039;/modules/foo.js&#039; // custom module if needed&lt;br /&gt;
],&lt;br /&gt;
	function(dojo, declare) {&lt;br /&gt;
                // testla is game name is has to be changed&lt;br /&gt;
		return declare(&amp;quot;bgagame.testla&amp;quot;, ebg.core.gamegui, {&lt;br /&gt;
			constructor: function() {&lt;br /&gt;
				this.xapp = new Testla(this);&lt;br /&gt;
				this.xapp.dojo = dojo;&lt;br /&gt;
			},&lt;br /&gt;
			setup: function(gamedatas) {&lt;br /&gt;
				this.xapp.setup(gamedatas);&lt;br /&gt;
			},&lt;br /&gt;
			onEnteringState: function(stateName, args) {&lt;br /&gt;
				this.xapp.onEnteringState(stateName, args?.args);&lt;br /&gt;
			},&lt;br /&gt;
			onLeavingState: function(stateName) {&lt;br /&gt;
				this.xapp.onLeavingState(stateName, args);&lt;br /&gt;
			},&lt;br /&gt;
			onUpdateActionButtons: function(stateName, args) {&lt;br /&gt;
				this.xapp.onUpdateActionButtons(stateName, args);&lt;br /&gt;
			},&lt;br /&gt;
		});&lt;br /&gt;
	});&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===More readable JS: onEnteringState===&lt;br /&gt;
&lt;br /&gt;
If you have a lot of states in onEnteringState or onUpdateActionButtons and friends - it becomes rather wild, you can do this trick to call some methods dynamically.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     onEnteringState: function(stateName, args) {&lt;br /&gt;
       console.log(&#039;Entering state: &#039; + stateName, args);&lt;br /&gt;
&lt;br /&gt;
       // Call appropriate method&lt;br /&gt;
       var methodName = &amp;quot;onEnteringState_&amp;quot; + stateName;&lt;br /&gt;
       if (this[methodName] !== undefined) {             &lt;br /&gt;
          console.log(&#039;Calling &#039; + methodName, args.args);&lt;br /&gt;
          this[methodName](args.args);&lt;br /&gt;
       }&lt;br /&gt;
     },&lt;br /&gt;
&lt;br /&gt;
     onEnteringState_playerTurn: function(args) { // this is args directly, not args.args &lt;br /&gt;
         // process&lt;br /&gt;
     },&lt;br /&gt;
&lt;br /&gt;
     onEnteringState_playerSomethingElse: function(args) { &lt;br /&gt;
         // process&lt;br /&gt;
     },&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: since its ignores the undefined functions you don&#039;t have define function for each state, but on the other hand you cannot make typos.&lt;br /&gt;
Same applies to onUpdateActionButtons except you pass &#039;args&#039; to method, not args.args, and for onLeavingState where you don&#039;t pass anything.&lt;br /&gt;
&lt;br /&gt;
=== Frameworks and Preprocessors=== &lt;br /&gt;
&lt;br /&gt;
*[[BGA Type Safe Template]] - Setting up a fully typed project using typescript and more!&lt;br /&gt;
*[[Using Vue]] - work-in-progress guide on using the modern framework Vue.js to create a game&lt;br /&gt;
* [[Using Typescript and Scss]] - How to auto-build Typescript and SCSS files to make your code cleaner&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===PHP Migration===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; */php, modules/*.php&lt;br /&gt;
&lt;br /&gt;
BGA recently migrated to from 7.4 to 8.2.&lt;br /&gt;
New php has new rules and deprecations.&lt;br /&gt;
&lt;br /&gt;
There is a tool that can help you do the migration automation, which is php module called rector https://getrector.com/.&lt;br /&gt;
Below is the recipe that converts variables in strings like ${var} (which is deprecated) to {$var}.&lt;br /&gt;
&lt;br /&gt;
1. Install the module&lt;br /&gt;
 composer global require --dev rector/rector&lt;br /&gt;
2. Go to your project directory, commit your code first before this!&lt;br /&gt;
&lt;br /&gt;
3. Create a rector.php file on top level with the following content:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
use Rector\Config\RectorConfig;&lt;br /&gt;
use Rector\Php82\Rector\Encapsed\VariableInStringInterpolationFixerRector;&lt;br /&gt;
&lt;br /&gt;
return RectorConfig::configure()&lt;br /&gt;
    -&amp;gt;withPaths([&lt;br /&gt;
        __DIR__ &lt;br /&gt;
    ])&lt;br /&gt;
    // A. whole set&lt;br /&gt;
    //-&amp;gt;withPreparedSets(typeDeclarations: true)&lt;br /&gt;
    // B. or few rules&lt;br /&gt;
    -&amp;gt;withRules([&lt;br /&gt;
        VariableInStringInterpolationFixerRector::class&lt;br /&gt;
    ]);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
4. Dry run (mine is on linux, not sure where global install on windows)&lt;br /&gt;
  ~/.config/composer/vendor/bin/rector process --dry-run&lt;br /&gt;
&lt;br /&gt;
5. If happy re-run without --dry-run&lt;br /&gt;
&lt;br /&gt;
6. Can remove rector.php now (or can do different rules)&lt;br /&gt;
&lt;br /&gt;
==Backend==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Assigning Player Order===&lt;br /&gt;
Normally when game starts there is &amp;quot;natural&amp;quot; player order assigned randomly.&lt;br /&gt;
&lt;br /&gt;
If you want to deliberatly assign player order at the start of the game (for example, in a game with teams options), you can do so by retrieving the initialization-only player attribute &#039;&#039;&#039;player_table_order&#039;&#039;&#039; and using it to assign values to &#039;&#039;&#039;player_no&#039;&#039;&#039; (which is normally assigned at the start of a game in the order in which players come to the table). (See [https://en.doc.boardgamearena.com/Game_database_model:_dbmodel.sql#The_player_table Game database model] for more details.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 1em; background: #FFCDD2; color: #B71C1C&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;WARNING:&amp;lt;/b&amp;gt; To prevent unfair advantage (e.g. collusion), the random order must be the default option and &amp;lt;b&amp;gt;non-random options should be limited to friendly mode.&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
                // Retrieve inital player order ([0=&amp;gt;playerId1, 1=&amp;gt;playerId2, ...])&lt;br /&gt;
		$playerInitialOrder = [];&lt;br /&gt;
		foreach ($players as $playerId =&amp;gt; $player) {&lt;br /&gt;
			$playerInitialOrder[$player[&#039;player_table_order&#039;]] = $playerId;&lt;br /&gt;
		}&lt;br /&gt;
		ksort($playerInitialOrder);&lt;br /&gt;
		$playerInitialOrder = array_flip(array_values($playerInitialOrder));&lt;br /&gt;
&lt;br /&gt;
		// Player order based on &#039;playerTeams&#039; option&lt;br /&gt;
		$playerOrder = [0, 1, 2, 3];&lt;br /&gt;
		switch ($this-&amp;gt;getGameStateValue(&#039;playerTeams&#039;)) {&lt;br /&gt;
			case $this-&amp;gt;TEAM_1_2:&lt;br /&gt;
				$playerOrder = [0, 2, 1, 3];&lt;br /&gt;
				break;&lt;br /&gt;
			case $this-&amp;gt;TEAM_1_4:&lt;br /&gt;
				$playerOrder = [0, 1, 3, 2];&lt;br /&gt;
				break;&lt;br /&gt;
			case $this-&amp;gt;TEAM_RANDOM:&lt;br /&gt;
				shuffle($playerOrder);&lt;br /&gt;
				break;&lt;br /&gt;
			default:&lt;br /&gt;
			case $this-&amp;gt;TEAM_1_3:&lt;br /&gt;
				// Default order&lt;br /&gt;
				break;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
                // Create players&lt;br /&gt;
		// Note: if you added some extra field on &amp;quot;player&amp;quot; table in the database (dbmodel.sql), you can initialize it there.&lt;br /&gt;
		$sql =&lt;br /&gt;
			&#039;INSERT INTO player (player_id, player_color, player_canal, player_name, player_avatar, player_no) VALUES &#039;;&lt;br /&gt;
		$values = [];&lt;br /&gt;
&lt;br /&gt;
		foreach ($players as $playerId =&amp;gt; $player) {&lt;br /&gt;
			$color = array_shift($default_colors);&lt;br /&gt;
			$values[] =&lt;br /&gt;
				&amp;quot;(&#039;&amp;quot; .&lt;br /&gt;
				$playerId .&lt;br /&gt;
				&amp;quot;&#039;,&#039;$color&#039;,&#039;&amp;quot; .&lt;br /&gt;
				$player[&#039;player_canal&#039;] .&lt;br /&gt;
				&amp;quot;&#039;,&#039;&amp;quot; .&lt;br /&gt;
				addslashes($player[&#039;player_name&#039;]) .&lt;br /&gt;
				&amp;quot;&#039;,&#039;&amp;quot; .&lt;br /&gt;
				addslashes($player[&#039;player_avatar&#039;]) .&lt;br /&gt;
				&amp;quot;&#039;,&#039;&amp;quot; .&lt;br /&gt;
				$playerOrder[$playerInitialOrder[$playerId]] .&lt;br /&gt;
				&amp;quot;&#039;)&amp;quot;;&lt;br /&gt;
		}&lt;br /&gt;
		$sql .= implode(&#039;,&#039;, $values);&lt;br /&gt;
		$this-&amp;gt;DbQuery($sql);&lt;br /&gt;
		$this-&amp;gt;reattributeColorsBasedOnPreferences(&lt;br /&gt;
			$players,&lt;br /&gt;
			$gameinfos[&#039;player_colors&#039;]&lt;br /&gt;
		);&lt;br /&gt;
		$this-&amp;gt;reloadPlayersBasicInfos();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Send different notifications to active player vs everybody else===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js&lt;br /&gt;
&lt;br /&gt;
Hack alert. This is a hack. We were hoping for proper solution by bga framework.&lt;br /&gt;
&lt;br /&gt;
This will allow you to send notification with two message one for specific player and one for everybody else including spectators.&lt;br /&gt;
Note that this does not split the data - all data must be shared.&lt;br /&gt;
&lt;br /&gt;
Add this to .js file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bgaFormatText: function(log, args) {&lt;br /&gt;
   if (typeof args.log_others != &#039;undefined&#039; &amp;amp;&amp;amp; typeof args.player_id != &#039;undefined&#039; &amp;amp;&amp;amp; this.player_id != args.player_id) {&lt;br /&gt;
      log = args.log_others;&lt;br /&gt;
   }&lt;br /&gt;
   return { log, args }; // you must return this so the framework can handle the default formatting&lt;br /&gt;
},&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example of usage (from eminentdomain)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    $this-&amp;gt;notify-&amp;gt;all(&#039;tokenMoved&#039;, &lt;br /&gt;
             clienttranslate(&#039;${player_name} adds +2 Colonies to ${place_name}&#039;), // notification with show for player with player_id&lt;br /&gt;
             [&#039;player_id&#039;=&amp;gt;$player_id, // this is mandatory&lt;br /&gt;
             &#039;log_others&#039;=&amp;gt;clienttranslate(&#039;${player_name} adds +2 Colonies to an unknown planet&#039;), // notification will show for others&lt;br /&gt;
              ...&lt;br /&gt;
             ]);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Send transient notifications without incrementing move ID===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.php&lt;br /&gt;
&lt;br /&gt;
Hack alert. This is a hack.&lt;br /&gt;
&lt;br /&gt;
Use this if you need to send some transient notification that should not create a new move ID. The notification should be idempotent -- it should have no practical effect on the game state and would be &#039;&#039;&#039;safe to drop&#039;&#039;&#039; (e.g., it would not matter if a player never received this notification). For example, in a co-op game you want all players to see a real-time preview of some action, before the active player commits their turn.&lt;br /&gt;
&lt;br /&gt;
Doing this mainly affects the instant replay &amp;amp; archive modes. During replay, the BGA framework automatically inserts a 1.5-second pause between each &amp;quot;move&amp;quot;. With this hack, your transient notifications are not considered to be a &amp;quot;move&amp;quot;, so no pause gets added.&lt;br /&gt;
&lt;br /&gt;
;In ggg.php&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$this-&amp;gt;not_a_move_notification = true; // note: do not increase the move counter&lt;br /&gt;
$this-&amp;gt;notify-&amp;gt;all(&#039;cardsPreview&#039;, &#039;&#039;, $args);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: you cannot have code that send notification or even changes state after this, and you cannot reset this variable back either because it only takes effect when you exit action handling function&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Assorted Stuff==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Out-of-turn actions: Un-pass===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js, ggg.game.php, ggg.action.php, states.inc.php&lt;br /&gt;
&lt;br /&gt;
In multiplayer game sometimes players passes but than they think more and want to un-Pass and redo their choice. &lt;br /&gt;
To re-active a player who passes some trickery required.&lt;br /&gt;
&lt;br /&gt;
Define a special action that does that and hook it up.&lt;br /&gt;
&lt;br /&gt;
In states.inc.php add an action to MULTIPLE_ACTIVE_PLAYER state to &amp;quot;unpass&amp;quot;, lets call it &amp;quot;actionCancel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In ggg.action.php add action hook&lt;br /&gt;
    public function actionCancel() {&lt;br /&gt;
        $this-&amp;gt;setAjaxMode();&lt;br /&gt;
        $this-&amp;gt;game-&amp;gt;actionCancel();&lt;br /&gt;
        $this-&amp;gt;ajaxResponse();&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
In ggg.game.php add action handler&lt;br /&gt;
    function actionCancel() {&lt;br /&gt;
        $this-&amp;gt;gamestate-&amp;gt;checkPossibleAction(&#039;actionCancel&#039;);&lt;br /&gt;
        $this-&amp;gt;gamestate-&amp;gt;setPlayersMultiactive(array ($this-&amp;gt;getCurrentPlayerId() ), &#039;error&#039;, false);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
Finally to call this in client ggg.js you would do something like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 onUpdateActionButtons:  function(stateName, args) {&lt;br /&gt;
   if (this.isCurrentPlayerActive()) { &lt;br /&gt;
     // ...&lt;br /&gt;
   } else if (!this.isSpectator) { // player is NOT active but not spectator&lt;br /&gt;
       switch (stateName) {&lt;br /&gt;
          case &#039;playerTurnMultiPlayerState&#039;:&lt;br /&gt;
		this.addActionButton(&#039;button_unpass&#039;, _(&#039;Oh no!&#039;), &#039;onUnpass&#039;);&lt;br /&gt;
		break;&lt;br /&gt;
	}&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
				&lt;br /&gt;
 onUnpass: function(e) {&lt;br /&gt;
    this.bgaPerformAction(&amp;quot;actionCancel&amp;quot;, null, { checkAction: false }); // no checkAction!&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Although be careful that if the turn comes back to the player while he is about to click cancel, the action buttons will be updated and the player will misclick which can be quite frustrating. To avoid this, move the cancel button to another position, like to the left of pagemaintitletext:&lt;br /&gt;
  dojo.place(&#039;button_unpass&#039;, &#039;pagemaintitletext&#039;, &#039;before&#039;);&lt;br /&gt;
Being out of the generalactions div, it won&#039;t be automatically destroyed like normal buttons, so you&#039;ll have to handle that yourself in onLeavingState. You might also want to change the button color to red (blue buttons for active player only, red buttons also for inactive players?)&lt;br /&gt;
&lt;br /&gt;
Note: same technique can be used to do other out-of-turn actions, such as re-arranging cards in hand, exchanging resources, etc (i.e. if permitted by rules, such as &amp;quot;at any time player can...&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===Multi Step Interactions: Select Worker/Place Worker - Using Selection ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js&lt;br /&gt;
&lt;br /&gt;
Simple way to implement something like that without extra states is to use &amp;quot;selection&amp;quot; mechanism. When user click on worker add some sort of class into that element i.e. &#039;selected&#039; (which also have to have some indication by css i.e. outline).&lt;br /&gt;
&lt;br /&gt;
Than user can click on placement zone, you can use dojo.query for &amp;quot;selected&amp;quot; element and use it along with zone id to send data to server. If proper worker is not selected yet can give a error message using this.showMessage(...) function.&lt;br /&gt;
&lt;br /&gt;
Extra code required to properly cleanup selection between states.&lt;br /&gt;
Also when you do that sometimes you want to change the state prompt, see below &#039;Change state prompt&#039;&lt;br /&gt;
&lt;br /&gt;
===Multi Step Interactions: Select Worker/Place Worker - Using Client States ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ingredients:&#039;&#039;&#039; ggg.js&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think its documented feature but there is a way to do client-only states, which is absolutely wonderful for few reasons&lt;br /&gt;
*When player interaction is two step process, such as select worker, place worker, or place worker, pick one of two resources of your choice&lt;br /&gt;
* When multi-step process can result of impossible situation and has to be undone (by rules)&lt;br /&gt;
*When multi-step process is triggered from multiple states (such as you can do same thing as activated card action, pass action or main action)&lt;br /&gt;
&lt;br /&gt;
So lets do Select Worker/Place Worker&lt;br /&gt;
&lt;br /&gt;
Define your server state as usual, i.e. playerMainTurn -&amp;gt; &amp;quot;You must pick up a worker&amp;quot;.&lt;br /&gt;
Now define a client state, we only need &amp;quot;name&amp;quot; and &amp;quot;descriptionmyturn&amp;quot;, lets say &amp;quot;client_playerPicksLocation&amp;quot;. Always prefix names of client state with &amp;quot;client_&amp;quot; to avoid confusion. Now we have to do the following:&lt;br /&gt;
*Have a handler for onUpdateActionButtons for playerMainTurn to activate all possible workers he can pick&lt;br /&gt;
*When player clicks workers, remember the worker in one of the members of the main class, I usually use one called this.clientStateArgs.&lt;br /&gt;
*Transition to new client state&lt;br /&gt;
  onWorker: function(e) {&lt;br /&gt;
      var id = event.currentTarget.id;&lt;br /&gt;
      dojo.stopEvent(event);&lt;br /&gt;
      ... // do validity checks&lt;br /&gt;
      this.clientStateArgs.worker_id = id;&lt;br /&gt;
      this.setClientState(&amp;quot;client_playerPicksLocation&amp;quot;, {&lt;br /&gt;
                                descriptionmyturn : _(&amp;quot;${you} must select location&amp;quot;),&lt;br /&gt;
                            });&lt;br /&gt;
   }&lt;br /&gt;
* Have a handler for onUpdateActionButtons for client_playerPicksLocation to activate all possible locations this worker can go AND add Cancel button (see below)&lt;br /&gt;
*Have a location handler which will eventually send a server request, using stored this.clientStateArgs.worker_id as worker id&lt;br /&gt;
*The cancel button should call a method to restore server state, also if you doing it for more than one state you can add this universally using this.on_client_state check&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        if (this.isCurrentPlayerActive()) {&lt;br /&gt;
          if (this.on_client_state &amp;amp;&amp;amp; !$(&#039;button_cancel&#039;)) {&lt;br /&gt;
               this.addActionButton(&#039;button_cancel&#039;, _(&#039;Cancel&#039;), dojo.hitch(this, function() {&lt;br /&gt;
                                             this.restoreServerGameState();&lt;br /&gt;
               }));&lt;br /&gt;
          }&lt;br /&gt;
        } &lt;br /&gt;
Note: usually I call my own function call this.cancelLocalStateEffects() which will do more stuff first then call restoreServerGameState(), same function is usually needs to be called when server request has failed (i.e. invalid move)&lt;br /&gt;
&lt;br /&gt;
Note: If you need more than 2 steps, you may have to do client side animation to reflect the new state, which gets trickier because you have to undo that also on cancellation.&lt;br /&gt;
&lt;br /&gt;
Code is available here [https://github.com/elaskavaia/bga-sharedcode/blob/master/sharedcode.js sharedcode.js] (its using playerTurnPlayCubes and client_selectCubeLocation).&lt;br /&gt;
&lt;br /&gt;
===Action Stack - Using Client States===&lt;br /&gt;
&lt;br /&gt;
Action stack required where game is very complex and use triggered effects that can &amp;quot;stack&amp;quot;. It not always actual stack, it can be queue or random access.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
*Magic the Gathering - classic card game where effects go on Stack, that allows to counter spell and counter spell of counter spell (not on bga - it just example of mechanics)&lt;br /&gt;
*Ultimate Railroads - action taking game where effects can be executed in any order&lt;br /&gt;
*Lewis and Clark - card game where actions executed as queue&lt;br /&gt;
&lt;br /&gt;
There is two ways of implementing it - on the server or the client.&lt;br /&gt;
For the server see article below.&lt;br /&gt;
The requirement for client side stack implementation is - all action can be undone, which means&lt;br /&gt;
* No dice rolls&lt;br /&gt;
* No card drawn&lt;br /&gt;
* No other players interaction&lt;br /&gt;
&lt;br /&gt;
No snippets are here, as this will be too complex but basically flow is:&lt;br /&gt;
*You have a action/effect stack (queue/list) as js object attached to &amp;quot;this&amp;quot;, i.e. this.unprocessed_actions&lt;br /&gt;
*When player plays a card, worker, etc, you read the effect of that card from the material file (client copy), and place into stack&lt;br /&gt;
*Then we call dispatch method which pulls the next action from the stack and change client state accordinly, i.e. this.setClientState(&amp;quot;client_playerGainsCubes&amp;quot;)&lt;br /&gt;
* When players acts on it - the action is removed from the stack and added to &amp;quot;server action arguments&amp;quot; list, this is another object which be used to send ajax call, i.e. this.clientStateArgs&lt;br /&gt;
*If nothing left in stack we can submit the ajax call assembling parameters from collected arguments (that can include action name)&lt;br /&gt;
*This method allows cheap undo - by restoring server state you will wipe out all user actions (but if you need intermediate aninmation you have to handle it yourself)&lt;br /&gt;
&lt;br /&gt;
Code can be found in Ultimate Railroads game (but it is random access list - so it a bit complex) and Lewis and Clark (complexity - user can always deny part of any effect)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Action Stack - Using Server States===&lt;br /&gt;
&lt;br /&gt;
See definition of Action Stack above.&lt;br /&gt;
&lt;br /&gt;
To implement you usually need another db table that has the following fields: index of effect - which is used for sorted access, type - which is essense of the effect (i.e. collect resource), some extra arguments (i.e. resource type and resource count), and usually owner of the effect (i.e. player id)&lt;br /&gt;
The flow is:&lt;br /&gt;
* There is some initial player state, where player can play card for example&lt;br /&gt;
*Player main action - pushes the card effect on stack, which also can cause triggered effects which also go on stack&lt;br /&gt;
*After action processing is finished switch to game state which is &amp;quot;dispatcher&amp;quot;&lt;br /&gt;
*Dispatcher pulls the top effect (whatever definition of the top is), changes the active player and changes the state to appropriate player state to collect response. The &amp;quot;top&amp;quot; can be choice of multiple actions, in this case player has to chose one before resolving the effect.&lt;br /&gt;
*Player state knows about the stack and pulls arguments (argX) from the effect arguments of the db&lt;br /&gt;
*Player action should clear up the top effect, and can possibly add more effects, then switch to &amp;quot;dispatcher&amp;quot; state again&lt;br /&gt;
*If stack is empty, dispatcher can either pick next player itself or use another game state which responsible for picking next player&lt;br /&gt;
&lt;br /&gt;
Code can be found in Tapestry and Terraforming Mars.&lt;br /&gt;
===Custom error/exception handling in JavaScript === &lt;br /&gt;
&lt;br /&gt;
;In ggg.php&lt;br /&gt;
Throw \BgaUserException with some easy-to-identify prefix such as &amp;quot;!!!&amp;quot; and a custom error code. DO NOT TRANSLATE this message text. The exception will rollback database transaction and cancel all changes (including any notifications).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    function foo(bool $didConfirm = false): void&lt;br /&gt;
    {&lt;br /&gt;
        // do processing for the user&#039;s move&lt;br /&gt;
        // afterwards, you determine this move will end the game&lt;br /&gt;
        // so you want to rollback the transaction and require the user to confirm the move first&lt;br /&gt;
&lt;br /&gt;
        if ($gameIsEnding &amp;amp;&amp;amp; !$didConfirm) {&lt;br /&gt;
            throw new \BgaUserException(&#039;!!!endGameConfirm&#039;, 9001);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;In ggg.js&lt;br /&gt;
Override framework function showMessage to suppress the red banner message and gamelog message when you detect the &amp;quot;!!!&amp;quot; prefix&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    /* @Override */&lt;br /&gt;
    showMessage: function (msg, type) {&lt;br /&gt;
      if (type == &amp;quot;error&amp;quot; &amp;amp;&amp;amp; msg &amp;amp;&amp;amp; msg.startsWith(&amp;quot;!!!&amp;quot;)) {&lt;br /&gt;
        return; // suppress red banner and gamelog message&lt;br /&gt;
      }&lt;br /&gt;
      this.inherited(arguments);&lt;br /&gt;
    },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Deal with the error in your callback:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    fooAction: function (didConfirm) {&lt;br /&gt;
      var data = {&lt;br /&gt;
        foo: &amp;quot;bar&amp;quot;,&lt;br /&gt;
        didConfirm: !!didConfirm,&lt;br /&gt;
      };&lt;br /&gt;
      this.bgaPerformAction(&amp;quot;fooAction&amp;quot;, data).catch((error, errorMsg) =&amp;gt; {&lt;br /&gt;
        if (error &amp;amp;&amp;amp; errorMsg == &amp;quot;!!!endGameConfirm&amp;quot;) {&lt;br /&gt;
          // your custom error handling goes here&lt;br /&gt;
          // for example, show a confirmation dialog and repeat the action with additional param&lt;br /&gt;
          this.confirmationDialog(&lt;br /&gt;
            _(&amp;quot;Doing the foo action now will end the game&amp;quot;),&lt;br /&gt;
            () =&amp;gt; this.fooAction(true)&lt;br /&gt;
          );&lt;br /&gt;
        }&lt;br /&gt;
      });&lt;br /&gt;
    },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For custom global error handling, you could modify ajaxcallwrapper:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  ajaxcallwrapper: function (action, args, handler) {&lt;br /&gt;
    if (!args) args = {};&lt;br /&gt;
    args.lock = true;&lt;br /&gt;
    args.version = this.gamedatas.version;&lt;br /&gt;
    if (this.checkAction(action)) {&lt;br /&gt;
      this.bgaPerformAction(&lt;br /&gt;
        action,&lt;br /&gt;
        args&lt;br /&gt;
      ).catch((error, errorMsg, errorCode) =&amp;gt; {&lt;br /&gt;
          if (error &amp;amp;&amp;amp; errorMsg == &amp;quot;!!!checkVersion&amp;quot;) {&lt;br /&gt;
            this.infoDialog(&lt;br /&gt;
              _(&amp;quot;A new version of this game is now available&amp;quot;),&lt;br /&gt;
              _(&amp;quot;Reload Required&amp;quot;),&lt;br /&gt;
              () =&amp;gt; {&lt;br /&gt;
                window.location.reload();&lt;br /&gt;
              },&lt;br /&gt;
              true&lt;br /&gt;
            );&lt;br /&gt;
          } else {&lt;br /&gt;
            if (handler) handler(error, errorMsg, errorCode);&lt;br /&gt;
          }&lt;br /&gt;
        }&lt;br /&gt;
      );&lt;br /&gt;
    }&lt;br /&gt;
  },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Force players to refresh after new deploy===&lt;br /&gt;
&lt;br /&gt;
When you deploy a new version of your game, the PHP backend code is immediately updated but the JavaScript/HTML/CSS frontend code *does not update* for active players until they manually refresh the page (F5) in their browser. Obviously this is not ideal. In the best case, real-time tables don&#039;t see your shiny new enhancements. In the worst case, your old JS code isn&#039;t compatible with your new PHP code and the game breaks in strange ways (any bug reports filed will be false positives and unable to reproduce). To avoid any problems, you should force all players to immediately reload the page following a new deploy.&lt;br /&gt;
&lt;br /&gt;
By throwing a &amp;quot;visible&amp;quot; exception (simplest solution), you&#039;ll get something like this which instructs the user to reload:&lt;br /&gt;
&lt;br /&gt;
[[File:Force-refresh.png|950x950px]]&lt;br /&gt;
&lt;br /&gt;
Or, if you combine this technique with the above custom error handling technique, you could do something a bit nicer. You could show a dialog box and automatically refresh the page when the user clicks &amp;quot;OK&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
[[File:Reload-required.png|500x500px]]&lt;br /&gt;
; In ggg.php&lt;br /&gt;
Transmit the server version number in &amp;lt;code&amp;gt;getAllDatas()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    protected function getAllDatas(): array&lt;br /&gt;
    {&lt;br /&gt;
        $players = $this-&amp;gt;getCollectionFromDb(&amp;quot;SELECT player_id id, player_score score FROM player&amp;quot;);&lt;br /&gt;
        return [&lt;br /&gt;
            &#039;players&#039; =&amp;gt; $players,&lt;br /&gt;
            &#039;version&#039; =&amp;gt; intval($this-&amp;gt;gamestate-&amp;gt;table_globals[300]), // &amp;lt;-- ADD HERE&lt;br /&gt;
            ...&lt;br /&gt;
        ];&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a helper function to fail if the client and server versions mismatch. Note the version check uses &amp;lt;code&amp;gt;!=&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;&amp;amp;lt;&amp;lt;/code&amp;gt; so it can support rollback to a previous deploy as well. ;-)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    public function checkVersion(int $clientVersion): void&lt;br /&gt;
    {&lt;br /&gt;
        if ($clientVersion != intval($this-&amp;gt;gamestate-&amp;gt;table_globals[300])) {&lt;br /&gt;
            // Simplest way is to throw a &amp;quot;visible&amp;quot; exception&lt;br /&gt;
            // It&#039;s ugly but comes with a &amp;quot;click here&amp;quot; link to refresh&lt;br /&gt;
            throw new BgaVisibleSystemException($this-&amp;gt;_(&amp;quot;A new version of this game is now available. Please reload the page (F5).&amp;quot;));&lt;br /&gt;
&lt;br /&gt;
            // For something prettier, throw a &amp;quot;user&amp;quot; exception and handle in JS&lt;br /&gt;
            // (see BGA cookbook section above on custom error handling)&lt;br /&gt;
            throw new \BgaUserException(&#039;!!!checkVersion&#039;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Every action requires a parameter &amp;lt;code&amp;gt;int $version&amp;lt;/code&amp;gt; and a call to &amp;lt;code&amp;gt;$this-&amp;gt;checkVersion()&amp;lt;/code&amp;gt; as the first line. The version check should happen before anything else, even before checking if the action is allowed (since possible actions could change between versions). If you are using auto-wired &amp;quot;act&amp;quot; action functions, modify each to start like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    #[CheckAction(false)]&lt;br /&gt;
    public function actXxx(int $version, ...) {&lt;br /&gt;
        $this-&amp;gt;checkVersion($version);&lt;br /&gt;
        $this-&amp;gt;checkAction(&#039;actXxx&#039;); // or $this-&amp;gt;gamestate-&amp;gt;checkPossibleAction(&#039;actXxx&#039;);&lt;br /&gt;
        ...&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;In ggg.js&lt;br /&gt;
Transmit the version (from gamedatas) as a parameter with every ajax call. For example, if you&#039;re already using a wrapper function for every ajax call, add it like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  ajaxcallwrapper: function (action, args) {&lt;br /&gt;
    if (!args) args = {};&lt;br /&gt;
    args.version = this.gamedatas.version; // &amp;lt;-- ADD HERE&lt;br /&gt;
    this.bgaPerformAction(action, args);&lt;br /&gt;
  },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Disable / lock table creation for new deploy===&lt;br /&gt;
&lt;br /&gt;
If you are deploying a major new game version, especially if it involves upgrading production game databases, you may have a lot of angry players if you break their tables.  Depending on your changes, you may be able to restore the previous version and fix the tables easily.&lt;br /&gt;
&lt;br /&gt;
However, if a new deploy turns out bad and players created turn-based tables while it was live, it may be quite difficult to fix those tables, since they were created from a bad deploy.&lt;br /&gt;
&lt;br /&gt;
The solution?  You can announce in your game group that you are locking table creation, and then in your new version, add an impossible startcondition to an existing option.  &lt;br /&gt;
Note: This only makes sense if you have a few games running in real time mode in the time of deployment, otherwise it won&#039;t achieve much, unless you wait at least a day for other turn based games to break (or not)&lt;br /&gt;
&lt;br /&gt;
Here is an example of an option with only 2 values (if you don&#039;t have options at all you have to create a fake option to use this method, if you have more values - you have to list them all): &lt;br /&gt;
&lt;br /&gt;
;In gameoptions.json&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        &amp;quot;startcondition&amp;quot;: {&lt;br /&gt;
            &amp;quot;0&amp;quot;: [ { &amp;quot;type&amp;quot;: &amp;quot;minplayers&amp;quot;, &amp;quot;value&amp;quot;: 32, &amp;quot;message&amp;quot;: &amp;quot;Maintenance in progress.  Table creation is disabled.&amp;quot; } ],&lt;br /&gt;
            &amp;quot;1&amp;quot;: [ { &amp;quot;type&amp;quot;: &amp;quot;minplayers&amp;quot;, &amp;quot;value&amp;quot;: 32, &amp;quot;message&amp;quot;: &amp;quot;Maintenance in progress.  Table creation is disabled.&amp;quot; } ]&lt;br /&gt;
        },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
;In gameoptions.inc.php (older method if you have it in php)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// TODO NEXT remove after testing deploy to upgrade, here 0 and 1 - replace with values of your option!&lt;br /&gt;
&#039;startcondition&#039; =&amp;gt; [&lt;br /&gt;
   0 =&amp;gt; [ [ &#039;type&#039; =&amp;gt; &#039;minplayers&#039;, &#039;value&#039; =&amp;gt; 32, &#039;message&#039; =&amp;gt; totranslate(&#039;Maintenance in progress.  Table creation is disabled.&#039;) ] ],&lt;br /&gt;
   1 =&amp;gt; [ [ &#039;type&#039; =&amp;gt; &#039;minplayers&#039;, &#039;value&#039; =&amp;gt; 32, &#039;message&#039; =&amp;gt; totranslate(&#039;Maintenance in progress.  Table creation is disabled.&#039;) ] ],&lt;br /&gt;
],&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Be sure to click &amp;quot;Reload game options configuration&amp;quot; after making this change, then test in studio (test that you cannot create any table)&lt;br /&gt;
* Deploy to production&lt;br /&gt;
*Now, when a player attempts to create a new table, they will see a red error bar with your &amp;quot;Maintenance in progress&amp;quot; message.&lt;br /&gt;
*Wait for screaming (if you have real times games in progress waiting 15 min probably ok, if you have only turn based games, probably a day)&lt;br /&gt;
*Once you confirm the new deploy looks good, you can revert the change in gameoptions.inc.php and do another deploy.&lt;br /&gt;
&lt;br /&gt;
===Local Storage===&lt;br /&gt;
&lt;br /&gt;
There is not much you can store in localStorage (https://developer.mozilla.org/docs/Web/API/Window/localStorage), since most stuff should be stored either in game db or in user prefrences,&lt;br /&gt;
but some stuff makes sense to store there, for example &amp;quot;zoom&amp;quot; level (if you use custom zooming). This setting really affect this specific host and specific browser, setting it localStorage makes most sense.&lt;br /&gt;
&lt;br /&gt;
game.js&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   setup: function (gamedatas) {&lt;br /&gt;
        let zoom = localStorage.getItem(`${this.game_name}_zoom`);&lt;br /&gt;
        this.setZoom(zoom);&lt;br /&gt;
...&lt;br /&gt;
   },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In this case setZoom is custom function to actually set it.&lt;br /&gt;
When zoom changed, for example when some buttons pressed, store current value (but sanitize it so it never so bad that game cannot be viewed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    setZoom: function (zoom) {&lt;br /&gt;
      zoom = parseInt(zoom) || 0;&lt;br /&gt;
      if (zoom === 0 || zoom &amp;lt; 0.1 || zoom &amp;gt; 10) {&lt;br /&gt;
        zoom = 1;&lt;br /&gt;
      }&lt;br /&gt;
      this.zoom = zoom;&lt;br /&gt;
      localStorage.setItem(`${this.game_name}_zoom`, &amp;quot;&amp;quot; + this.zoom);&lt;br /&gt;
... do actual zooming stuff&lt;br /&gt;
    },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Capture client JavaScript errors in the &amp;quot;unexpected error&amp;quot; log===&lt;br /&gt;
&lt;br /&gt;
PHP (backend) errors are recorded in the &amp;quot;unexpected error&amp;quot; log, but JavaScript (frontend) errors are only available in the browser itself. This means you have no visibility about things that go wrong in the client... unless you make clients report their errors to the server.&lt;br /&gt;
&lt;br /&gt;
;In actions.php:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  public function jsError()&lt;br /&gt;
  {&lt;br /&gt;
    $this-&amp;gt;setAjaxMode(false);&lt;br /&gt;
    $this-&amp;gt;game-&amp;gt;jsError($_POST[&#039;userAgent&#039;], $_POST[&#039;msg&#039;]);&lt;br /&gt;
    $this-&amp;gt;ajaxResponse();&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
; In game.php:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    public function jsError($userAgent, $msg): void&lt;br /&gt;
    {&lt;br /&gt;
        $this-&amp;gt;error(&amp;quot;JavaScript error from User-Agent: $userAgent\n$msg // &amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;In game.js:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
define([&amp;quot;dojo&amp;quot;, &amp;quot;dojo/_base/declare&amp;quot;, &amp;quot;ebg/core/gamegui&amp;quot;, &amp;quot;ebg/counter&amp;quot;], function (dojo, declare) {&lt;br /&gt;
  const uniqJsError = {};&lt;br /&gt;
  ...&lt;br /&gt;
&lt;br /&gt;
  return declare(&amp;quot;bgagame.nowboarding&amp;quot;, ebg.core.gamegui, {&lt;br /&gt;
    ...&lt;br /&gt;
    /* @Override */&lt;br /&gt;
    onScriptError(msg) {&lt;br /&gt;
      if (!uniqJsError[msg]) {&lt;br /&gt;
        uniqJsError[msg] = true;&lt;br /&gt;
        console.error(&amp;quot;⛔ Reporting JavaScript error&amp;quot;, msg);&lt;br /&gt;
        this.ajaxcall(&lt;br /&gt;
          &amp;quot;/&amp;quot; + this.game_name + &amp;quot;/&amp;quot; + this.game_name + &amp;quot;/jsError.html&amp;quot;,&lt;br /&gt;
          {&lt;br /&gt;
            msg,&lt;br /&gt;
            userAgent: navigator.userAgent,&lt;br /&gt;
          },&lt;br /&gt;
          this,&lt;br /&gt;
          () =&amp;gt; {},&lt;br /&gt;
          () =&amp;gt; {},&lt;br /&gt;
          &amp;quot;post&amp;quot;&lt;br /&gt;
        );&lt;br /&gt;
      }&lt;br /&gt;
      this.inherited(arguments);&lt;br /&gt;
    },&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algorithms ==&lt;br /&gt;
&lt;br /&gt;
===Generate permutations in lexicographic order===&lt;br /&gt;
&lt;br /&gt;
Use this when you have an array like [1, 2, 3, 4] and need to loop over some/all 24 permutations of possible ordering. This type of [https://www.php.net/manual/en/language.generators.syntax.php generator function] computes each possibility one at a time, making it vastly more efficient than either a normal iteration or recursive function that produce all possibilities up front.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function generatePermutations(array $array): Generator&lt;br /&gt;
{&lt;br /&gt;
    // https://en.wikipedia.org/wiki/Permutation#Generation_in_lexicographic_order&lt;br /&gt;
    // Sort the array and this is the first permutation&lt;br /&gt;
    sort($array);&lt;br /&gt;
    yield $array;&lt;br /&gt;
&lt;br /&gt;
    $count = count($array);&lt;br /&gt;
    do {&lt;br /&gt;
        // Find the largest index k where a[k] &amp;lt; a[k + 1]&lt;br /&gt;
        // End when no such index exists&lt;br /&gt;
        $found = false;&lt;br /&gt;
        for ($k = $count - 2; $k &amp;gt;= 0; $k--) {&lt;br /&gt;
            $kvalue = $array[$k];&lt;br /&gt;
            $knext = $array[$k + 1];&lt;br /&gt;
            if ($kvalue &amp;lt; $knext) {&lt;br /&gt;
                // Find the largest index l greater than k where a[k] &amp;lt; a[l]&lt;br /&gt;
                for ($l = $count - 1; $l &amp;gt; $k; $l--) {&lt;br /&gt;
                    $lvalue = $array[$l];&lt;br /&gt;
                    if ($kvalue &amp;lt; $lvalue) {&lt;br /&gt;
                        // Swap a[k] and a[l]&lt;br /&gt;
                        [$array[$k], $array[$l]] = [$array[$l], $array[$k]];&lt;br /&gt;
&lt;br /&gt;
                        // Reverse the sequence from a[k + 1] up to and including the final element&lt;br /&gt;
                        $reverse = array_reverse(array_slice($array, $k + 1));&lt;br /&gt;
                        array_splice($array, $k + 1, $count, $reverse);&lt;br /&gt;
                        yield $array;&lt;br /&gt;
&lt;br /&gt;
                        // Restart with the new array to find the next permutation&lt;br /&gt;
                        $found = true;&lt;br /&gt;
                        break 2;&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    } while ($found);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$cash = [4, 1, 2, 3, 4];&lt;br /&gt;
foreach ($this-&amp;gt;generatePermutations($cash) as $p) {&lt;br /&gt;
    // your code here to evaluate permutation $p&lt;br /&gt;
    // first iteration: $p = [1, 2, 3, 4, 4]&lt;br /&gt;
    // last (60th) iteration: $p = [4, 4, 3, 2, 1]&lt;br /&gt;
    // break from loop once you achieve your goal&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Studio]]&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=25971</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=25971"/>
		<updated>2025-07-31T09:58:45Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|1st player&lt;br /&gt;
|2nd player&lt;br /&gt;
|3rd player&lt;br /&gt;
|4th player&lt;br /&gt;
|5th player&lt;br /&gt;
|6th player&lt;br /&gt;
|-&lt;br /&gt;
|$7&lt;br /&gt;
|$8&lt;br /&gt;
|$9&lt;br /&gt;
|$10&lt;br /&gt;
|$11&lt;br /&gt;
|$12&lt;br /&gt;
|} For a 2-player game: &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|1st player&lt;br /&gt;
|2nd player&lt;br /&gt;
|-&lt;br /&gt;
|$10&lt;br /&gt;
|$12&lt;br /&gt;
|}&lt;br /&gt;
Place money behind your screen.&lt;br /&gt;
&lt;br /&gt;
Create 3 rows of 5 tiles (6 tiles in a 5-6 player game) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack of tiles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island.&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
&lt;br /&gt;
3. &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings) but don&#039;t sort them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
If you already took a tile from a Market Row, you may not take another one from that same row again until the end of your turn. This restriction applies per player: it does not affect other players. For example, if you took a tile from a row, the auction winner can still take a tile from that same row (see Bonus).&lt;br /&gt;
&lt;br /&gt;
If a player needs to take a tile from the market, and any row has only 1 tile left, immediately draw new tiles and refresh the rows back to the tile limit (5 tiles with 2-4 players, 6 tiles with 5-6 players). Do not arrange the tiles by their icon count.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Other players score 0 as they don’t have any ❤️ icons. If they had only 1 ❤️, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tropical Treats expansion:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For this expansion, please refer to the rulebook: https://drive.google.com/file/d/1DD24YzVmEZxE2K8FaAdEeuF6AFvsRLld/view&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=BGA_Code_Sharing&amp;diff=23362</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=23362"/>
		<updated>2024-11-30T13:40:10Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: /* Projects */&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;
|Ninjan&lt;br /&gt;
|https://github.com/dorukkicikoglu/bga-ninjan&lt;br /&gt;
|fenadoruk&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;
|Odin&lt;br /&gt;
|https://github.com/dorukkicikoglu/bga-odin&lt;br /&gt;
|fenadoruk&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;
|-&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>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=BGA_Code_Sharing&amp;diff=23361</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=23361"/>
		<updated>2024-11-30T13:08:44Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: /* Projects */&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;
|Odin&lt;br /&gt;
|https://github.com/dorukkicikoglu/bga-odin&lt;br /&gt;
|fenadoruk&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;
|-&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>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpninjan&amp;diff=23260</id>
		<title>Gamehelpninjan</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpninjan&amp;diff=23260"/>
		<updated>2024-11-18T19:27:23Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: Created page with &amp;quot;Ninjas bring rocks, scissors, and paper to a fight in Ninjan to help you recruit the strongest ninjas possible.  Each player starts with a hand of nine cards, with cards belonging to one of three suits — rock/paper/scissor — and being valued from -6 to 10. Place three random cards face up on the table in separate piles; these are your first targets.  Each turn, each player chooses a card from their hand, then reveals them simultaneously. Going from high value to low,...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ninjas bring rocks, scissors, and paper to a fight in Ninjan to help you recruit the strongest ninjas possible.&lt;br /&gt;
&lt;br /&gt;
Each player starts with a hand of nine cards, with cards belonging to one of three suits — rock/paper/scissor — and being valued from -6 to 10. Place three random cards face up on the table in separate piles; these are your first targets.&lt;br /&gt;
&lt;br /&gt;
Each turn, each player chooses a card from their hand, then reveals them simultaneously. Going from high value to low, breaking ties according to the RPS rule, players see whether they will claim one of the piles in the center of the table. If you play 8 rock, for example, you must claim one of the piles with a scissor card on top, placing these claimed cards face up in front of you, then starting a new pile with your 8 rock. If you cannot claim a card, place your played card on a pile, leaving all numbers in the pile visible.&lt;br /&gt;
&lt;br /&gt;
After nine rounds, sum the values of the cards you&#039;ve claimed. Whoever has the highest score wins.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpodin&amp;diff=22554</id>
		<title>Gamehelpodin</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpodin&amp;diff=22554"/>
		<updated>2024-09-13T13:00:12Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Overview===&lt;br /&gt;
&lt;br /&gt;
Combine cards to make whole numbers e.g. 5-2-8 is 852, and play the highest value combos in order to empty your hand the fastest&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Turn===&lt;br /&gt;
&lt;br /&gt;
The first player plays 1 card&lt;br /&gt;
&lt;br /&gt;
Following players can play 1 or more cards&lt;br /&gt;
&lt;br /&gt;
The value of the card(s) played must be greater than what is already on the table&lt;br /&gt;
&lt;br /&gt;
Values of multiple cards are combined in such a way to form a whole number of the highest value possible e.g. two cards will form a value in the 10s e.g. 3 and 4 make 43, three cards will form a value in the 100s e.g. 5-2-8 will form 852, and so on&lt;br /&gt;
&lt;br /&gt;
You can play the same quantity of cards as previously played, or exactly 1 more than it, i.e. if there are three cards out, you can play 3 or 4 cards with a higher combined value, but not 5 cards&lt;br /&gt;
&lt;br /&gt;
If you play more than one card, they must all be of the same numeral or same suit e.g. 888 or 5-3-1 of all blue&lt;br /&gt;
&lt;br /&gt;
Once you have played a valid card(s), take one of the cards from the play you just defeated into your hand and discard the rest of the old cards&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not wish to play, you can pass, but you still get a turn when it next comes round to you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Round End===&lt;br /&gt;
&lt;br /&gt;
If you were the last to change the game state and it comes round to you to play again, you just won the round&lt;br /&gt;
&lt;br /&gt;
The play area is cleared and you may start again with a new single card as first player&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Hand End===&lt;br /&gt;
&lt;br /&gt;
If you start the round, and all cards in your hand are the same suit or value, you can play your whole hand instead of just one card and end the hand&lt;br /&gt;
&lt;br /&gt;
Otherwise, when a player empties their hand the Hand is over&lt;br /&gt;
&lt;br /&gt;
Everyone gains 1 point per card still in their hand when this is triggered - Be mindful that on the BGA adaptation, you lose points instead of gaining them&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Game End===&lt;br /&gt;
&lt;br /&gt;
Depending on the length of the game, the game ends when a player reaches or exceeds 10/15/20 points&lt;br /&gt;
&lt;br /&gt;
The player with the fewest points, wins!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Summarised by https://boardgamearena.com/player?id=90078516&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21624</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21624"/>
		<updated>2024-06-22T22:12:50Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|1st player&lt;br /&gt;
|2nd player&lt;br /&gt;
|3rd player&lt;br /&gt;
|4th player&lt;br /&gt;
|5th player&lt;br /&gt;
|6th player&lt;br /&gt;
|-&lt;br /&gt;
|$10&lt;br /&gt;
|$12&lt;br /&gt;
|$14&lt;br /&gt;
|$16&lt;br /&gt;
|$18&lt;br /&gt;
|$20&lt;br /&gt;
|}&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the market size set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island.&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
&lt;br /&gt;
3. &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings) but don&#039;t sort them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Other players score 0 as they don’t have any ❤️ icons. If they had only 1 ❤️, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21622</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21622"/>
		<updated>2024-06-22T21:49:10Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|1st player&lt;br /&gt;
|2nd player&lt;br /&gt;
|3rd player&lt;br /&gt;
|4th player&lt;br /&gt;
|5th player&lt;br /&gt;
|6th player&lt;br /&gt;
|-&lt;br /&gt;
|$10&lt;br /&gt;
|$12&lt;br /&gt;
|$14&lt;br /&gt;
|$16&lt;br /&gt;
|$18&lt;br /&gt;
|$20&lt;br /&gt;
|}&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the market size set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island.&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
&lt;br /&gt;
3. &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings) but don&#039;t sort them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach terrain touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (contiguous terrains of the same type count as one area, diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas; so try to keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Other players score 0 as they don’t have any ❤️ icons. If they had only 1 ❤️, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21573</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21573"/>
		<updated>2024-06-20T11:26:40Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the market size set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island.&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
&lt;br /&gt;
3. &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings) but don&#039;t sort them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach terrain touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (contiguous terrains of the same type count as one area, diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas; so try to keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Other players score 0 as they don’t have any ❤️ icons. If they had only 1 ❤️, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21499</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21499"/>
		<updated>2024-06-11T10:21:19Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: minor corrections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the market size set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island.&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
&lt;br /&gt;
3. &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings) but don&#039;t sort them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach terrain touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent terrains of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Other players score 0 as they don’t have any ❤️ icons. If they had only 1 ❤️, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21493</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21493"/>
		<updated>2024-06-10T09:33:28Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: minor edits. BGA interface is not updating :( why?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the market size set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island.&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
&lt;br /&gt;
3. &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings) but don&#039;t sort them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Other players score 0 as they don’t have any love icons. If they had only 1 Love icon, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21492</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21492"/>
		<updated>2024-06-10T09:13:38Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: rules updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the market size set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island. &lt;br /&gt;
# &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
# &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings) but don&#039;t sort them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Other players score 0 as they don’t have any love icons. If they had only 1 Love icon, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21491</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21491"/>
		<updated>2024-06-10T09:07:15Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the market size set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island. &lt;br /&gt;
# &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
# &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings) but don&#039;t sort them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful facing the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Other players score 0 as they don’t have any love icons. If they had only 1 Love icon, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21490</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21490"/>
		<updated>2024-06-10T09:04:42Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the market size set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island. &lt;br /&gt;
# &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
# &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings) but don&#039;t sort them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful facing the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Charlie scores 0 as they don’t have any love icons. If they had only 1 Love icon, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21489</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21489"/>
		<updated>2024-06-10T09:02:08Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the market size set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island. &lt;br /&gt;
# &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
# &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn. Refresh the market back to 8 tiles (or the market size set in game settings), don&#039;t sort them by icons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the highest bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Charlie scores 0 as they don’t have any love icons. If they had only 1 Love icon, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21488</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21488"/>
		<updated>2024-06-10T08:58:20Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: Minor updates to the rules&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the number set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island. &lt;br /&gt;
# &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
# &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
• &#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Charlie scores 0 as they don’t have any love icons. If they had only 1 Love icon, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21487</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21487"/>
		<updated>2024-06-10T08:47:25Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the number set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island. &lt;br /&gt;
# &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
# &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
# &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example: Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie score 20 points. Charlie scores 0 as they don’t have any love icons. If they had only 1 Love icon, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21482</id>
		<title>Gamehelpauctionland</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpauctionland&amp;diff=21482"/>
		<updated>2024-06-09T20:59:18Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: Rules updated by Doruk Kicikoglu (game designer and BGA developer)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Build and auction tiles to create the most impressive paradise island!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Setup&#039;&#039;&#039; [BGA handles this for you, feel free to skip this part]:&lt;br /&gt;
&lt;br /&gt;
Each player grabs a screen and some money. The player who last visited a new island starts the game and takes the gavel! Starting money is distributed as follows:&lt;br /&gt;
&lt;br /&gt;
- 1st player: $10&lt;br /&gt;
&lt;br /&gt;
- 2nd player: $12&lt;br /&gt;
&lt;br /&gt;
- 3rd player: $14&lt;br /&gt;
&lt;br /&gt;
- 4th player: $16&lt;br /&gt;
&lt;br /&gt;
- 5th player: $18&lt;br /&gt;
&lt;br /&gt;
- 6th player: $20&lt;br /&gt;
&lt;br /&gt;
Place money behind your screen. You can enable &#039;&#039;&#039;visible money&#039;&#039;&#039; in the game settings.&lt;br /&gt;
&lt;br /&gt;
Create a stack of tiles and deal 8 tiles (or the number set in game settings) into the middle to form the market. Sort them by the number of icons (Peace, Love &amp;amp; Music), with more icons closer to the stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Turn summary:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Build Tile&#039;&#039;&#039;: Select a tile from the market to add to your island. &lt;br /&gt;
# &#039;&#039;&#039;Auction Tile&#039;&#039;&#039;: After building, select another tile and auction it off.&lt;br /&gt;
# &#039;&#039;&#039;End turn&#039;&#039;&#039;: Pass the gavel to the player on your left. It’s now their turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The Market:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Whenever you take a tile from the market (for building, auctioning, or Bonus), place $1 on each skipped tile starting from the free tile. Earn the money on the selected tile and place it behind your screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Building Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New tiles placed after your first must share an edge with an existing tile on your island. You can expand your island in any direction as long as it doesn’t go beyond 4x4.&lt;br /&gt;
&lt;br /&gt;
Placing the 4th tile in a row or column earns you a Bonus tile (see Bonus Tiles).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Auctioning Tiles:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
After building your tile, select a new tile following &#039;&#039;&#039;the market&#039;&#039;&#039; rules and put it on auction! It’s an open auction carried out simultaneously. Players can increase bids -even their own- any time as long as you have enough money to pay for it. The auction phase is over once all but one player has passed.&lt;br /&gt;
&lt;br /&gt;
In a 2-player game, the bidding player makes only 1 bid which concludes the auction phase.&lt;br /&gt;
&lt;br /&gt;
In the rare case that no one bids, the auctioneer takes the tile for free.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Buy back:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the auction phase is over, the auctioneer can either:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Sell&#039;&#039;&#039; the auctioned tile to the highest bidder.&lt;br /&gt;
# &#039;&#039;&#039;Buy back&#039;&#039;&#039; the tile by paying the winning bid plus $1 to the bidder. i.e. Alex won the auction phase with a bid of $3, the auctioneer can pay $4 to Alex and build the tile.&lt;br /&gt;
&lt;br /&gt;
The auctioneer can still buy back even if their island is full. In that case, the auctioned tile is returned to the game box.&lt;br /&gt;
&lt;br /&gt;
Make sure you are not bidding so little that the auctioneer buys it back from you. Or maybe you want them to! After all, you&#039;re being paid without losing anything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bonus Tiles:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After adding a tile to your island in &#039;&#039;&#039;any&#039;&#039;&#039; phase or for &#039;&#039;&#039;any&#039;&#039;&#039; reason, check whether it was the 4th tile of a row or column. If so, you immediately earn a Bonus tile!&lt;br /&gt;
&lt;br /&gt;
Draw a new tile following &#039;&#039;&#039;the market rules&#039;&#039;&#039; and build it by following the &#039;&#039;&#039;building tiles&#039;&#039;&#039; rules. Each player can earn only 1 Bonus tile per turn. In other words, a Bonus tile cannot trigger another Bonus, but more than 1 player can draw a Bonus tile on a single turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Game End:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once a player has filled their 4x4 island, the game will be over at the end of that turn. This means you still proceed to the &#039;&#039;&#039;auction phase&#039;&#039;&#039; if you haven’t already done so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SCORING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Beaches:&#039;&#039;&#039; Imagine the table is the ocean! Count tiles with a beach zone touching the edge of your island. Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a beach is not on the edge but still adjacent to a gap (because your 4x4 island wasn’t filled up) it still scores. The table is the ocean and it’s a wonderful beach by the water!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theme Parks:&#039;&#039;&#039; Count tiles in your largest contiguous theme park area (diagonal connections don’t count). Score points based on the scoring table found in the game’s tooltips. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Gardens &amp;amp; Houses:&#039;&#039;&#039; Multiply the number of garden areas by the number of house areas. Adjacent zones of the same type count as one area; so keep gardens separate from other gardens and likewise for the houses. &#039;&#039;&#039;It’s fine if a garden is touching a house.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Icons:&#039;&#039;&#039; The positions of the icons don’t matter. Each icon type scores separately. The player with the highest number of an icon type scores 20 points, 2nd player scores 10 and 3rd player scores 5. Ties are friendly; all tying players score the same amount of points but you skip the next number for each tying player.&lt;br /&gt;
&lt;br /&gt;
You must have at least 1 icon of the type to score points from it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example: Alex has 2 ☮️, 2 ❤️, 3 🎵. Bonnie-Beth has 3 ☮️, 2 ❤️, 3 🎵. Charlie has 3 ☮️and 3 🎵. Doruk has only 1 🎵.&lt;br /&gt;
&lt;br /&gt;
☮️ (A: 2, B: 3, C: 3, D: 0): Alex scores 5 points. Bonnie-Beth and Charlie score 20 each.&lt;br /&gt;
&lt;br /&gt;
❤️ (A: 2, B: 2, C: 0, D: 0): Alex and Bonnie-Beth score 20 points. Charlie scores 0 as they don’t have any love icons. If they had only 1 Love icon, it’d be 5 points for them!&lt;br /&gt;
&lt;br /&gt;
🎵 (A: 3, B: 3, C: 3, D: 1): Alex, Bonnie-beth and Charlie score 20 points. Doruk doesn’t score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most points win. Money breaks ties.&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Studio_logs&amp;diff=19585</id>
		<title>Studio logs</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Studio_logs&amp;diff=19585"/>
		<updated>2024-01-17T09:21:47Z</updated>

		<summary type="html">&lt;p&gt;Fenadoruk: /* BGA request&amp;amp;SQL logs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Studio_Framework_Navigation}}&lt;br /&gt;
&lt;br /&gt;
Logs allows you to check out what happened recently on server and to debug your game.&lt;br /&gt;
&lt;br /&gt;
BGA Studio logs are available directly from your game development interface. You can also navigate to them: https://studio.boardgamearena.com/1/mygame/mygame/logaccess.html?table=######, where you replace mygame and ###### accordingly.&lt;br /&gt;
&lt;br /&gt;
== BGA request&amp;amp;SQL logs ==&lt;br /&gt;
&lt;br /&gt;
This log is useful:&lt;br /&gt;
* When you want to check what SQL requests has been built during a request.&lt;br /&gt;
* When you want to debug your PHP code using &amp;quot;self::trace&amp;quot;&lt;br /&gt;
* When you want to know why a request takes too much time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On this log, you can see:&lt;br /&gt;
&lt;br /&gt;
=== Your requests ===&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
  20/06 21:50:56 [info] [T403] [4/mytest0] /cinco/cinco/exchange4Cards.html?id=4&amp;amp;lock=97d1c7a1-903a-4d1f-8206-de39ce8204fc&amp;amp;table=403&amp;amp;testuser=4&amp;amp;dojo.preventCache=1371757856044&lt;br /&gt;
&lt;br /&gt;
Note that the best way to check your Ajax request is to read the [[http://en.doc.boardgamearena.com/Tools_and_tips_of_BGA_Studio#Input.2FOutput_debugging_section Input/Output section]].&lt;br /&gt;
&lt;br /&gt;
=== Request responses ===&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
  20/06 21:50:56 [notice] [T403] [4/mytest0] OK-0 169 d141 c8 e0 I9 A158 V0 T0 /cinco/cinco/exchange4Cards.html?id=4&amp;amp;lock=97d1c7a1-903a-4d1f-8206-de39ce8204fc&amp;amp;table=403&amp;amp;testuser=4&amp;amp;dojo.preventCache=1371757856044&lt;br /&gt;
&lt;br /&gt;
You can recognize a response because it contains [notice]. Usually, there is one response for each request.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s details the beginning of the log:&lt;br /&gt;
* 20/06 21:50:56: the date&lt;br /&gt;
* [notice]&lt;br /&gt;
* [T403]: this is a log from table 403&lt;br /&gt;
* [4/mytest0]: this is use &amp;quot;mytest0&amp;quot;, with id 4&lt;br /&gt;
* OK-0: it means that the request ended up successfully, with no exception (expected or unexpected).&lt;br /&gt;
* 169: this is the time taken to process the request (169ms).&lt;br /&gt;
* d141: this is the total Database time used to process the request (141ms).&lt;br /&gt;
&lt;br /&gt;
=== SQL requests ===&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
  20/06 21:50:56 [info] [T403] [4/mytest0] 0.26 SELECT player_tokenColor FROM player WHERE player_id =&#039;4&#039;&lt;br /&gt;
&lt;br /&gt;
All requests to Database are traced in this log. You can see here the time take by the request (0,26ms).&lt;br /&gt;
&lt;br /&gt;
=== Custom trace ===&lt;br /&gt;
&lt;br /&gt;
You can use special PHP methods in your PHP code to left some trace in this log:&lt;br /&gt;
* self::trace( &amp;quot;your message here&amp;quot; );    // Display &amp;quot;your message here&amp;quot; in the log&lt;br /&gt;
* self::dump( &amp;quot;My variable&amp;quot;, $variable_to_dump );   // Display the content of $variable_to_dump in the log&lt;br /&gt;
&lt;br /&gt;
== BGA unexpected exceptions logs ==&lt;br /&gt;
&lt;br /&gt;
In this log you can check the last Unexpected exceptions from your game.&lt;br /&gt;
&lt;br /&gt;
Exceptions management on PHP side [[http://en.doc.boardgamearena.com/Main_game_logic:_yourgamename.game.php#Managing_errors_and_exceptions is described here]].&lt;br /&gt;
&lt;br /&gt;
The log displayed the complete stacktrace of the exception, so you can debug it.&lt;br /&gt;
&lt;br /&gt;
The SQL log is very verbose and sometimes it too hard to extract your tracing from it, in this case you can use error log for tracing temporarily.&lt;br /&gt;
You can add debug statement using self::warn() which will appear in that the log. Do not leave these tracing method calls after you done debugging unless they&lt;br /&gt;
are real warnings or errors (only the error log level will appear in production).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Studio]]&lt;/div&gt;</summary>
		<author><name>Fenadoruk</name></author>
	</entry>
</feed>