Skip to content

Commit

Permalink
Merge branch 'v1.2.9' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisSoemers committed Sep 14, 2021
2 parents 358dd18 + dc92947 commit 8cac8e1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
/.project
/.README.md.html
*.iml
/ludii.trl
/ludii_preferences.json
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Alternatively, the following email address may be used: `ludii(dot)games(at)gmai

## Changelog

- 14 September, 2021: Updated repository for new version 1.2.9 of Ludii.
- 23 April, 2021: Updated repository for compatibility with new version 1.1.17 of Ludii.
- 12 February, 2021: Updated repository for compatibility with new version 1.1.14 of Ludii.
- 2 November, 2020: Updated repository for compatibility with new version 1.1.0 of Ludii.
Expand Down
33 changes: 33 additions & 0 deletions src/main/LaunchLudii.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package main;

import app.StartDesktopApp;
import manager.ai.AIRegistry;
import mcts.ExampleDUCT;
import mcts.ExampleUCT;
import random.RandomAI;

/**
* The main method of this launches the Ludii application with its GUI, and registers
* the example AIs from this project such that they are available inside the GUI.
*
* @author Dennis Soemers
*/
public class LaunchLudii
{

/**
* The main method
* @param args
*/
public static void main(final String[] args)
{
// Register our example AIs
AIRegistry.registerAI("Example Random AI", () -> {return new RandomAI();}, (game) -> {return true;});
AIRegistry.registerAI("Example UCT", () -> {return new ExampleUCT();}, (game) -> {return new ExampleUCT().supportsGame(game);});
AIRegistry.registerAI("Example DUCT", () -> {return new ExampleDUCT();}, (game) -> {return new ExampleDUCT().supportsGame(game);});

// Run Ludii
StartDesktopApp.main(new String[0]);
}

}

0 comments on commit 8cac8e1

Please sign in to comment.