-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathNextMovesThinker.sh
executable file
·25 lines (16 loc) · 1.01 KB
/
NextMovesThinker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# I create a directory of the best next possible moves, based on the strongest elements of OneBigDict
# OneBigDict is sorted so that the 0th element is the least frequently linked
[ -d ".NextMoves/" ] && rm .NextMoves/* > /dev/null;
[ ! -d ".NextMoves/" ] && mkdir .NextMoves && echo "YES" # && sudo mount -t tmpfs -o size=1024m tmpfs .NextMoves
if test -f ".wordplacementideal"; then rm .wordplacementideal; fi
python3 nextbestwords.py
#for goodwordidea in $( head -n 60 .nextbestwords.log ); do
# #echo "$goodwordidea"
# python3 crystalyzation.py $goodwordidea >> .wordplacementideal; done
# this is the same as the commented-out loop above, reading through by line
#while IFS= read -r -u13 line; do
# python3 cluePLACER.py $line >> .wordplacementideal; done 13<".wordplacementideal"
#for e in $(ls .NextMoves/*.png); do echo "$e"; sleep .5; done
# the following line produces a random image from the NextMoves folder:
#expressions=($(ls .NextMoves/*.png)) && echo ${expressions[$RANDOM % ${#expressions[@]} ]}