+ 2

How do you hide code from users? Like certain details that are important

i'm making a game, you pick any number, it's associate's that with a color. if you put in the wrong number, then try again if you guess the right number. then a color shows up. I don't want them knowing what colors is associated with any numbers. I'm going to tag my unfinished program https://code.sololearn.com/c57fuf787aaL/?ref=app https://code.sololearn.com/c57fuf787aaL/?ref=app https://code.sololearn.com/c57fuf787aaL/?ref=app

21st Jan 2018, 8:39 PM
Jaren Dogan
Jaren Dogan - avatar
4 odpowiedzi
+ 7
Generally when you distribute a program for a compiled language like java you package it into some kind of executable file. This will make it difficult for all but the most computer savvy to see any of your actual code. the only Language you really can't hide code in is JavaScript as far as I know.
21st Jan 2018, 11:56 PM
Louis
+ 4
you can find a full list of 140 reconized colors (with all the hex values)@ https://www.w3schools.com/cssref/css_colors.asp
22nd Jan 2018, 12:29 AM
Alan
Alan - avatar
+ 4
@ Louis You cannot hide client side JavaScript but can obfuscate it
22nd Jan 2018, 2:20 AM
code learner
code learner - avatar
- 1
a good idea night be to use hex numbers in Css. you can change 1 digit & the color may look almost identical but only a trained expert who uses hex numbers would know what you have done.
22nd Jan 2018, 12:19 AM
Alan
Alan - avatar