Skip to content

Commit

Permalink
use 12dicts wordlist. cleanup deny list. reset game
Browse files Browse the repository at this point in the history
  • Loading branch information
jayshrivastava committed Apr 18, 2024
1 parent 6879161 commit f8846ff
Show file tree
Hide file tree
Showing 8 changed files with 86,438 additions and 103,250 deletions.
10 changes: 3 additions & 7 deletions make_words_rs.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
# Process each line
deny_words = []
deny_f = open("words_deny_list_3.txt")
deny_f = open("words_deny_list.txt")
deny_lines_raw = deny_f.readlines()
for i, line in enumerate(deny_lines_raw):
if len(line) > 0:
deny_words.append(line.strip().upper())
deny_f.close()

deny_f_2 = open("words_deny_list_4.txt")
deny_lines_raw = deny_f_2.readlines()
for i, line in enumerate(deny_lines_raw):
if len(line) > 0:
deny_words.append(line.strip().upper())

f = open("words.txt")
# Split the string by newline character
lines = f.readlines()[2:]
Expand All @@ -25,8 +19,10 @@
for c in line:
if not (c.isalpha() and c.upper() >= "A" and c.upper() <= "Z"):
add = False

if len(line) > 7 or len(line) < 3:
add = False

if line.upper() in deny_words:
add = False

Expand Down
2 changes: 1 addition & 1 deletion src/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn get_seed() -> [u8; 32] {

// Concatenate the date components to form the seed value
if year == 2024 && month == 4 && day == 18 {
year = 7026
year = 7028
}
let seed: [u32; 8] = [year, month, day, 0, 0, 0, 0, 0];
let mut seed_bytes = [0u8; 32];
Expand Down
Loading

0 comments on commit f8846ff

Please sign in to comment.