Sure! Here's an example of a simple fighting game implemented as a single HTML file using JavaScript. Please note that this is a basic example and can be expanded upon to enhance the gameplay and add more features.
To play the game, simply open the HTML file in a web browser, and you'll see the battle stats between Player 1 and Player 2. Player 1 can attack by clicking anywhere on the screen, while Player 2 can attack by pressing any keyboard key.
Please note that this is a simple example meant to showcase the basic structure of a fighting game. You can expand upon it by adding more features, animations, character selection, special attacks, etc.