Skip to content

Commit

Permalink
updated versions and notes
Browse files Browse the repository at this point in the history
  • Loading branch information
hychan48 committed Nov 13, 2023
1 parent 576ed43 commit 2d8e834
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,49 @@
## Production
<!-- todo
add some assets
# pip install google-foobar-2023-q4
hychan48-cake-is-not-a-lie --help
-->

## Installation
### Installation
```bash
pipx install git+https://github.com/hychan48/google-foobar-2023-q4.git
#pipx run --spec git+
# https://replit.com/@jasonchan51/hychan48-google-foobar-2023-q4
pipx install google-foobar-2023-q4

hychan48-cake-is-not-a-lie --help
hychan48-cake-is-not-a-lie abab
hychan48-dont-get-volunteered 0 1
```
<!--
# pipx install git+https://github.com/hychan48/google-foobar-2023-q4.git
#pipx run --spec git+
# Returns 2
```
-->

## Level 1
* [readme_q1_the-cake-isnot-a-lie.md](levels/q1/readme_q1_the-cake-isnot-a-lie.md)
```bash
cat levels/q1/src/solution.py
# GitHub action runs PyTest
python -m pytest levels/q1/tests/solutions_test.py
hychan48-cake-is-not-a-lie abab

# GitHub action runs the PyTests:
pytest levels/q1/tests/solutions_test.py
# JavaScript solution
pnpm run test:q1
```

## level 2
### Question 1
* [readme_q2_dont-get-volunteered.md](levels/q2/readme_q2_dont-get-volunteered.md)
* Simplified Knight's Tour problem
* Textbook BFS, but I wanted to animate it
* [BFS Wiki](https://en.wikipedia.org/wiki/Breadth-first_search)
* [Knight's Tour Game](https://www.maths-resources.com/knights/)
* Experimented with ILP. Good example to teach with
```bash
hychan48-dont-get-volunteered 0 1 # Returns 3
pytest ./levels/q2/tests/solutions_bfs_test.py
```

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "google-foobar-2023-q4"
version = "0.2.1"
version = "0.2.2"
description = "JC's Google Foobar Journey - 2023 Q4"
homepage = "https://github.com/hychan48/google-foobar-2023-q4"
repository = "https://github.com/hychan48/google-foobar-2023-q4"
Expand Down Expand Up @@ -40,7 +40,7 @@ classifiers = [

# https://python-poetry.org/docs/pyproject/#scripts
[tool.poetry.scripts]
# hychan48="levels:main"
# hychan48-google-foobar-2023-q4="cli:fire_cake"
hychan48-cake-is-not-a-lie="cli:fire_cake"
hychan48-dont-get-volunteered="cli:fire_knight_bfs"
#hychan48-cake-is-not-a-lie= { reference = "levels.q1.src.solution:solution", type = "console" }
Expand Down

0 comments on commit 2d8e834

Please sign in to comment.