My App is a company wide knowledge store to enable people to enter information into it and then others can search the App to read the information.
I've been asked whether it is possible to have an educational kind of game within the App to aid learning (honest!).
Thinking of basic word games, I decided to try and take Hangman on. It Selects 1 of the definitions in the App at random and the user has to guess what it is.
I've got as far as 'drawing' a hangman using Icons, presenting the User with the letters from the alphabet and then using a Find to determine if their selection is in the word or not and removing the selected letter from the collection if it isn't in the definition.
I'm struggling with the last part and thats displaying empty fields to represent each Letter and also finding the other positions of the same letter within the word so I can show them in the empty fields.
Does anyone know if this is at all possible?
Here is my screen so far.
It introduces them to new things in an interesting way I thought 🙂
I have made progress on this now.
I've added a button that uses split to create a collection of the Letters in the word. I've tied a horizontal gallery to the collection and can display the letters in it. Setting the Font colour to the same as the background hides the Letters in the word.
Now I just need to get the Font colour to change when they select a correct letter.
I'm trying to capture the correct letters in a collection then change the Color property of the label to white if the displayed letter is in the collection.
If(ThisItem.Result in LetterSelected,RGBA(255,255,255,1))
But it is just highlighting the selected letter and not all within the collection.
I've set all of the Hangmans icons to not visible and set an IncorrectLetters count when a letter isn''t in the definition. Then I am using that on each part of the hangman with an If statement to show when the counter increments.
It's close to working I think 🙂
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.