If you see this message, it means that your browser failed to load this file.

You should try the following : check your connection, disable ad-blocker, clear your browser cache, try in private mode, try from another browser/computer/connection.

Home »
BGA Studio
(for web developers)

• You are a web developer fluent in server side (PHP, SQL) and client side (HTML, Javascript) languages

So this presentation looks easy and fun to you.

• You want full access to the BGA development stack to develop complex games (but we still advise you to start with something simple for your first game!)

Check the documentation and tutorials to get started!

BGA Sandbox
(for everyone)

• You want to set your game material on a virtual table with an easy to use "Powerpoint for Board Games" tool, and play with it immediately

Start the Sandbox and build your interface now!

• You have some development experience allowing you to use a simple scripting language to implement the rules

Check the documentation for scripting the rules!

What is BGA Studio?

Getting started

4 slideshare presentations to get ready to use BGA Studio in 30 minutes:

Reference Documentation

This page comes from BGA wiki, and has been written by BGA players community. Feel free to edit it!

What is Board Game Arena Studio?

Board Game Arena Studio is a platform to build online board game adaptations using the Board Game Arena platform.

It is open to any gamer with software development skills :)

BGA Studio website: http://en.studio.boardgamearena.com

Original announcement on BGA forum: http://forum.boardgamearena.com/viewtopic.php?f=10&t=1973

How to join the BGA developer team?

Please see this page: How to join BGA developer team?

Great, I'm in! ... How should I start?

If you didn't already, check the presentations at the top of this page to get the basics.

Then, you should checkout the First steps with BGA Studio to make sure that runs fine.

After that, we strongly advise you to take one of these game creation tutorials:

Then start editing files and see what happens! ;)

Once you done with tutorials, you can start a real game (or join existing project)

If you have any questions, please check out the Studio FAQ first, then if you didn't find the answer you were looking for, please post your question on the development forum.

BGA Studio documentation

BGA Studio Framework reference

This part of the documentation focuses on the development framework itself: functions and methods available to build your game.

File structure of a BGA game

Game logic (Server side)

Game interface (Client side)

Other components

BGA Studio game components reference

Game components are useful tools you can use in your game adaptations.

  • Deck: a PHP component to manage cards (deck, hands, picking cards, moving cards, shuffle deck, ...).
  • Counter: a JS component to manage a counter that can increase/decrease (ex: player's score).
  • Scrollmap: a JS component to manage a scrollable game area (useful when the game area can be infinite. Examples: Saboteur or Takenoko games).
  • Stock: a JS component to manage and display a set of game elements displayed at a position.
  • Zone: a JS component to manage a zone of the board where several game elements can come and leave, but should be well displayed together (See for example: token's places at Can't Stop).

Undocumented component (if somebody knows please help with docs)

  • Draggable: a JS component to manage drag'n'drop actions.
  • ExpandableSection: a JS component to manage a rectangular block of HTML than can be displayed/hidden.
  • Wrapper: a JS component to wrap a <div> element around its child, even if these elements are absolute positioned.

BGA Studio user guide

This part of the documentation is a user guide for the BGA Studio online development environment.


Please remember me

Join the BGA Studio developers team

To start developing on BGA Studio and get access to development environment, you need to create an account below.

Personal infos provided in this form is NOT shown to anyone but BGA Studio admin, and is NOT used for any other purpose that BGA Studio organization.

(Must be valid. We may remove accounts from developers we can't contact.)

(3 to 20 characters. No space, no number, no special characters)

(The exact username you are using on BGA)

Important: we need your REAL name to attribute your work on the Studio & to send you stuff by Post when needed.

Important: we need your REAL name to attribute your work on the Studio & to send you stuff by Post when needed.

Please enter the security code you see

I agree to Terms&conditions for developers of BGA Studio.


Need advice for newbie


I'm seeking for an advice as a non-programmer who is interested in learning programming. I have only very basic idea of what is coding. After I have heard about AlphaGo Zero, one thing pops up in my mind.

OK, now human's winning rate against AI is close to 0% in Go, but how about other games? If Alpha Zero learns how to play Lost Cities, is it going to win all the time? Unlike Go, most board games have some random aspect so I believe even Alpha Zero cannot win Lost cities all the time. I guess the winning rate might be 80% or something? What I want to study - perhaps life long dream - is to estimate the winning rate of many board games against AI. Go is 0% and the other extreme would be flip a coin game which is purely random so that AI's winning rate cannot be more than 50%. I believe AI's winning rate against human for most of the board games are in between 50% - 100% and it partially depends on how much random aspects are in each game.

To pursue my goal, I need to learn how to simulate board game, create decent AI and calculate it's winning rate against human. Is there anyone who can give me an advice where I should start? Is there any recommended programming language for this purpose? Can I use BGA studio for this purpose?

Thanks in advance.
02/27/2020 1 comment

No Access to 'the 5 Presentations' from China.

Hi there,

I live in China mainland and I cannot access the 'Discover BGA Studio in 5 presentations' at 'BGA Studio doc', because they are on the web site slideshare.net, which is blocked by the Great Firewall of China.

I wonder if there is any other ways to reach these presentations, or if it is possible for someone to upload these presentations to this forum via attachment, which I have access to, or send these files to me via email, or via sftp, etc.

I will share these files to Baidu Netdick which is available and reliable in China so that future Chinese developer can get them easily.

Thank you

Leng Nanlyu
02/23/2020 2 comments

struggling with dojo

hello, i'm been looking for what is wrong for several days...
I can't find it and I always get a
Javascript error:
During notification placeDarkTile
Cannot read property 'ownerDocument' of null
TypeError: Cannot read property 'ownerDocument' of null
at Object.place
at Object.placeDarkTile
at Object.notif_placeDarkTile

var jstpl_darktile = '<div id="darknesstile_${id}" class="darktile darktile_${type}"></div>';

.darktile {
background-image: url('img/darkness.jpg');
background-size: 1000% 600%;
width: 75px;
position: absolute;

.darktile_1 { background-position: -0% -0%; height: 75px; }
.darktile_2 { background-position: -100% -0%; height: 150px; }
.darktile_30 { background-position: -200% -0%; height: 225px;}
function illuminate( $illuminator_id, $x, $y, $dir )
$darktile_type = bga_rand(1,30);
self::notifyAllPlayers( 'placeDarkTile', clienttranslate('${player_name}`s ${illuminator_name} illuminates ${x} - ${y} with darktile ${darktile_type}'), array(
'i18n' => array( 'illuminator_name' ),
'player_name' => self::getActivePlayerName(),
'illuminator_name' => $this->token_types[ $illuminator['type'] ]['name'],
'darktile_type' => $darktile_type,
'x' => $x,
'y' => $y
) );

notif_placeDarkTile: function( notif )
this.placeDarkTile( notif.args.x, notif.args.y, notif.args.darktile_type );
placeDarkTile: function( x, y, darktile_type )
dojo.place( this.format_block( 'jstpl_darktile', {
id :darktile_type,
type: darktile_type
} ), 'darktiles' );

this.placeOnObject( 'darknesstile_'+id, 'square_'+x+'_'+y );
02/18/2020 5 comments

Application loading ... ...
THANK YOU : You are one of our most loyal players!
Get the best from Board Game Arena for only €2 / month.