'Test code for Star Chart LOG and convert to LOG(2) to convert to Star Rating
'For p = 0 To 6
' Print p, Log(2 ^ p) / Log(2) ' yes! When you are of 2 ^ x from number you get 7 - x stars
'Next
With the help of the Star Chart (and rewriting the program) it's not hard to pick up the strategy to play the game and usually get the number in 7 guesses.
I should probably reduce the density of the code. It's starting to look like MasterGy's ;-))
Title: Re: Stars (Number guessing program)
Post by: bplus on November 07, 2021, 06:32:15 pm
Code easier to read and Star Rating easier to count: