ooooooooo ooooooo {88 ooooooo Dartmouth DTSS TeleBASIC
888 88o .ooooooo <ooo .ooooooo .----------------------.
888 888 888 888 888 888 888 | One-Line Dojo |
888 888 888 888 888 888 888 | User-made challenges |
o888ooo88 88ooo88 888 88ooo88 `----------------------'
,o88
Welcome to The Dojo
===================
Yokoso.
The Dojo is a place where you can learn about BASIC features, and programming
fundamentals while testing your skills and honing your abilities.
Once you have completed all available challenges, or you are promoted by a
SAMURAI, you may contribute your own challenges and see other users' solutions
to them.
An example challenge:
Name: nand
Verified: YES
Author: archer
Var/Func Name: fnnand
Returns: number
Description: Define a NAND "fnnand(a,b)" function.
Here you are asked to create a function that performs the NAND operation.
Enter your solution IN ONE LINE to complete the challenge. Preceding numbers
are discarded upon submission; your solution will be executed at line 0 in the
tests. Tests are defined by the user who sets the challenge.
Statements in BASIC may be chained together with the colon separator, such as:
A = 10 : B = A + 5 : PRINT B
.. this will print the number 15.
Creating Challenges
===================
When creating challenges you may define th_dojopass to be > 0 to pass, or
th_dojofail to be > 0 to fail the challenge. Example:
Description: Make the variable "foo$" equal to "bar".
Solution: foo$ = "bar"
Validation script:
10 if foo$ = "bar" then : print testPass$ : th_dojopass = 1
20 if foo$ <> "bar" then : print testFail$ : th_dojofail = 1
A challenge will be unverified until it is reviewed and approved by users with
SAMURAI status.
See BASIC.MAN for more information on TeleBASIC syntax.
Ganbarou, Yuza-san.
https://www.youtube.com/watch?v=U7S8XzvNJs8