<?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=Tchobello</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=Tchobello"/>
	<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/Special:Contributions/Tchobello"/>
	<updated>2026-10-22T19:25:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpdnup&amp;diff=29274</id>
		<title>Gamehelpdnup</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpdnup&amp;diff=29274"/>
		<updated>2026-04-03T18:38:26Z</updated>

		<summary type="html">&lt;p&gt;Tchobello: Phony rules removed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Game Overview ==&lt;br /&gt;
dnup is a dynamic card game where card values constantly change by flipping them. Players attempt to be the first or second person to discard all hand cards to collect points. The game ends as soon as a player reaches a total of &#039;&#039;&#039;4&#039;&#039;&#039; points. Interaction and tactical rotations define the fast-paced gameplay.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
At the start, each person receives 6 cards (for 2 or 3 players: 7 cards). Each card has different values from &#039;&#039;&#039;1&#039;&#039;&#039; to &#039;&#039;&#039;10&#039;&#039;&#039; at the top and bottom. The orientation of cards in your hand may not be changed at will during the game.&lt;br /&gt;
&lt;br /&gt;
== Gameplay ==&lt;br /&gt;
A turn always consists of two consecutive phases:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Phase: Discarding cards&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If your own cards from the previous round are still on the table in front of you, move them to the general discard pile in the center of the table.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Phase: Choosing an action&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You must perform exactly one of the following four actions:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Action A: Playing cards&#039;&#039;&#039;&lt;br /&gt;
Play a set (one or more cards of the same value) in front of you. Important: Your set must beat &#039;&#039;&#039;all&#039;&#039;&#039; other sets currently on the table &#039;&#039;of the same size&#039;&#039;. &lt;br /&gt;
* &#039;&#039;&#039;Action B: Adding a card&#039;&#039;&#039;&lt;br /&gt;
You can add exactly one matching card from your hand to another player&#039;s set to increase its size. The new combined set must now beat any set on the table of its new size.&lt;br /&gt;
* &#039;&#039;&#039;Action C: Taking cards&#039;&#039;&#039;&lt;br /&gt;
Take an entire set from another player. Rotate these cards by &#039;&#039;&#039;180 degrees&#039;&#039;&#039; and add them to your hand. This action is only allowed if it does not exceed your hand limit.&lt;br /&gt;
* &#039;&#039;&#039;Action D: Rotating hand&#039;&#039;&#039;&lt;br /&gt;
Rotate your entire hand of cards by &#039;&#039;&#039;180 degrees&#039;&#039;&#039;. This changes the values of all your cards simultaneously. Your turn ends immediately after this action.&lt;br /&gt;
&lt;br /&gt;
== Beating Sets ==&lt;br /&gt;
A set is stronger than another if:&lt;br /&gt;
* It consists of &#039;&#039;&#039;more cards&#039;&#039;&#039; (Example: Two 2s beat one 10).&lt;br /&gt;
* It has a &#039;&#039;&#039;higher numerical value&#039;&#039;&#039; if the number of cards is equal (Example: One 9 beats one 4).&lt;br /&gt;
&lt;br /&gt;
As soon as a set is beaten, the affected player must &#039;&#039;&#039;immediately&#039;&#039;&#039; take those cards from the table, rotate them &#039;&#039;&#039;180 degrees&#039;&#039;&#039;, and add them back to their hand.&lt;br /&gt;
&lt;br /&gt;
== Scoring ==&lt;br /&gt;
A round ends when two players have emptied their hands.&lt;br /&gt;
* The first person receives &#039;&#039;&#039;2 points&#039;&#039;&#039;.&lt;br /&gt;
* The second person receives &#039;&#039;&#039;1 point&#039;&#039;&#039;.&lt;br /&gt;
The first player to reach &#039;&#039;&#039;4&#039;&#039;&#039; points wins the game.&lt;/div&gt;</summary>
		<author><name>Tchobello</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpverdant&amp;diff=25148</id>
		<title>Gamehelpverdant</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpverdant&amp;diff=25148"/>
		<updated>2025-05-27T19:18:55Z</updated>

		<summary type="html">&lt;p&gt;Tchobello: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Verdant - Rules Summary&amp;#039;&amp;#039;&amp;#039;   In Verdant, players collect plants, room cards, pets and furniture to set up their home to be the coziest, most verdant and to score the most points!    Players draft cards and tokens to build out a 3X5 grid of cards alternating between plant cards which need to gain verdancy, and room cards where they can place furniture and pets to score points!   Each turn, players select a token/card pair to draft, add the card to their tableau, and us...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Verdant - Rules Summary&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Verdant, players collect plants, room cards, pets and furniture to set up their home to be the coziest, most verdant and to score the most points! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Players draft cards and tokens to build out a 3X5 grid of cards alternating between plant cards which need to gain verdancy, and room cards where they can place furniture and pets to score points!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each turn, players select a token/card pair to draft, add the card to their tableau, and use the token (see below). Players begin with a random plant and room card, and will draft 13 more cards. The game ends when everyone has completed their grid. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These are the ways to score points:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Complete Plants &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Plants have a type, light requirements, verdancy requirement, and number of points they score if completed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When placed into the grid the primary goal is to get the plant the verdancy it needs to be completed. Earning verdancy is tracked on the plant cards with verdancy tokens - the light colored ones represent 1 verdancy and the darker ones represent 3 verdancy. Plants can gain verdancy by:&lt;br /&gt;
&lt;br /&gt;
Making one of the three different light requirement matches (low light, medium light, bright light) between a plant card and a room card. This can be made when placing a room card, or when placing a plant card. Each time a match is made, verdancy is added to the plant.&lt;br /&gt;
&lt;br /&gt;
Using Nurture tokens gained in the draft. The bag of fertilizer allows a player to add three verdancy to one single plant, the hand trowel allows a player to add one verdancy to up to three different plants, and the water can allows a player to add verdancy to all plants surrounding a chosen room. &lt;br /&gt;
&lt;br /&gt;
Using green thumbs, (see below).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once a plant is completed a pot will be added! Pots are worth a different number of victory points (1, 2, 3 points), depending on how early they are achieved, so the faster a player completes plants, the more bonuses they will get. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once a plant is potted, it will longer gain verdancy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a player does not finish a plant, the verdancy on incomplete plants will score one point for every two verdancy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Rooms and items&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to providing light to plants, each room also has a wallpaper type that matches one of the plant types. Each room card will score 1 point for each plant of the matching type (up to 4 points). Additionally, if a player adds a token (furnishing or animal) with the same wallpaper type on it onto the room card, it doubles the number of points that room will score for each adjacent plant (up to 8 points, if all adjacent plants match the room with a matching cat or sofa, etc)!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The furnishings and pets not only add to the room scoring but also score as sets of unique items.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that with all tokens drafted, they must be placed/used when drafted, but players have a single item storage spot that allows them to save one token for a future turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are two final ways to score points - the collector and decorator bonuses! At the end of the game if players have one of each of the plant types and/or room types in their grid, they will score 3 points.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How green thumbs work:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
A green thumb will be placed onto the card in the market that is not chosen in the column that was drafted from. When a player takes a card with a green thumb, they earn that thumb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Green thumbs can be spent in three different ways. Players spend 2 green thumbs to do an action.&lt;br /&gt;
&lt;br /&gt;
To wipe tokens from the market. Players will select the ones they wish to wipe&lt;br /&gt;
&lt;br /&gt;
Break the rules of drafting adjacent cards/tokens and choose any card and any token. &lt;br /&gt;
&lt;br /&gt;
To add a single verdancy to any plant!&lt;br /&gt;
&lt;br /&gt;
Players can do as many thumb actions as they want on their turn, but may only end their turn with 5 thumbs. If a player has more than 5, they will be discarded.&lt;/div&gt;</summary>
		<author><name>Tchobello</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpsensei&amp;diff=15132</id>
		<title>Gamehelpsensei</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpsensei&amp;diff=15132"/>
		<updated>2022-10-26T16:13:34Z</updated>

		<summary type="html">&lt;p&gt;Tchobello: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GOAL OF THE GAME&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To be the first player to bring his character to the opposite side of the board.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PREPARATION&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At the beginning of the game, players choose a version to play « Arashi » or « Sizukana », as explained below. The stones are placed in a line on two opposite edges on player&#039;s home row. Each player&#039;s character is placed on their middle stone.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;HOW TO PLAY&#039;&#039;&#039;&lt;br /&gt;
Each player has three choices on their turn. You must choose to perform at least one of the three following actions &#039;&#039;(in any order)&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
• move a stone of your color&lt;br /&gt;
&lt;br /&gt;
• move a second stone of your color or move the first stone again&lt;br /&gt;
&lt;br /&gt;
• move your character&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;MOVE STONES&#039;&#039;&#039;  -  The stones move horizontally or vertically without changing direction (it is forbidden to move a stone diagonally) . So, to move a stone horizontally and vertically, you need to use two actions. Only one stone can be placed on each square stone. A stone with a character on it cannot move. A stone is stopped by an opponent&#039;s stone.&lt;br /&gt;
&lt;br /&gt;
During each turn, a player can execute one or two movements of stones (the two movements can be made by the same stone). Movements may be made in any order. For instance, the movement of a character can be made between two movements of stones in one turn.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERSION ARASHI or VERSION SHIZUKANA&#039;&#039;&#039;&lt;br /&gt;
   VERSION ARASHI - You can move your stones as many squares as you wish as long as the spaces are open (not blocked by your opponent), but always in only one direction.&lt;br /&gt;
&lt;br /&gt;
   VERSION SHIZUKANA You can move your stones only one square.&lt;br /&gt;
&#039;&#039;NOTE: only one version is chosen for playing at the beginning of each game.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;MOVE your CHARACTER&#039;&#039;&#039;  -  A character can move between two stones of their color and the length of the movement is not limited. IF:&lt;br /&gt;
   The two stones are aligned along the same line horizontally, vertically or diagonally;&lt;br /&gt;
   AND&#039;&lt;br /&gt;
   there are no opponent&#039;s stones between their two stones.&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;UNFAIR GAME &#039;&#039;(ENDS THE GAME EARLY)&#039;&#039;&#039;&#039;&#039; - If a player blocks the game by creating a line that may not be crossed by the opponent&#039;s stones, then you may lose the game due to unfair game play if their opponent puts at least three stones in contact with the impassable line stones.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NORMAL END OF THE GAME&#039;&#039;  -  The first player to bring their character onto one of their own color stones located on the opponent&#039;s home row wins the game.  &lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&#039;&#039;&#039;VARIANT SHIZUKANA&#039;&#039;&#039;&#039;  -  Rules are the same. Only the placement of the stones changes at the beginning of the game. Each player has two stones on the opponent&#039;s start line.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VARIANT ARASHI EXPERT&#039;&#039;&#039; (using on the opposite side of the board) The stones cannot move through or fall into the pits. However a player&#039;s character can move over the pits. In checking for UNFAIR GAME the pits are treated like uncrossable stones.&lt;/div&gt;</summary>
		<author><name>Tchobello</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Tools_and_tips_of_BGA_Studio&amp;diff=7438</id>
		<title>Tools and tips of BGA Studio</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Tools_and_tips_of_BGA_Studio&amp;diff=7438"/>
		<updated>2021-02-22T15:11:53Z</updated>

		<summary type="html">&lt;p&gt;Tchobello: /* Other useful tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Studio_Framework_Navigation}}&lt;br /&gt;
&lt;br /&gt;
== Server Tools and Tips ==&lt;br /&gt;
=== Starting a game in one click ===&lt;br /&gt;
&lt;br /&gt;
To start a game:&lt;br /&gt;
* Go to Play now and configure game type: Simple game -&amp;gt; Turn-based -&amp;gt; Manual&lt;br /&gt;
* Select your game and click on &amp;quot;Create&amp;quot;.&lt;br /&gt;
* If you want to play a game with 3 players, specify that you want a maximum of 3 players at this table.&lt;br /&gt;
* Click on &amp;quot;Express Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Stopping a game in one click ===&lt;br /&gt;
&lt;br /&gt;
* Click on the &amp;quot;quit&amp;quot; icon on the top right of the screen.&lt;br /&gt;
* Click on &amp;quot;Express Stop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Switching between users ===&lt;br /&gt;
&lt;br /&gt;
When running a game on Studio, you can use the little red arrow near each player&#039;s name to open a new tab with this player&#039;s perspective.&lt;br /&gt;
You can also modify the URL to view the table as any user you want (changing &amp;amp;testuser=myid in the URL), allowing to easily test as a spectator.&lt;br /&gt;
&lt;br /&gt;
=== Access to game database and Logs ===&lt;br /&gt;
&lt;br /&gt;
At the bottom of the game area, there is section without a title containing 3 useful links:&lt;br /&gt;
&lt;br /&gt;
  Go to game database • BGA request&amp;amp;SQL logs • BGA unexpected exceptions logs&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;Go to game database&amp;quot; link is an immediate access to the PhpMyAdmin tool to view/edit the tables of the current game&lt;br /&gt;
* BGA request&amp;amp;SQL logs - link to your studio PHP log - all tables, all severities. Anything you print using debugging and tracing functions from PHP and some framework logs&lt;br /&gt;
* BGA unexpected exceptions logs - same log as above but only severity warning and higher&lt;br /&gt;
&lt;br /&gt;
See [[Practical debugging]] for more info about it.&lt;br /&gt;
&lt;br /&gt;
=== Save &amp;amp; restore state ===&lt;br /&gt;
&lt;br /&gt;
Using links of this section, you can save the complete current (database) state of your game, then restore it later.&lt;br /&gt;
&lt;br /&gt;
This is particularly useful when you want to develop a part of the game that is difficult to reproduce: you just have to save the situation just before, and then restore it until this part works fine.&lt;br /&gt;
&lt;br /&gt;
We provide you 3 &amp;quot;slots&amp;quot;: 1, 2 and 3. This way, you can save 3 different game situations.&lt;br /&gt;
&lt;br /&gt;
Limits:&lt;br /&gt;
* the &amp;quot;restore&amp;quot; function does not work anymore when the game is over.&lt;br /&gt;
* a saved situation from a given table cannot be restored in another table.&lt;br /&gt;
* when you &amp;quot;restore&amp;quot; a situation, the current browser page is refreshed to reflect the updated game situation, but you have to refresh you other tabs/pages manually.&lt;br /&gt;
&lt;br /&gt;
=== Input/Output debugging section ===&lt;br /&gt;
&lt;br /&gt;
This section shows you:&lt;br /&gt;
* The AJAX calls made by your game interface to the game server. AJAX calls (outputs) begins with &amp;quot;&amp;gt;&amp;quot;&lt;br /&gt;
* The notifications received by your game interface. Notifications (inputs) begins with &amp;quot;&amp;lt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Note: if you click on some notification title, you can resend it immediately to the user interface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Run PHP functions from the chat ===&lt;br /&gt;
&lt;br /&gt;
On BGA Studio, you can directly run a PHP method from the table chat.&lt;br /&gt;
&lt;br /&gt;
For example, if on your PHP you have this method:&lt;br /&gt;
   &lt;br /&gt;
   function giveMoneyToPlayer($player_id, $amount) { ... }&lt;br /&gt;
&lt;br /&gt;
You can call this method directly from the chat like this: &lt;br /&gt;
&lt;br /&gt;
  giveMoneyToPlayer(2564,2)&lt;br /&gt;
&lt;br /&gt;
Note: this is not a real php statement, you cannot use self::, you cannot use &amp;quot;;&amp;quot; at the end and you cannot use quotes,&lt;br /&gt;
if you need to pass a string skip the quotes, like this&lt;br /&gt;
  &lt;br /&gt;
  giveToActivePlayer(money,2)&lt;br /&gt;
&lt;br /&gt;
=== Zombify a player ===&lt;br /&gt;
&lt;br /&gt;
Call this from chat (studio only) to zombify current player (who is &amp;quot;thinking&amp;quot;)&lt;br /&gt;
  timeout()&lt;br /&gt;
&lt;br /&gt;
Never call from game code.&lt;br /&gt;
&lt;br /&gt;
=== Stopping Hanging Game ===&lt;br /&gt;
&lt;br /&gt;
If game is hanging and you cannot enter it to stop you can type this URL (replace 12345 with your table number),&lt;br /&gt;
which should bring you to a place where you can stop it without entering:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;http://en.studio.boardgamearena.com/#!table?table=12345&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Desktop and Web Tools ==&lt;br /&gt;
=== Code Editors and IDEs ===&lt;br /&gt;
==== Eclipse For PHP Developers ====&lt;br /&gt;
&lt;br /&gt;
Eclipse PHP package can be starting point for development you need. You may also want to &lt;br /&gt;
install Tern JS plugins to understand dojo style JS. All desktops.&lt;br /&gt;
https://projects.eclipse.org/projects/tools.pdt&lt;br /&gt;
&lt;br /&gt;
==== Visual Studio Code ====&lt;br /&gt;
&lt;br /&gt;
Microsoft Visual Studio Code is light weight IDE/Editor. All desktops.&lt;br /&gt;
https://code.visualstudio.com&lt;br /&gt;
&lt;br /&gt;
Note: because of dojo style class/method declarations most IDE won&#039;t be able to index main JavaScript file properly (i.e. go to definition of function and such).&lt;br /&gt;
If you manage to have it working in VS code some-how let us know how.&lt;br /&gt;
&lt;br /&gt;
There is way to re-structure code to avoid using this style but this is not for begginers, do not use this on your first game!&lt;br /&gt;
https://en.doc.boardgamearena.com/BGA_Studio_Cookbook#Avoiding_code_in_dojo_declare_style&lt;br /&gt;
&lt;br /&gt;
==== Gedit (Ubuntu) ====&lt;br /&gt;
&#039;&#039;&#039;Edit TPL&#039;&#039;&#039;&lt;br /&gt;
To edit TPL with HTML code highlightings in Gedit under Ubuntu:&lt;br /&gt;
&lt;br /&gt;
find gtksourceview directory in /usr/share, depending on your version (2.0, 3.0,...).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Here it&#039;s 3.0, then type in a terminal window:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    sudo gedit /usr/share/gtksourceview-3.0/language-specs/html.lang&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then find &#039;globs&#039; section, and change:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;globs&amp;quot;&amp;gt;*.html;*.htm;*.tpl&amp;lt;/property&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== File Sync ===&lt;br /&gt;
&lt;br /&gt;
==== File Sync on Windows ====&lt;br /&gt;
&lt;br /&gt;
Install [http://winscp.net/ WinSCP]. Map a remote directory to a local one and enable continuous sync (one way). You need SFTP password you get when you registered dev account.&lt;br /&gt;
&lt;br /&gt;
==== File Sync on Linux ====&lt;br /&gt;
&lt;br /&gt;
===== Option 1 - Nautilus (file manager) =====&lt;br /&gt;
You can just use Nautilus &amp;quot;connect to a server&amp;quot; function with URL sftp://1.studio.boardgamearena.com&lt;br /&gt;
Then you&#039;ll get a mounted local folder mapping your studio folder and you can use any editor you like without further need for sync. Downside - if connection goes down you cannot work on source code, no local copy.&lt;br /&gt;
&lt;br /&gt;
===== Option 2 - sftp and rsync =====&lt;br /&gt;
This setup will sync in the background (continious sync) when file is saved, after you set it up and start just save your files and they be on server before you can hit refresh.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
BASEDIR=`dirname $0`&lt;br /&gt;
REMOTE=$BASEDIR/remote&lt;br /&gt;
LOCAL=$BASEDIR/workspace&lt;br /&gt;
GAME=mygamenamehere&lt;br /&gt;
&lt;br /&gt;
#mount remote&lt;br /&gt;
fusermount -u $REMOTE #this unmounts dir&lt;br /&gt;
echo LongDevPassword | sshfs -o password_stdin myusernamehere@1.studio.boardgamearena.com: $REMOTE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#this starts auto-sync from local to remote mount&lt;br /&gt;
killall lsyncd&lt;br /&gt;
lsyncd -delay 1 -rsync $LOCAL/$GAME/ $REMOTE/$GAME&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can be able run on startup, so you don&#039;t have to do anything manually. However sshfs is not very stable you&lt;br /&gt;
have to kill and restart it sometimes. And remote goes away sometimes due to connection issues with studio. &lt;br /&gt;
In this case its handy to have a local copy, which is what lsyncd for.&lt;br /&gt;
&lt;br /&gt;
You can also sync on demand (from a build script or editor command) using&lt;br /&gt;
 rsync -vlrt $LOCAL/$GAME/ $REMOTE/$GAME&lt;br /&gt;
&lt;br /&gt;
===== Option 3 - lftp =====&lt;br /&gt;
&lt;br /&gt;
[https://lftp.yar.ru/ lftp] is a fast command-line file transfer program. It supports parallel threads, transferring multiple files at a time.&lt;br /&gt;
&lt;br /&gt;
* Linux: Install using your package manager, for example: &#039;&#039;&#039;sudo apt-get install lftp&#039;&#039;&#039;&lt;br /&gt;
* Mac: Install [https://brew.sh/ Homebrew], then install lftp using &#039;&#039;&#039;brew install lftp&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To upload your project to BGA studio, use the &amp;quot;mirror&amp;quot; command like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;lftp sftp://&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;myuser&amp;lt;/span&amp;gt;:&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;mypassword&amp;lt;/span&amp;gt;@1.studio.boardgamearena.com/ -e &amp;quot;mirror --reverse --parallel=10 --delete &amp;lt;span style=&amp;quot;color:orange&amp;quot;&amp;gt;/local/path/to/myproject&amp;lt;/span&amp;gt;/ &amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;myproject&amp;lt;/span&amp;gt;/; exit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Be sure to include the trailing &#039;&#039;&#039;/&#039;&#039;&#039; after both directory names.&lt;br /&gt;
&lt;br /&gt;
By default, if a file already exists on BGA Studio with the same time + size it assumed to be the same and won&#039;t be transferred. This makes the transfer process much quicker after the first time. If you&#039;re working with multiple developers on the same project and you find that it is transfers all files every time, you may want to add the option &#039;&#039;&#039;--ignore-time&#039;&#039;&#039; (if a file already exist on BGA Studio with the same size it is assumed to be the same and won&#039;t be transferred). Read [https://lftp.yar.ru/lftp-man.html the manual] for more details.&lt;br /&gt;
&lt;br /&gt;
This is one time sync (unless I am missing something this does not do continious sync?)&lt;br /&gt;
&lt;br /&gt;
==== File Sync using VSCode ====&lt;br /&gt;
You might rely on your IDE to sync the files with the SFTP server. Each time you &amp;quot;save&amp;quot; a file with your modifications, the IDE will also submit it to the sFTP server. These are instructions for VS Code&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Install this extension&#039;&#039;&#039; https://marketplace.visualstudio.com/items?itemName=liximomo.sftp (File-&amp;gt;Preferences-&amp;gt;Extensions ... type SFTP and Install)&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Open VSCode on an empty folder&#039;&#039;&#039; that will be the local root of your project.&lt;br /&gt;
&lt;br /&gt;
* Execute Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on Mac to open the command palette, and the type/run : &#039;&#039;&#039;&amp;quot;SFTP: config&amp;quot;&#039;&#039;&#039; - the edit will open with json config&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Update the json&#039;&#039;&#039; as below: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;name&amp;quot;: &amp;quot;BGA&amp;quot;,&lt;br /&gt;
    &amp;quot;host&amp;quot;: &amp;quot;1.studio.boardgamearena.com&amp;quot;,&lt;br /&gt;
    &amp;quot;protocol&amp;quot;: &amp;quot;sftp&amp;quot;,&lt;br /&gt;
    &amp;quot;port&amp;quot;: 22,&lt;br /&gt;
    &amp;quot;username&amp;quot;: &amp;quot;&amp;lt;your SFTP username&amp;gt;&amp;quot;,&lt;br /&gt;
    &amp;quot;password&amp;quot;: &amp;quot;&amp;lt;your SFTP password&amp;gt;&amp;quot;,&lt;br /&gt;
    &amp;quot;remotePath&amp;quot;: &amp;quot;/&amp;lt;your project name&amp;gt;/&amp;quot;,&lt;br /&gt;
    &amp;quot;uploadOnSave&amp;quot;: true,&lt;br /&gt;
    &amp;quot;ignore&amp;quot;: [&lt;br /&gt;
        &amp;quot;.vscode&amp;quot;,&lt;br /&gt;
        &amp;quot;.git&amp;quot;,&lt;br /&gt;
        &amp;quot;.DS_Store&amp;quot;&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- Execute Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on Mac to open the command palette, and the type/run : &#039;&#039;&#039;&amp;quot;SFTP: Download Project&amp;quot;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This will download all the files locally, and each time you modify/save a file in VSCode, it will upload it to the SFTP Server.&lt;br /&gt;
&lt;br /&gt;
=== Debuggers ===&lt;br /&gt;
&lt;br /&gt;
Browser is the best tool for JS/HTML5 debugging, see [[Practical debugging]] for details.&lt;br /&gt;
&lt;br /&gt;
=== Version Control ===&lt;br /&gt;
Studio provides svn for you code on server, there are some limited abilities there to see history and restore. I recommend to also keep your code in another repository, which allows keeping more fine-grained history and can simplify collaboration.&lt;br /&gt;
&lt;br /&gt;
A quick option is to use a local repo, which you can sync to cloud or backup.&lt;br /&gt;
&lt;br /&gt;
Other option is to host source code on github. If you do, the convention is to use github.com/&amp;lt;yourname&amp;gt;/bga-&amp;lt;yourgame&amp;gt;. It is recommended to add the [https://github.com/topics/boardgamearena boardgamearena] tag and add your repo to the list on the [[BGA_Code_Sharing]] page.&lt;br /&gt;
&lt;br /&gt;
If you publish the source somewhere externally, make sure you &#039;&#039;&#039;don&#039;t post high-res publisher graphics&#039;&#039;&#039;, only web resources, and post a separate license for graphics files. Also, &#039;&#039;&#039;don&#039;t include a file with your sftp password&#039;&#039;&#039; (github is automatically crawled for passwords by hackers; a hacking attempt occurred on BGA studio for this reason in June 2020).&lt;br /&gt;
&lt;br /&gt;
You can also configure github to automatically deploy to BGA whenever you push to a branch. See [https://forum.boardgamearena.com/viewtopic.php?f=12&amp;amp;t=13370&amp;amp;start=10#p59537 this forum post] for instructions.&lt;br /&gt;
&lt;br /&gt;
=== PHP CLI ===&lt;br /&gt;
Its handy to have php cli (command line) tools install to run php locally, so you can test some stuff without deployment cycle, or create some scripts that generate code or markup.&lt;br /&gt;
&lt;br /&gt;
=== Image Manipulation ===&lt;br /&gt;
==== ImageMagick ====&lt;br /&gt;
Handy set of image manipulation &#039;&#039;&#039;command line&#039;&#039;&#039; tools, useful to for example to stitch together bunch of images and re-size, to use as sprite (in Stock component for example). I.e. you got a graphics file from publisher where every tile is 600x600 PNG file in separate file. You want .jpg instead of .png to make it not like 20Mb, and combine all images in one column and re-size to 128x128:&lt;br /&gt;
&lt;br /&gt;
(Linux example)&lt;br /&gt;
 /usr/bin/montage  `ls Tiles*.png` -tile 1 -geometry 128x128+0+0 out/tiles128.jpg&lt;br /&gt;
&lt;br /&gt;
https://www.imagemagick.org/script/download.php&lt;br /&gt;
&lt;br /&gt;
==== Gimp ====&lt;br /&gt;
&lt;br /&gt;
GUI tool, very complex but will do ALL what you possibly need to do with game graphics&lt;br /&gt;
&lt;br /&gt;
https://www.gimp.org/&lt;br /&gt;
&lt;br /&gt;
==== Shrinking ====&lt;br /&gt;
&lt;br /&gt;
Shrink images without loss of quality https://tinypng.com/ or http://www.iloveimg.com/ &lt;br /&gt;
&lt;br /&gt;
==== PDF Scrapper ====&lt;br /&gt;
extract images from PDF file (i.e. game rulebook) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://www.ilovepdf.com/&lt;br /&gt;
&lt;br /&gt;
http://www.extractpdf.com/&lt;br /&gt;
&lt;br /&gt;
==== Rename/Copy project ====&lt;br /&gt;
&lt;br /&gt;
You can now override your project with any other project using Studio Control Panel.&lt;br /&gt;
&lt;br /&gt;
Alternatively there is a script available in sharedcode project to do the renaming which can be called in command line if you have php command line installed.&lt;br /&gt;
You need to have php clt (command line interface) installed, then you can download script and run it.&lt;br /&gt;
&lt;br /&gt;
https://github.com/elaskavaia/bga-sharedcode/blob/master/misc/bgaprojectrename.php&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 php bgaprojectrename.php &amp;lt;originalProjectPath&amp;gt; &amp;lt;copyOfProjectRenamedPath&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example on how to call it in command line  if you project name is &amp;quot;heartsmyproject&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 php7.0 git/bga-sharedcode/tools/bgaprojectrename.php remote/hearts/ remote/heartsmyproject/&lt;br /&gt;
&lt;br /&gt;
==== BGA Workbench ====&lt;br /&gt;
&lt;br /&gt;
PHP library providing tools to help manage BGA Studio projects including deployment and test utilities. https://github.com/danielholmes/bga-workbench&lt;br /&gt;
&lt;br /&gt;
=== Testing and validation tools ===&lt;br /&gt;
&lt;br /&gt;
* Run static analysis on your project to detect common problem and translation issues - project check - available from control panel - manage games - &amp;lt;your project&amp;gt; - Check project (blue button left middle)&lt;br /&gt;
* Check if web feature is supported https://caniuse.com/&lt;br /&gt;
* PHP: https://phpcodechecker.com/&lt;br /&gt;
* JS: http://esprima.org/demo/validate.html&lt;br /&gt;
* CSS: http://jigsaw.w3.org/css-validator/&lt;br /&gt;
&lt;br /&gt;
=== Other useful tools ===&lt;br /&gt;
&lt;br /&gt;
* Website with bunch of textures and sounds http://www.grsites.com/archive/textures/&lt;br /&gt;
* Shrink images without loss of quality https://tinypng.com/ or http://www.iloveimg.com/ (recommended by Gregory Isabelli)&lt;br /&gt;
* CSS shapes https://css-tricks.com/examples/ShapesOfCSS/&lt;br /&gt;
* PDF Scraper - extract images - http://www.extractpdf.com/&lt;br /&gt;
* Hexagonal Grids (from Red Blob Games) - https://www.redblobgames.com/grids/hexagons/&lt;br /&gt;
&lt;br /&gt;
== Client Tips ==&lt;br /&gt;
&lt;br /&gt;
=== Speed up game re-loading by disabling Input/Output debug section ===&lt;br /&gt;
&lt;br /&gt;
Development UI have few sections for debugging only, such as &#039;Input/Output debugging section&#039;. Loading this data will significantly slow down&lt;br /&gt;
your reload. I did some profiling and my reloading (i.e. F5) took 14 seconds, 12 of which it was dealing with loading this section. &lt;br /&gt;
If you not using it you can disable it. In your JavaScript code, in the begging of &#039;setup&#039; method add this code&lt;br /&gt;
&lt;br /&gt;
         dojo.destroy(&#039;debug_output&#039;);&lt;br /&gt;
&lt;br /&gt;
That should get rid of this section and overhead associated with loading it (it may have some other side-effects, I have not explored all of them)&lt;br /&gt;
&lt;br /&gt;
=== Speed up CSS development and layout ===&lt;br /&gt;
&lt;br /&gt;
Syncing files to server and refreshing is relative fast but still can take up to 20 seconds which is annoying.&lt;br /&gt;
If you working&lt;br /&gt;
a lot on css/images/layout you can speed it up by coping html in some state of the game to your local folder.&lt;br /&gt;
I.e. in your  project folder create directory misc/ and save your html as misc/test.html and changing path to css to load from local disk (and it will load your images to from local disk as well). &lt;br /&gt;
I.e. find something like&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; href=&amp;quot;http://1.studio.boardgamearena.com:8081/data/themereleases/151226-1240/games/mygame/999999-9999/mygame.css&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and replace with&lt;br /&gt;
   &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; href=&amp;quot;../mygame.css&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You project structure will look like this&lt;br /&gt;
&lt;br /&gt;
 mygame&lt;br /&gt;
   img/ &amp;lt;-- your images&lt;br /&gt;
   mygame.css  &amp;lt;-- your original css&lt;br /&gt;
   ...&lt;br /&gt;
   misc/&lt;br /&gt;
     test.html &amp;lt;-- your test html&lt;br /&gt;
&lt;br /&gt;
It is a bit tricky to save html exact state, if you do save as it also pulls all resources sometimes.&lt;/div&gt;</summary>
		<author><name>Tchobello</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpmachiavelli&amp;diff=3599</id>
		<title>Gamehelpmachiavelli</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpmachiavelli&amp;diff=3599"/>
		<updated>2019-09-24T19:43:43Z</updated>

		<summary type="html">&lt;p&gt;Tchobello: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Machiavelli is a card game that involves creating Rummy-style sets and runs. Players aim to play all the cards from their hand; the first player to do so wins.&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
Machiavelli uses two or more French decks, without including jokers. Each player starts with 15 cards in their hand. They play cards to the table to form combinations, trying to empty their hands the fastest. Players play in turn. In each turn, a player may play any number of cards (including zero), possibly rearranging cards on the table. A player can also draw a card. The turn then passes to the next player. The game runs until someone runs out of cards or the deck is depleted.&lt;br /&gt;
&lt;br /&gt;
== Combinations ==&lt;br /&gt;
Cards on the table must always form combinations. There are two types of combinations: sets and runs. In either case, a combination must always consist of at least three cards, and may never include two identical cards. A set is a collection of cards with equal rank (number). A run is a collection of cards with equal suit and consecutive ranks. The ranks are ordered as usual, except that aces are always low: A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
* 5♣ 5♦ 5♥ forms a set: there are at least three cards, none of which are identical, and all have the same rank.&lt;br /&gt;
* 5♣ 5♦ 5♥ 5♠ also forms a set for the same reasons.&lt;br /&gt;
* 5♣ 5♦ doesn&#039;t form a set: there are less than three cards.&lt;br /&gt;
* 5♣ 5♦ 5♦ doesn&#039;t form a set: there are identical cards.&lt;br /&gt;
* 5♣ 6♣ 7♣ forms a run: there are at least three cards, none of which are identical, all have the same suit, and the ranks are consecutive.&lt;br /&gt;
* 5♣ 6♣ 7♣ 8♣ also forms a run for the same reasons.&lt;br /&gt;
* 5♣ 6♣ doesn&#039;t form a run: there are less than three cards.&lt;br /&gt;
* 5♣ 6♣ 8♣ doesn&#039;t form a run: the ranks are not consecutive.&lt;br /&gt;
* A♣ 2♣ 3♣ forms a run; aces are low.&lt;br /&gt;
&#039;&#039;&#039;* Q♣ K♣ A♣ forms a run; aces are high.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Playing cards ==&lt;br /&gt;
During a player&#039;s turn, the player can play cards to the table, making sure that the table always consists of combinations. The player may introduce a new combination on the table, or they can add cards to an existing combination. As long as the player can play cards, they may do so; they may also stop at any time.&lt;br /&gt;
&lt;br /&gt;
For example, the table has the set 5♣ 5♦ 5♥. A player may play a combination, such as 6♣ 6♦ 6♥ or 6♣ 7♣ 8♣, or may extend the existing set by playing 5♠. They may even do both, if they have the appropriate cards. A player may add any number of cards to a single combination: extending A♣ 2♣ 3♣ to A♣ 2♣ 3♣ 4♣ 5♣ 6♣ 7♣ 8♣ 9♣ 10♣ J♣ Q♣ K♣ is allowed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Be careful, you are not allowed to play more than 13 cards per turn !&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Rearranging cards ==&lt;br /&gt;
One feature of Machiavelli is that players are allowed to rearrange cards on the table so that their cards can be included. The only condition is that at the end of the turn, all cards on the table must form combinations again; there can be no unmatched cards.&lt;br /&gt;
&lt;br /&gt;
In Board Game Arena, rearranging cards is done by picking the cards that are to be rearranged into the hand, and then playing them all back into combinations along with additional cards from the hand. Cards that are picked up from the table will be marked in red, and a player may not end their turn until all these cards are played. A player may decide to click &amp;quot;Restore&amp;quot;, which will forfeit their turn, identical to as if they don&#039;t play any card in the turn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
The table consists of a set 5♣ 5♦ 5♥ 5♠ and a run 6♣ 7♣ 8♣. The player wishes to play 4♣. The player removes the 5♣ off the set, adds it to the run, and adds the 4♣ to the run. The table now has a set 5♦ 5♥ 5♠ and a run 4♣ 5♣ 6♣ 7♣ 8♣.&lt;br /&gt;
&lt;br /&gt;
The table consists of three sets 5♣ 5♦ 5♥, 6♣ 6♦ 6♥, 7♣ 7♦ 7♥. The player wishes to play 8♣. The player rearranges the sets into runs 5♣ 6♣ 7♣, 5♦ 6♦ 7♦, 5♥ 6♥ 7♥, and adds the 8♣ to the first run. The table now has three runs 5♣ 6♣ 7♣ 8♣, 5♦ 6♦ 7♦, 5♥ 6♥ 7♥&lt;br /&gt;
&lt;br /&gt;
The table consists of two sets 6♣ 6♦ 6♥, 7♣ 7♦ 7♥. The player wishes to play 8♣ by taking the 6♣ and 7♣ off the sets to form a run 6♣ 7♣ 8♣. But this leaves unmatched cards 6♦ 6♥ 7♦ 7♥, so this move is illegal.&lt;br /&gt;
&lt;br /&gt;
== Ending a turn ==&lt;br /&gt;
A player may end a turn when the table doesn&#039;t have any unmatched cards. If a player ends the turn without playing any card, they must draw one card from the deck; otherwise, they don&#039;t draw any additional cards.&lt;br /&gt;
&lt;br /&gt;
== End of the game ==&lt;br /&gt;
If a player has no cards in his hand, he immediately wins.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Otherwise, if the deck is depleted, nobody wins.&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Tchobello</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpmachiavelli&amp;diff=3598</id>
		<title>Gamehelpmachiavelli</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpmachiavelli&amp;diff=3598"/>
		<updated>2019-09-24T19:41:52Z</updated>

		<summary type="html">&lt;p&gt;Tchobello: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Machiavelli is a card game that involves creating Rummy-style sets and runs. Players aim to play all the cards from their hand; the first player to do so wins.&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
Machiavelli uses two or more French decks, without including jokers. Each player starts with 15 cards in their hand. They play cards to the table to form combinations, trying to empty their hands the fastest. Players play in turn. In each turn, a player may play any number of cards (including zero), possibly rearranging cards on the table. A player can also draw a card. The turn then passes to the next player. The game runs until someone runs out of cards or the deck is depleted.&lt;br /&gt;
&lt;br /&gt;
== Combinations ==&lt;br /&gt;
Cards on the table must always form combinations. There are two types of combinations: sets and runs. In either case, a combination must always consist of at least three cards, and may never include two identical cards. A set is a collection of cards with equal rank (number). A run is a collection of cards with equal suit and consecutive ranks. The ranks are ordered as usual, except that aces are always low: A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
* 5♣ 5♦ 5♥ forms a set: there are at least three cards, none of which are identical, and all have the same rank.&lt;br /&gt;
* 5♣ 5♦ 5♥ 5♠ also forms a set for the same reasons.&lt;br /&gt;
* 5♣ 5♦ doesn&#039;t form a set: there are less than three cards.&lt;br /&gt;
* 5♣ 5♦ 5♦ doesn&#039;t form a set: there are identical cards.&lt;br /&gt;
* 5♣ 6♣ 7♣ forms a run: there are at least three cards, none of which are identical, all have the same suit, and the ranks are consecutive.&lt;br /&gt;
* 5♣ 6♣ 7♣ 8♣ also forms a run for the same reasons.&lt;br /&gt;
* 5♣ 6♣ doesn&#039;t form a run: there are less than three cards.&lt;br /&gt;
* 5♣ 6♣ 8♣ doesn&#039;t form a run: the ranks are not consecutive.&lt;br /&gt;
* A♣ 2♣ 3♣ forms a run; aces are low.&lt;br /&gt;
&#039;&#039;&#039;* Q♣ K♣ A♣ forms a run; aces are high.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Playing cards ==&lt;br /&gt;
During a player&#039;s turn, the player can play cards to the table, making sure that the table always consists of combinations. The player may introduce a new combination on the table, or they can add cards to an existing combination. As long as the player can play cards, they may do so; they may also stop at any time.&lt;br /&gt;
&lt;br /&gt;
For example, the table has the set 5♣ 5♦ 5♥. A player may play a combination, such as 6♣ 6♦ 6♥ or 6♣ 7♣ 8♣, or may extend the existing set by playing 5♠. They may even do both, if they have the appropriate cards. A player may add any number of cards to a single combination: extending A♣ 2♣ 3♣ to A♣ 2♣ 3♣ 4♣ 5♣ 6♣ 7♣ 8♣ 9♣ 10♣ J♣ Q♣ K♣ is allowed.&lt;br /&gt;
&lt;br /&gt;
== Rearranging cards ==&lt;br /&gt;
One feature of Machiavelli is that players are allowed to rearrange cards on the table so that their cards can be included. The only condition is that at the end of the turn, all cards on the table must form combinations again; there can be no unmatched cards.&lt;br /&gt;
&lt;br /&gt;
In Board Game Arena, rearranging cards is done by picking the cards that are to be rearranged into the hand, and then playing them all back into combinations along with additional cards from the hand. Cards that are picked up from the table will be marked in red, and a player may not end their turn until all these cards are played. A player may decide to click &amp;quot;Restore&amp;quot;, which will forfeit their turn, identical to as if they don&#039;t play any card in the turn.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Be careful, you are not allowed to play more than 13 cards per turn !&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
The table consists of a set 5♣ 5♦ 5♥ 5♠ and a run 6♣ 7♣ 8♣. The player wishes to play 4♣. The player removes the 5♣ off the set, adds it to the run, and adds the 4♣ to the run. The table now has a set 5♦ 5♥ 5♠ and a run 4♣ 5♣ 6♣ 7♣ 8♣.&lt;br /&gt;
&lt;br /&gt;
The table consists of three sets 5♣ 5♦ 5♥, 6♣ 6♦ 6♥, 7♣ 7♦ 7♥. The player wishes to play 8♣. The player rearranges the sets into runs 5♣ 6♣ 7♣, 5♦ 6♦ 7♦, 5♥ 6♥ 7♥, and adds the 8♣ to the first run. The table now has three runs 5♣ 6♣ 7♣ 8♣, 5♦ 6♦ 7♦, 5♥ 6♥ 7♥&lt;br /&gt;
&lt;br /&gt;
The table consists of two sets 6♣ 6♦ 6♥, 7♣ 7♦ 7♥. The player wishes to play 8♣ by taking the 6♣ and 7♣ off the sets to form a run 6♣ 7♣ 8♣. But this leaves unmatched cards 6♦ 6♥ 7♦ 7♥, so this move is illegal.&lt;br /&gt;
&lt;br /&gt;
== Ending a turn ==&lt;br /&gt;
A player may end a turn when the table doesn&#039;t have any unmatched cards. If a player ends the turn without playing any card, they must draw one card from the deck; otherwise, they don&#039;t draw any additional cards.&lt;br /&gt;
&lt;br /&gt;
== End of the game ==&lt;br /&gt;
If a player has no cards in his hand, he immediately wins.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Otherwise, if the deck is depleted, nobody wins.&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Tchobello</name></author>
	</entry>
	<entry>
		<id>https://en.doc.boardgamearena.com/index.php?title=Gamehelpmachiavelli&amp;diff=3587</id>
		<title>Gamehelpmachiavelli</title>
		<link rel="alternate" type="text/html" href="https://en.doc.boardgamearena.com/index.php?title=Gamehelpmachiavelli&amp;diff=3587"/>
		<updated>2019-09-11T07:50:00Z</updated>

		<summary type="html">&lt;p&gt;Tchobello: /* End of the game */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Machiavelli is a card game that involves creating Rummy-style sets and runs. Players aim to play all the cards from their hand; the first player to do so wins.&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
Machiavelli uses two or more French decks, without including jokers. Each player starts with 15 cards in their hand. They play cards to the table to form combinations, trying to empty their hands the fastest. Players play in turn. In each turn, a player may play any number of cards (including zero), possibly rearranging cards on the table. A player can also draw a card. The turn then passes to the next player. The game runs until someone runs out of cards or the deck is depleted.&lt;br /&gt;
&lt;br /&gt;
== Combinations ==&lt;br /&gt;
Cards on the table must always form combinations. There are two types of combinations: sets and runs. In either case, a combination must always consist of at least three cards, and may never include two identical cards. A set is a collection of cards with equal rank (number). A run is a collection of cards with equal suit and consecutive ranks. The ranks are ordered as usual, except that aces are always low: A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
* 5♣ 5♦ 5♥ forms a set: there are at least three cards, none of which are identical, and all have the same rank.&lt;br /&gt;
* 5♣ 5♦ 5♥ 5♠ also forms a set for the same reasons.&lt;br /&gt;
* 5♣ 5♦ doesn&#039;t form a set: there are less than three cards.&lt;br /&gt;
* 5♣ 5♦ 5♦ doesn&#039;t form a set: there are identical cards.&lt;br /&gt;
* 5♣ 6♣ 7♣ forms a run: there are at least three cards, none of which are identical, all have the same suit, and the ranks are consecutive.&lt;br /&gt;
* 5♣ 6♣ 7♣ 8♣ also forms a run for the same reasons.&lt;br /&gt;
* 5♣ 6♣ doesn&#039;t form a run: there are less than three cards.&lt;br /&gt;
* 5♣ 6♣ 8♣ doesn&#039;t form a run: the ranks are not consecutive.&lt;br /&gt;
* A♣ 2♣ 3♣ forms a run; are low.&lt;br /&gt;
* Q♣ K♣ A♣ doesn&#039;t form a run; aces are not high.&lt;br /&gt;
&lt;br /&gt;
== Playing cards ==&lt;br /&gt;
During a player&#039;s turn, the player can play cards to the table, making sure that the table always consists of combinations. The player may introduce a new combination on the table, or they can add cards to an existing combination. As long as the player can play cards, they may do so; they may also stop at any time.&lt;br /&gt;
&lt;br /&gt;
For example, the table has the set 5♣ 5♦ 5♥. A player may play a combination, such as 6♣ 6♦ 6♥ or 6♣ 7♣ 8♣, or may extend the existing set by playing 5♠. They may even do both, if they have the appropriate cards. A player may add any number of cards to a single combination: extending A♣ 2♣ 3♣ to A♣ 2♣ 3♣ 4♣ 5♣ 6♣ 7♣ 8♣ 9♣ 10♣ J♣ Q♣ K♣ is allowed.&lt;br /&gt;
&lt;br /&gt;
== Rearranging cards ==&lt;br /&gt;
One feature of Machiavelli is that players are allowed to rearrange cards on the table so that their cards can be included. The only condition is that at the end of the turn, all cards on the table must form combinations again; there can be no unmatched cards.&lt;br /&gt;
&lt;br /&gt;
In Board Game Arena, rearranging cards is done by picking the cards that are to be rearranged into the hand, and then playing them all back into combinations along with additional cards from the hand. Cards that are picked up from the table will be marked in red, and a player may not end their turn until all these cards are played. A player may decide to click &amp;quot;Restore&amp;quot;, which will forfeit their turn, identical to as if they don&#039;t play any card in the turn.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
The table consists of a set 5♣ 5♦ 5♥ 5♠ and a run 6♣ 7♣ 8♣. The player wishes to play 4♣. The player removes the 5♣ off the set, adds it to the run, and adds the 4♣ to the run. The table now has a set 5♦ 5♥ 5♠ and a run 4♣ 5♣ 6♣ 7♣ 8♣.&lt;br /&gt;
&lt;br /&gt;
The table consists of three sets 5♣ 5♦ 5♥, 6♣ 6♦ 6♥, 7♣ 7♦ 7♥. The player wishes to play 8♣. The player rearranges the sets into runs 5♣ 6♣ 7♣, 5♦ 6♦ 7♦, 5♥ 6♥ 7♥, and adds the 8♣ to the first run. The table now has three runs 5♣ 6♣ 7♣ 8♣, 5♦ 6♦ 7♦, 5♥ 6♥ 7♥&lt;br /&gt;
&lt;br /&gt;
The table consists of two sets 6♣ 6♦ 6♥, 7♣ 7♦ 7♥. The player wishes to play 8♣ by taking the 6♣ and 7♣ off the sets to form a run 6♣ 7♣ 8♣. But this leaves unmatched cards 6♦ 6♥ 7♦ 7♥, so this move is illegal.&lt;br /&gt;
&lt;br /&gt;
== Ending a turn ==&lt;br /&gt;
A player may end a turn when the table doesn&#039;t have any unmatched cards. If a player ends the turn without playing any card, they must draw one card from the deck; otherwise, they don&#039;t draw any additional cards.&lt;br /&gt;
&lt;br /&gt;
== End of the game ==&lt;br /&gt;
If a player has no cards in his hand, he immediately wins.&lt;br /&gt;
&lt;br /&gt;
Otherwise, if the deck is depleted, nobody wins.&lt;/div&gt;</summary>
		<author><name>Tchobello</name></author>
	</entry>
</feed>