change partial shuffle to split shuffle

This commit is contained in:
2024-12-11 10:23:06 -06:00
parent 80283a576e
commit 53a8fbc3f3
6 changed files with 14 additions and 136 deletions

View File

@@ -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()

View File

@@ -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)