Thanks for the reply…I have some questions
Have you put ProcessDifficulty
inside OnInput
function which is taking all the input for all the game features like
ProcessGuess
function which evaluates the guess by the player.
If so then have you created different if ...else if
statements inside OnInput
function which will not only check the reply for Difficulty of level but also evaluate the guess by the player for right or wrong.
Posting full code of your game might help me to understand that what was your approach for your game to work well and also help me to add some new features to the game my own way.
Here is my idea to add some features to the game:-
I have been trying to implement different ways in the code to create a level based word game just like we did in TripleX Game.
I have tried different ways to do it but somehow I get stuck in the code and get confused while creating a loop.
I want to increment the Level upto 5 where Level++
will also increase Number of letters in Hidden Word.
For Eg:
LEVEL 1
Guess 3 letter word
> bed
Level cleared
LEVEL 2
Guess 4 letter word
> cake
Level Cleared
.
.
.
LEVEL 5
Guess 7 letter Word
> bridges
YOU WIN...You are a CHAMPION.
Press ENTER to play Again
Well there are many more features to add but for now I’m trying to focus at incrementing Levels.
For a start I created a new Function which will control the number of letters per level and ++level
will be done when Guess==HiddenWord
.
I was thinking to create a code the same way we did in TripleX Game but I’m not sure that it will work because there we created one major function which contained all other functions and was compiled into main()
and it had only one parameter of level Difficulty
.
Upon seeing the screenshot shared by you Now I have started to think that maybe I can create different if...else if..
statements inside OnInput
function which will increment the level and also evaluate the guess input of the player (Not sure if it might work).
Please share your thoughts…that might help me progress my work.
Thanks alot for your reply.