Skip to content

Commit

Permalink
Initial Code Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rpitasky committed Jan 5, 2025
1 parent 45387dd commit 434ae91
Show file tree
Hide file tree
Showing 9 changed files with 2,094 additions and 0 deletions.
1,013 changes: 1,013 additions & 0 deletions Cargo.lock

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "basiclings"
version = "0.1.0"
edition = "2021"

[dependencies]
deku = "0.18.1"
fancy-regex = "0.14.0"
fuzzy-matcher = "0.3.7"
inquire = { version = "0.7.5", features = ["editor"] }
markdown = "1.0.0-alpha.21"
rust-embed = "8.4.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tempfile = "3"
tifloats = "2"
titokens = "0.2.1"

[features]
debug-tools = []
29 changes: 29 additions & 0 deletions lessons/0000-welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Welcome to BASIClings
Welcome! I presume you are here to learn advanced TI-BASIC optimization. You will do this through a series of optimization puzzles, each mirroring a real-world scenario. In each lesson, you'll be presented with an unoptimized program, and you must reduce the program's byte count past a certain threshold to proceed. Along the way, we will cover underutilized techniques and solidify the strategies you probably already know.

This course is relatively straightforward at the outset, but the difficulty will increase rapidly. The purpose of this is not to discourage you! You have the freedom to solve our problems however you'd like. Still, you'll get more out of BASIClings by solving the problems alone, without the use of external help (besides a calculator, of course).

Sometimes, if your program does not exactly match one of my solutions, it will be subjected to behavior testing through CEmu. This course emphasizes programming for the TI-84+CE and covers tokens available only on that calculator.

Feel free to contact me (iPhoenix) if you find yourself struggling too much with any particular problem; there's a fair chance I can use your experiences to improve the course!

## Note: a prompt to open a text editor should show now. When you save the file, your program will be tested.

```json
{
"id": 0,
"name": "Welcome!",
"requirements": [],
"starting_program": "\"HELLO WORLD\"",
"required_savings": 1,
"brief_description": "Return \"HELLO WORLD\" in Ans.",
"tests": [
{
"input": [],
"output": [
{"name": "Ans", "value": "HELLO WORLD"}
]
}
]
}
```
Loading

0 comments on commit 434ae91

Please sign in to comment.