# MMOP Second Try - PowerShell Setup Script # This script sets up the MMORPG environment using PowerShell Write-Host "" Write-Host "========================================" -ForegroundColor Cyan Write-Host " MMOP Second Try - Setup Script" -ForegroundColor Cyan Write-Host "========================================" -ForegroundColor Cyan Write-Host "" # Check if Python is available try { $pythonVersion = python --version 2>&1 Write-Host "✅ $pythonVersion found" -ForegroundColor Green } catch { Write-Host "❌ ERROR: Python is not installed or not in PATH" -ForegroundColor Red Write-Host "Please install Python 3.8 or higher from python.org" -ForegroundColor Yellow Read-Host "Press Enter to exit" exit 1 } Write-Host "🔧 Starting setup..." -ForegroundColor Yellow Write-Host "" # Run the Python setup script try { python setup.py Write-Host "" Write-Host "========================================" -ForegroundColor Green Write-Host "🎉 Setup completed successfully!" -ForegroundColor Green Write-Host "" Write-Host "To run the MMORPG:" -ForegroundColor Cyan Write-Host " python app.py" -ForegroundColor White Write-Host "" Write-Host "Then open your browser to the displayed URL" -ForegroundColor Cyan Write-Host "========================================" -ForegroundColor Green } catch { Write-Host "❌ Setup failed. Please check the error messages above." -ForegroundColor Red } Write-Host "" Read-Host "Press Enter to continue"