/connect-four

Connect Four With AI

Primary LanguageJavaScript

Connect Four With AI

This is the popular game Connect Four implemented with NodeJS 6.9.1 and React 15.0.2/Redux 3.5.2. You can play against another Player or AI. There currently two different AI's in the game:

  • Q-Learning
  • Monte Carlo Tree Search

It is also possible to start training sessions for the AI or to let two AI's play against each other.

Getting Started

The generated project includes a development server on port 3000, which will rebuild the app whenever you change application code. To start the server (with the dev-tools enabled), run:

$ npm start

To run the server with the dev-tools disabled, run:

$ DEBUG=false npm start

To build for production, this command will output optimized production code:

$ npm run build

To run test use this command:

$ npm test

There are also some performance test for some critical functions. To run the use this command:

$ npm run perf