-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdecoherence.sh
executable file
·56 lines (48 loc) · 1.38 KB
/
decoherence.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# tobedone: user choice limits: 0 only on first word.
# 1 only available if -1(last index) previous choice
# catch more input- reroll the acronym and display
# current xword spine interface options
# integrate hyperlinks into the acro_dicts so
# fewer errors and ambiguousities are thrown
# improve rerolling options -
# gui last item selection,
# present clue potential
# autoken.burns pan&scan for background
# I accept the argument: 1 item from the .NextMoves/ directory
# and I make it into the the next actual board state
# we are creating the directory hierarchy for spannable history trees,
ancillary_word=$(python3 -c "print('$1'.split('/')[-1][0:])")
inasradir=$(python3 -c "print('$2'.strip())")
echo Ancillary Word: $ancillary_word
echo inasra directory: $inasradir
if [ $? = 0 ]
then
#echo "$1"
test -f $1
if [ $? = 0 ]
then
#echo "should be doin now"
#echo "$inasradir$ancillary_word"
mkdir -p $inasradir/
mv $1 xwordspine.json
cp xwordspine.json $inasradir/
rm .NextMoves/*
echo $1 >> .eggspine.txt
python3 freqyforget.py $1
python3 nextbestwords.py
else
echo "dont see it in .NextMoves"
fi
else
echo "gimme a PlacedClue"
fi
#echo $inasradir
sleep 1
while [ $(ps -ef | grep cluePLACER | wc -l) -gt 1 ]
do
sleep 1
echo "...plenty of thinkin yet to do"
done
./whiptailCrystalizer.sh $inasradir/
#./whiptailCrystalizer.sh $inasradir