May-18-2020, 12:58 PM
thankyou deanhystad
but I am struggling to insert this and make it work
due to new or renamed variables or lists etc.
quite right it's more this:
# spinr represents how many symbols to display for the spin.
# the bigger the value the longer the spin will take.
18seemed about right, but can be tweeked.
To know where I am coming from you really need to look
at the full game source and play a few reels to see the context.
I have uploaded the game to Github:
https://github.com/steveshambles/Freespin-Frenzy
cheers for your time again I appreciate it.
but I am struggling to insert this and make it work
due to new or renamed variables or lists etc.
def spin_reels(): """Pseudo spin, best I can do for now.""" spinner = ['FH', 'FD', 'FC', 'WH', 'WD', 'WC', 'JH', 'JD', 'JC', 'JS', 'QH', 'QD', 'QC', 'QS', 'KH', 'KD', 'KC', 'KS', 'AH', 'AD', 'AC', 'AS', 'BH', 'BD', 'BC'] Glo.hold_btn1.configure(state=DISABLED) Glo.hold_btn2.configure(state=DISABLED) Glo.hold_btn3.configure(state=DISABLED) for i in range(3): # Spin reel on X times, two 2X times, three 3X times for _ in range(18): for j in range(len(reel_labels)): # Don't spin a held reel. if not hold[j] and j >= i: reel[j] = randrange(len(spinner_images)) reel_label[i].config(image=spinner_images[reel[i]]) time.sleep(0.025) check_for_win() rnd_hold() save_bank()Also my original description of spinr wasn't
quite right it's more this:
# spinr represents how many symbols to display for the spin.
# the bigger the value the longer the spin will take.
18seemed about right, but can be tweeked.
To know where I am coming from you really need to look
at the full game source and play a few reels to see the context.
I have uploaded the game to Github:
https://github.com/steveshambles/Freespin-Frenzy
cheers for your time again I appreciate it.