Can Mahjong Online be programmed to run on an ESP32 microcontroller?

Hi everyone,
I was wondering if it’s technically possible to implement a simplified version of Mahjong Online on an ESP32. Since the ESP32 supports Wi-Fi, displays, and even some basic graphics through libraries, I thought it might be interesting to see if a lightweight Mahjong (maybe a Solitaire variant) could be coded to run directly on it.
Would the ESP32 have enough memory and processing power to handle the tile-matching logic and simple 2D graphics?
Are there any recommended libraries for rendering such a game on small TFT or OLED displays?
Has anyone here ever tried running a browser-based or HTML5-style game on an ESP32, or would it require rewriting everything in C/C++?
I’d love to hear your thoughts or experiences. Is this more of a fun experiment, or do you think it’s realistic to get Mahjong Online running on an ESP32?