Learning TypeScript the Temu way!
This program's purpose is to restrict your TypeScript down to just console.log and functions. After completing "problems" (similar to LeetCode), you gain money. With money, you buy features. To complete the game, you need to solve all (10) problems.
Commands:
- [filepath] (Runs the given file against current problem. Example: main.ts)
- shop (Displays the shop with the available features to purchase)
- current (Displays information about your current problem)
- peek (Displays the problem list & where you're at)
- battlepass (Displays the battlepass)
- claim [code] (Claim a promo code for Premium. Example: claim AOPMGBAEP)
- support [code] (Support a content creator that creates content on this game)
- use [code] (Claim a COUPON code. Example: claim OKEGAOP)
‼️ Please install Bun first! (JS/TS runtime)
cargo run
in this folder.main.ts
in this folder.cargo run main.ts
ALTERNATIVELY
cargo build --release
target/release/subterfuge
)What? Battle pass?? Ads?? Banner ads?????
You must buy features before using them.
You can get the Premium version of the Battle Pass by supporting me on Patreon. But if you don't want to, the code is available in plain sight in the source code. ;)
Banner ads are there to embrace the feeling of gamifying your learning.
While running your code, you have a 10% of being interrupted by a spinning wheel of coupons.
tasks/
folder contains the solutions for each problem. Please peek at it only if you REALLY can't figure out the answers.main.ts
get deleted??history/{0..100000}main.ts
. The active file however get's rewritten with the boilerplate for the next problem./src/data/savedata.json
and modify the "money" property. It isn't recommended as it may alter your gaming experience. Otherwise, you can get money from problems and battlepass.savedata.json
. Please also include the solution inside tasks/
./** */
.// { this is: true }
).Created with 🦀 by Face