###minimax-alg
- Node js running
- npm - Node package manager
Minimax algorithm implementation with D3 visualization of results
It runs with Node JS.
To run issue this commands:
$ npm install
$ node webserver.js
To set a tree just modify the file setup.json, it has the following structure:
{
"root":"<name of root node>",
"nodes":[ // Array of nodes
{
"name":"<node1>", // name of node
"value":"<unset>" // value - unset if is not a leaf, value otherwise
}
],
"relations":[ // Array of relations
{
"parent":"<node1>" // name of parent node,
"children":"<node2>, <node3>, <node4>" // List of children nodes
}
]
}
or modified directly on the index.html the string that's on the textarea and update the tree.
The web server will start listening on localhost port 3000, with the url: localhost:3000/index.html
The project is deployed on Heroku: http://minimax-alg.herokuapp.com/index.html