Sure! Here's an example of an RPG game where enemies are bosses and bosses are enemies, implemented in a single HTML file using JavaScript and enclosed in script tags:
Boss RPG Game
In this game, there are four boss elements represented by pictograms, and a player element represented by a pictogram as well. The player can click on a boss to defeat it, and upon defeating the boss, the player's position will move to the boss's defeated position. The defeated boss will then move to a random position on the screen.
Please note that you may need to replace the background images and adjust the CSS classes to fit your specific pictograms and design preferences.