Early version of an AI you can practice TFM against

Forum rules
Please DO NOT POST BUGS on this forum. Please report (and vote) bugs on : https://boardgamearena.com/bugs
AReallyGoodName123
Posts: 7
Joined: 01 January 2025, 21:12

Re: Early version of an AI you can practice TFM against

Post by AReallyGoodName123 »

Lots of bug fixes made. Should play at a much much higher level now.

Since arena season as started you’ll need to select ‘play’ and ‘turn based’ with tfmbot added as a friend to see the games.

https://imgur.com/a/c2pJJIq
User avatar
Lytical
Posts: 79
Joined: 07 May 2026, 00:51

Re: Early version of an AI you can practice TFM against

Post by Lytical »

There is a document or change log and stat sheet for us to pore over? Like a documentation for all the player data.
landus
Posts: 35
Joined: 30 July 2025, 16:32

Re: Early version of an AI you can practice TFM against

Post by landus »

Cool bot! I think it would perform better with „Don’t SP Cities” hardcoded. There are some other frequent mistakes such as not taking greenery conversion lines.
User avatar
Lytical
Posts: 79
Joined: 07 May 2026, 00:51

Re: Early version of an AI you can practice TFM against

Post by Lytical »

Yeah the sp city part of the bot is really damaging for its winning chances. It does a fantastic job on early awards but more than once or twice I saw it blunder the final award fund. There are even instances that it fund an award that benefited me for 20mc. It's really bad on milestone managements, the easily part to exploit when up against the bot.
User avatar
Lytical
Posts: 79
Joined: 07 May 2026, 00:51

Re: Early version of an AI you can practice TFM against

Post by Lytical »

Also, tfmbot likes to play out his whole hand rather than passing and/or waiting for better combos. Maybe implement something like don't play ice asteroid till media/optimal/arctic algae/earth cat/mass/quantum/outpost, unless able to convert greenery, or till cash+titanium value over 50mc. Draft/buy according to knight's card ranking and pass if none of the conditions are met. Relative card purchase according to generation/prod and card draw values.

For the city, no city unless able to score 3+ VP within next two turns. Prioritize the four major city spots on Tharsis in relative rebate value rather than simply taking the eastern spot if available.
AReallyGoodName123
Posts: 7
Joined: 01 January 2025, 21:12

Re: Early version of an AI you can practice TFM against

Post by AReallyGoodName123 »

A few improvements incoming:

- I now have a jovian scorer. In theory I'd like this to train purely on the nets but it was playing multipliers alone because it learnt 'they're good cards'. So just added a block of code to manually score this in place of learnt information. Jovian points with multipliers seem a bit too deep for this bot to get and i don't have the money to train a really large deep net so things like this need some helper code.

- It should now counter draft. I never had the nets wired up to "what cards would the other player want". They are there and training now and should deny based on what cards it would want if you."

- Milestone risks tightened up. It see's ending turn 2 cities/greneries behind if opponent goes first next turn as risky.

- Awards risks fixed. Eg. buying mining when starting as IC clearly wrong. I didn't have anything estimating buy down of current resources so it just saw "20 ahead" with no thought to generations left. Now in place.

- Placement grid now matches the AI. Expect improved placements. There was a BGA<>internal AI mismatch before

- Draft picks and buys use the same neural net. It diverged and i had two nets for what should be the same thing. The draft picks was using one from many generations ago.

- If there's cards with requirements some weighting is now given to things that help meet the requirements. Eg. Science tags for mass converter or oceans for Kelp.


The above should bump the AI difficulty reasonably high. Have fun and good luck! :)
User avatar
Lytical
Posts: 79
Joined: 07 May 2026, 00:51

Re: Early version of an AI you can practice TFM against

Post by Lytical »

https://boardgamearena.com/tableview?table=886277327

tfmbot's draft felt worse in this game, he passed back Anti Grav for trash.
AReallyGoodName123
Posts: 7
Joined: 01 January 2025, 21:12

Re: Early version of an AI you can practice TFM against

Post by AReallyGoodName123 »

Yeah agreed. Root cause is i wanted it to consider how corp+prelude+cards go together.

The problem is that's all it was really considering.

This game https://boardgamearena.com/archive/repl ... s=96099926; gives away the issue. Heat + heat preludes and UNMI? I'm in!

It wasn't weighing in "Cheung Shing Mars is 10x better, screw the combo".

Fixed.
User avatar
Lytical
Posts: 79
Joined: 07 May 2026, 00:51

Re: Early version of an AI you can practice TFM against

Post by Lytical »

Of course, engine moves are beyond normal human comprehension, but I think it's safe to say we can rank UNMI way down the pick ranking on Tharsis. The same for Inventrix for 3p. Maybe because I am trying harder, but the bot before your latest post felt easier.
landus
Posts: 35
Joined: 30 July 2025, 16:32

Re: Early version of an AI you can practice TFM against

Post by landus »

I doubt corps’ ranking would make tfmbot play better. Looks like a short-sighted fix. What changes the odds massively in favour of CSM in said game is AGT/InventionContest and a pair of great steel cards (Carbonate/GhgFactories) that double with the heat preludes.
Post Reply

Return to “Terraforming Mars”