Sure, here's an example of a simple text-based game implemented as a single HTML file using JavaScript. It uses pictograms to represent the different classes and allows the player to choose their role in the game. Please note that this is a basic implementation and can be expanded upon to include more features.
To play the game, simply open the HTML file in a web browser, and it will prompt you to choose a class. Enter the number corresponding to the desired class and hit enter. The game will then display the selected class and its attributes in the console. You can add more features, interactions, and gameplay elements to enhance the game further based on your requirements.