change partial shuffle to split shuffle
This commit is contained in:
@@ -19,7 +19,7 @@ def observations(number_of_keys, properties_per_key, passcode_len):
|
||||
keypad=keypad.keypad.copy(),
|
||||
key_selection=keypad.key_entry(target_passcode=nkode)
|
||||
)
|
||||
keypad.partial_shuffle()
|
||||
keypad.split_shuffle()
|
||||
|
||||
return obs_gen()
|
||||
|
||||
|
||||
@@ -12,12 +12,12 @@ def test_keypad():
|
||||
|
||||
assert keypad.key_entry([8, 5, 6, 11]) == [0,1,2,0]
|
||||
|
||||
def test_partial_shuffle():
|
||||
def test_split_shuffle():
|
||||
p = 4 # properties_per_key
|
||||
k = 3 # number_of_keys
|
||||
keypad = Keypad.new_keypad(k, p)
|
||||
print(keypad.keypad)
|
||||
keypad.partial_shuffle()
|
||||
keypad.split_shuffle()
|
||||
print(keypad.keypad)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user