Skip to content

learn and Fortnitify your javascript and typescript journey!

Notifications You must be signed in to change notification settings

Grays0n-dev/temu-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Learning TypeScript the Temu way! What's this?

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.

overview Commands

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)

How to run?

‼️ Please install Bun first! (JS/TS runtime)

Install Rust: https://www.rust-lang.org/tools/install
Run cargo run in this folder.
Create a main.ts in this folder.
You may now play the game, cargo run main.ts

ALTERNATIVELY

Run cargo build --release
Copy the path (target/release/subterfuge)
Add it to your PATH.

Monetisation

What? Battle pass?? Ads?? Banner ads?????

You must buy features before using them.

errordump

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.

banner

While running your code, you have a 10% of being interrupted by a spinning wheel of coupons.

wheel Playthroughs Complete without buying!

@mybearworld! Code here
@idkhow2type! Code here
@BlockOG! Code here

FAQ

Dude I'm stuck at...
    The tasks/ folder contains the solutions for each problem. Please peek at it only if you REALLY can't figure out the answers.
Why did my main.ts get deleted??
    Once your solution passes, it is moved to history/{0..100000}main.ts. The active file however get's rewritten with the boilerplate for the next problem.
How do I get money?
    The prices are designed to revolve around giving you exactly how much you need for the feature required in the next problem, and so on. If you've spent money on a feature you don't need, you can go in /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.
How is the BP XP calculated?
    problem money / 1.5
How many problems are there?
    10
Can I contribute?
    The structure for adding problems is quite intuitive, so if you wish you can open a pull request with a new problem in savedata.json. Please also include the solution inside tasks/.

Known bugs

The RegEx used to detect "regex" also matches comments like /** */.
Every RegEx still works in comments (i.e. // { this is: true }).

Credits

https://temu.com
https://fortnite.com
https://leetcode.com & everyone who posted solutions
Linker for the idea

About

learn and Fortnitify your javascript and typescript journey!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published