# Bringing Monte Carlo tree search to Wolfram Language

**URL:** <https://community.wolfram.com/t/bringing-monte-carlo-tree-search-to-wolfram-language/24683>\
**Category:** Staff Picks\
**Tags:** computer-science, game-development, graphics-and-visualization, graphs-and-networks, tuning-and-debugging, staff-pick\
**Created:** [October 20, 2024, 5:30am UTC](https://community.wolfram.com/t/bringing-monte-carlo-tree-search-to-wolfram-language/24683 "2024-10-20T05:30:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayli4](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/ayli4/32/22874_2.png) [@ayli4](https://community.wolfram.com/u/ayli4)\
**Post date:** [October 20, 2024, 5:30am UTC](https://community.wolfram.com/t/bringing-monte-carlo-tree-search-to-wolfram-language/24683/1 "2024-10-20T05:30:05Z")

</div>

![8740hero.png](https://global.discourse-cdn.com/wolfram/original/2X/3/3c104d63151bde88f3bd8cf50e8a6cb1b288920b.png)

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/1e1344bf-0abd-44c5-97cb-e5f2951fbf88)

[DOWNLOAD-DESKTOP-NOTEBOOK.nb](https://community.wolfram.com/uploads/short-url/kSB805DTJfD6zRGiyGVrPj0zNHj.nb) (2.25 MB)

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [October 21, 2024, 4:58pm UTC](https://community.wolfram.com/t/bringing-monte-carlo-tree-search-to-wolfram-language/24683/2 "2024-10-21T16:58:20Z")

</div>

![news-congrads-kkluyshnik-02-04-19.jpg](https://global.discourse-cdn.com/wolfram/original/3X/6/a/6a310c2d0904616faf4e6e148260c9f29ab9f4eb.jpeg) – you have earned _ **Featured Contributor Badge** _ ![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)  
Your exceptional post has been selected for our editorial column _ **Staff Picks** _ [http://wolfr.am/StaffPicks](http://wolfr.am/StaffPicks) and [Your Profile](http://community.wolfram.com/web/ayli4) is now distinguished by a _ **Featured Contributor Badge** _ and is displayed on the [Featured Contributor Board](https://community.wolfram.com/people). Thank you!

---

<div class="post-metadata">

**Author:** ![bmekala8](https://avatars.discourse-cdn.com/v4/letter/b/b4bc9f/32.png) [@bmekala8](https://community.wolfram.com/u/bmekala8)\
**Post date:** [November 21, 2024, 12:28pm UTC](https://community.wolfram.com/t/bringing-monte-carlo-tree-search-to-wolfram-language/24683/3 "2024-11-21T12:28:16Z")

</div>

Wow Andrea! I was not aware of the untapped potential present within MCTS. This paper served as a great introduction to the topic for someone completely unfamiliar with the field. I appreciate you breaking down each component of the algorithm and showing the relevant math. Your feat of generalizing the algorithm to work in a modular way with all types of games is particularly impressive.  
The detailed analysis of how different parameters like UCB functions, exploration constants, and iteration counts impact the algorithm’s performance was fascinating. Along with the comparisons to minimax, these really helped me understand how MCTS learns through iterations, and also showcased its true potential.  
Looking forward to your future work!
