-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add differents elements of the mcts cpp algorithm. Currently, error w…
…ith the terminal state
- Loading branch information
Showing
16 changed files
with
799 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef GMDS_MCTSAGENT_H | ||
#define GMDS_MCTSAGENT_H | ||
|
||
#include <gmds/rlBlocking/MCTSTree.h> | ||
/*----------------------------------------------------------------------------------------*/ | ||
namespace gmds { | ||
/*----------------------------------------------------------------------------------------*/ | ||
class LIB_GMDS_RLBLOCKING_API MCTSAgent | ||
{ | ||
// example of an agent based on the MCTS_tree. One can also use the tree directly. | ||
MCTSTree *tree; | ||
int max_iter, max_seconds, max_same_quality; | ||
|
||
public: | ||
MCTSAgent(MCTSState *starting_state, int max_iter = 100000, int max_seconds = 30, int max_same_quality=3); | ||
~MCTSAgent(); | ||
const MCTSMove *genmove(); | ||
const MCTSState *get_current_state() const; | ||
void feedback() const {tree->print_stats();} | ||
}; | ||
} | ||
/*----------------------------------------------------------------------------------------*/ | ||
#endif // GMDS_MCTSAGENT_H | ||
/*----------------------------------------------------------------------------------------*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.