Skip to content

Commit 4b45a5b

Browse files
committed
set up project structure
1 parent 1c2b772 commit 4b45a5b

62 files changed

Lines changed: 8769 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# VS Code
2+
.vscode/
3+
*.code-workspace
4+
5+
# ------------------------
6+
# macOS
7+
# ------------------------
8+
.DS_Store
9+
.AppleDouble
10+
.LSOverride
11+
Thumbs.db
12+
13+
# ------------------------
14+
# General
15+
# ------------------------
16+
*.swp
17+
*.swo
18+
*.bak
19+
*.backup
20+
*.tmp
21+
*.log

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

AWSCLIV2.pkg

-50.3 MB
Binary file not shown.

backend/.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ------------------------
2+
# Python
3+
# ------------------------
4+
__pycache__/
5+
*.py[cod]
6+
*.pyo
7+
*.pyd
8+
*.pyc
9+
*.pytest_cache/
10+
*.mypy_cache/
11+
*.coverage
12+
coverage.xml
13+
htmlcov/
14+
dist/
15+
build/
16+
*.egg-info/
17+
.eggs/
18+
19+
# Poetry virtual environment
20+
.venv/
21+
.env
22+
.env.*

backend/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12.1

backend/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
This is the backend installation
2+
3+
```bash install pyenv and python
4+
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile\necho 'eval "$(pyenv init -)"' >> ~/.zshrc
5+
cat ~/.zprofile
6+
source ~/.zshrc
7+
pyenv install 3.12.1
8+
pyenv local 3.12.1
9+
pyenv versions. -- list all python versions
10+
```
11+
12+
```bash install poetry
13+
brew install poetry
14+
poetry --version
15+
poetry config virtualenvs.in-project true
16+
poetry init
17+
poetry install --no-root
18+
poetry env info
19+
```
20+
21+
```bash install package using poety
22+
poetry add requests
23+
poetry add --group dev pytest black ruff
24+
poetry install -- install all pacckage in pyproject.toml
25+
```
26+
27+
28+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
def check_winner(board):
2+
winning_combinations = [
3+
[0, 1, 2], [3, 4, 5], [6, 7, 8], # Rows
4+
[0, 3, 6], [1, 4, 7], [2, 5, 8], # Columns
5+
[0, 4, 8], [2, 4, 6] # Diagonals
6+
]
7+
8+
for combo in winning_combinations:
9+
if board[combo[0]] == board[combo[1]] == board[combo[2]] != " ":
10+
return board[combo[0]]
11+
12+
if " " not in board:
13+
return "Draw"
14+
15+
return None

0 commit comments

Comments
 (0)