• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AdamStelmaszczyk / gtsa / 477 / 1
88%
master: 88%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2021 06:58PM UTC
Files 10
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Oct 2021 06:58PM UTC coverage: 89.424% (-0.1%) from 89.566%
477.1

push

travis-ci-com

Adam Stelmaszczyk
Fix the UCT maximization

This fixes a severe bug that was making MCTS + UCT much weaker.
Root player moves was corractly taken as:

max(ratio + UCT)

However, for the opponent wrong moves were taken:

min(ratio - UCT)

I thought it was doing:

min(- ratio - UCT)

which would be correct.

Right now I also simplified by always taking max - ratio (score)
is always stored with the respect to the player_to_move.

So e.g. root player has score = 0.7. However on opponent turn
we also want to take max, so want to have score 0.3 (for the same state).
To do this I pass "player" argument to the get_uct function,
to get UCT with respect to that player.

It passes all the units test, it also wins with Minimax(0.1)
when given 10s (does ~70-90k simulations). When given 1s (~7k simulations)
it loses. In 0.1s Minimax looks at ~80k positions, so MCTS is much slower.
There is probably a lot of optimization space in MCTS, e.g. unordered_set.
Also not sure that get_most_visited_move is the best choice, will test that later.

761 of 851 relevant lines covered (89.42%)

266300.09 hits per line

Source Files on job 477.1
  • Tree
  • List 0
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 464
  • Travis Job 477.1
  • 816dd55f on github
  • Prev Job for on master (#476.1)
  • Next Job for on master (#478.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc