Integrating planning tool for Terra Mystica

Game development with Board Game Arena Studio
Post Reply
User avatar
Rincevent123
Posts: 9
Joined: 16 March 2020, 19:37

Integrating planning tool for Terra Mystica

Post by Rincevent123 »

Hi,
I have created a small online planning tool for Terra Mystica to plan player next round in advance (you can find it here: https://rincevent.github.io/TerraMysticaTurnCalculator/).
Currently it is pretty simple but I would like to enhance it for instance to compute expected scoring and expected resource income for the next round. However to do that I would need to have access to the game data for a given player(e.g; how many structure are already built, what favor and scoring tile are in play, etc.).

My question is two fold:
- Is there a way to access such information about a given game from the outside of Board Game Arena maybe through public API (with the player having to be logged in to BGA to access the info)?
- If not, would it be possible to integrate such tool directly inside BGA and then have a direct access to the data needed? The snellman platform already provides such planning tool for their TM game. I believe it could benefit the player to have access to such a tool in game on BGA as well.
User avatar
PurplishCat
Posts: 11
Joined: 29 November 2016, 05:02

Re: Integrating planning tool for Terra Mystica

Post by PurplishCat »

Short answer: It's software; anything is possible.

Longer answer: I don't think expecting an API to get Terra Mystica game state is realistic. But Terra Mystica is open information. You can write a screen scraper to read the data from a player's screen. You could also write a GreaseMonkey script or whatever to automate it.
User avatar
Rincevent123
Posts: 9
Joined: 16 March 2020, 19:37

Re: Integrating planning tool for Terra Mystica

Post by Rincevent123 »

OK thanks, I hoped to avoid having to write a screen scraper but if there is no other ways that is what I will do then.
User avatar
Tisaac
Posts: 2736
Joined: 26 August 2014, 21:28

Re: Integrating planning tool for Terra Mystica

Post by Tisaac »

Rincevent123 wrote: 30 October 2020, 09:56 OK thanks, I hoped to avoid having to write a screen scraper but if there is no other ways that is what I will do then.
I would strongly advise to first read threads on the 7Wonders forum about Pythia :
https://boardgamearena.com/forum/viewto ... 92&t=16538
User avatar
RicardoRix
Posts: 2540
Joined: 29 April 2012, 23:43

Re: Integrating planning tool for Terra Mystica

Post by RicardoRix »

Rincevent123 wrote: 29 October 2020, 10:50 - Is there a way to access such information about a given game from the outside of Board Game Arena maybe through public API (with the player having to be logged in to BGA to access the info)?
Yes there is, a much more direct and easy way, bring all the goodness that you have in mind to everyone in a fair way, Just add any additional functionality to the game code itself. Best would be to add a game option to turn this stuff on or off as the table creator prefers.
https://en.studio.boardgamearena.com/

Do not go down the Pythia route.
User avatar
Rincevent123
Posts: 9
Joined: 16 March 2020, 19:37

Re: Integrating planning tool for Terra Mystica

Post by Rincevent123 »

Thanks for the info.
I will integrate it in the game if is possible.

Somebody called aIex in BGA Studio and TheRedMachine in BGA is the admin for the game. Do you know how I could contact him to talk about this?
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Integrating planning tool for Terra Mystica

Post by Victoria_La »

Terra Mystica is done by Een - bga admin, you would have to ask him directly
Post Reply

Return to “Developers”