This is a web application for a board game calculator. The game is called Eclipse and it is a 4X game (eXplore, eXpand, eXploit, eXterminate). The game is played on a hexagonal grid and the players have to manage their resources, research new technologies, build ships and conquer new territories.
For a given ship battle, this calculator gives the win chance, and the survival chance for each ship. The calculator doesn't use a Monte Carlo method to simulate the battle, but it uses advanced tools of decision theory known as Bellman value function programming to compute win chance.
The website is hosted on a Flask server and you can access it here.
To install the web application, you need to have Node.js installed on your computer. Then, you can install the dependencies with the following commands:
npm install
To run the web application, you can use the following command:
npm run dev
This command will start a development server and open the web application in your default browser.
To build the web application, you can use the following command:
npm run build
This command will create a dist
folder with the web application ready to be deployed.
- React for the web application framework
- Vite for the web application bundler
- React hook form for the form management
- D3.js for the data visualization