-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
61 lines (53 loc) · 1.51 KB
/
setup.sh
File metadata and controls
61 lines (53 loc) · 1.51 KB
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
57
58
59
60
61
#!/bin/bash
# AI Chess Scanner - Quick Start Script
# This script helps you get the Chess Scanner up and running quickly
echo "=================================="
echo " AI Chess Scanner - Setup"
echo "=================================="
echo ""
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 not found. Please install Python 3.8 or higher."
exit 1
fi
echo "✅ Python found"
# Check if virtual environment exists
if [ ! -d ".venv" ]; then
echo "📦 Creating virtual environment..."
python3 -m venv .venv
fi
# Activate virtual environment
echo "🔌 Activating virtual environment..."
source .venv/bin/activate
# Install dependencies
echo "📥 Installing dependencies..."
pip install --upgrade pip
pip install -r requirements.txt
# Check Stockfish
echo ""
echo "🔍 Checking for Stockfish..."
if command -v stockfish &> /dev/null; then
echo "✅ Stockfish is installed"
stockfish --version
else
echo "⚠️ Stockfish not found. Installing..."
if command -v brew &> /dev/null; then
brew install stockfish
else
echo "❌ Homebrew not found. Please install Stockfish manually:"
echo " Visit: https://stockfishchess.org/download/"
fi
fi
echo ""
echo "=================================="
echo " Setup Complete! ✅"
echo "=================================="
echo ""
echo "Run the Chess Scanner with:"
echo ""
echo " python script.py"
echo ""
echo "Or using the full path:"
echo ""
echo " ./.venv/bin/python script.py"
echo ""