Hi All
2 years ago i created a YatzY in excel for my kids to play with. It uses random numbers in textboxes and then they enter their score through an inputbox before it is saved to the sheet. They played with it for a while but got bored since it allows "some people" to cheat when they enter their score.
I never intended to take this any further but last satarday one of my sons got hurt real bad in an accident and is now tied to the bed for the rest of summer, and now he wonders if i can do something to make this more fun.
So now i'm trying to change this so that it put's the relevant score by pushing a button. I have managed to work this out for 1 to 6, Chance & Yatzy. The setup looks like:
Textbox2 to textbox7 = randome numbers and textbox1 = Score
It's 12 different subs i need help with:
1 Pair: Check if thers are 1 or maybe more pars in txt2 to 7 and sum the highest to txt1.
2Pair: Check to se if their are 2 ore more pairs and sum the 2 highest to txt1
3Pairs: Check to se if their are 3 pairs and sum to txt1
3 of a kind: Check for 3 of a kind, and as it possible to get 2*3 sum the highest to txt1
4 and 5 of a kind: Check for 4/5 of a kind, and sum the highest to txt1
Straight: 3 diffent. 1 to 5, 2 to 6 and 1 to 6. Sum for 1 to 5 = 15, 2 to 6 = 20 and 1 to 6 = 21
I'm not sure of which name these 3 have in english but the setup is:
3+2 ex 3 kings & 2 Ace
3+3 ex 3 kings & 3 Ace
4+2 ex 4 kings & 2 Ace
I hope you get the picture...
Anyway, this is not something that absolutely need to be solved but all help will be highly appreciated
/Roger S
2 years ago i created a YatzY in excel for my kids to play with. It uses random numbers in textboxes and then they enter their score through an inputbox before it is saved to the sheet. They played with it for a while but got bored since it allows "some people" to cheat when they enter their score.
I never intended to take this any further but last satarday one of my sons got hurt real bad in an accident and is now tied to the bed for the rest of summer, and now he wonders if i can do something to make this more fun.
So now i'm trying to change this so that it put's the relevant score by pushing a button. I have managed to work this out for 1 to 6, Chance & Yatzy. The setup looks like:
Textbox2 to textbox7 = randome numbers and textbox1 = Score
It's 12 different subs i need help with:
1 Pair: Check if thers are 1 or maybe more pars in txt2 to 7 and sum the highest to txt1.
2Pair: Check to se if their are 2 ore more pairs and sum the 2 highest to txt1
3Pairs: Check to se if their are 3 pairs and sum to txt1
3 of a kind: Check for 3 of a kind, and as it possible to get 2*3 sum the highest to txt1
4 and 5 of a kind: Check for 4/5 of a kind, and sum the highest to txt1
Straight: 3 diffent. 1 to 5, 2 to 6 and 1 to 6. Sum for 1 to 5 = 15, 2 to 6 = 20 and 1 to 6 = 21
I'm not sure of which name these 3 have in english but the setup is:
3+2 ex 3 kings & 2 Ace
3+3 ex 3 kings & 3 Ace
4+2 ex 4 kings & 2 Ace
I hope you get the picture...
Anyway, this is not something that absolutely need to be solved but all help will be highly appreciated
/Roger S