I have created a combat simulation tool in Kotlin for an online gaming community. Users can input the combat levels of two players, choose the number of duels to simulate, and then initiate the simulation which will provide win percentages and other stats. It can perform 100,000 simulations in less than 2 seconds on my laptop.
However, I am struggling with transferring this tool to a website as I am still learning HTML, CSS, and JavaScript. Some options I've considered are:
- Transforming it into an applet/application (although I heard this is deprecated in Java) and embedding it on my webpage,
- Converting it to JavaScript to run on users' browsers (but concerned about speed or potential copying),
- Creating a form on my page to send user details to a server for processing and displaying results with a loading animation.
Any advice on how to proceed would be greatly appreciated - recommendations on what to learn and where to find reliable information.