r/learnwebdev • • Dec 02 '21

text based game - inspecting code

Hello,

I am learning javascript and as one of my projects I want to build a text based adventure game. My main question is how do you prevent the user from simply inspecting the webpage and looking thought the code?

5 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/MarcusDigitz Dec 02 '21

So I'd write all the game logic that should be hidden from the user, on the back end and then write the logic for the user on the front end