-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·55 lines (51 loc) · 954 Bytes
/
build.sh
File metadata and controls
executable file
·55 lines (51 loc) · 954 Bytes
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
NUM_COLS="$(tput cols)"
if [ $NUM_COLS -lt 73 ]
then
echo "Screen width is too low! Please increase window width to greater than 73"
exit
fi
NUM_ROWS="$(tput lines)"
if [ $NUM_ROWS -lt 37 ]
then
echo "Screen height is too low! Please increase height to greater than 37px"
exit
fi
cd src
javac *.java > error.log
clear
echo "Building arcade..."
sleep 1
echo "Waking up the queen..."
sleep 1
echo "Hacking into system root- uhh I mean cleaning directory..."
cat images/console.txt
echo
echo "How many tokens do you want to insert?"
read -p "> " choice
if [ $choice -eq 0 ]
then
echo "Buy more tokens!"
exit
else
echo "Depositing $choice tokens..."
fi
if [ $choice -eq 1 ]
then
echo "Starting Slap Jack!"
sleep 2
clear
java SlapJack
cd ..
exit
elif [ $choice -eq 2 ]
then
echo "Starting Magic Jacques!"
sleep 2
clear
java MagicJacques
cd ..
exit
else
echo "Goodbye 👋"
cd ..
fi