Hello all,
I am very new to web development and Javascript so I apologize for what is likely a question with an obvious answer. I am basically wanting to know if my idea is possible, and maybe get some advice on the best way to implement it.
I have been learning Python and wrote a script that is basically a Wheel of Fortune game. The game is completely played within the terminal. I am slowly trying to build a personal portfolio page and would love to have a web-based, Javascript version of this game. One of the things I did not like about the current Python version is that the terminal just scrolls down and new lines are created as you play the game, including it always printing the player’s current score after each round as well as the menu of play options.
I’d like to implement this on a web page and have the page dynamically refresh the important game messages, game board, and player’s current score, but also have some static items, like buttons to control whether the player wants to buy a vowel or guess a consonant, etc.
Is this possible? Any advice on how to go about implementing this interaction with the web page? I think the basic logic from Python should be easy enough to re-write in Javascript, but obviously I’ll be interacting with HTML instead of printing to the terminal.
In case it helps, here is the python version: https://github.com/dblinkhorn/learn_python/blob/master/wheel_of_fortune.py
Thanks for any advice!!!
Details