Type your ugBASIC program in the following box. Some BASIC rules:
  • keywords must be UPPERCASE, like PRINT
  • comments that are placed at the end of a line must be preceded by a colon:
    • this is good: PRINT "OK!": ' comment
    • this is wrong: PRINT "OK!" ' comment
Click on Build menu to select the target: you will download the compiled binary file!

DEFINE DOJO ON FUJINET CLS PRINT "===========================" PRINT "DOJO CHAT CLIENT ON FUJINET" PRINT "===========================" PRINT DO PRINT "Digit ID or leave blank for new:" INPUT roomId$ digits = LEN(roomId$) IF digits <> 8 AND digits <> 0 THEN PRINT "ID must be of eight hex digits." ELSE IF digits = 0 THEN port = CREATE PORT() myChannel = 0 otherChannel = 1 ELSE port = OPEN PORT(roomId$) myChannel = 1 otherChannel = 0 ENDIF IF DOJO ERROR > 0 THEN PRINT "Invalid port or unavailabe service." ELSE PRINT "Room ID: ";port PRINT EXIT ENDIF ENDIF LOOP DO IF PEEK MESSAGE(port, myChannel) THEN PRINT GET MESSAGE(port, myChannel) ENDIF INPUT "> ",message$ PUT MESSAGE port, otherChannel, message$ LOOP

Welcome to the ugBASIC sandbox!

This tool was designed to quickly test whether the code you are writing compiles correctly and determines the desired results. Since the source is compiled thanks to dedicated servers, separate from the browser you are using, some commands are not available: for example, you cannot load external files or resources by using the LOAD command. If you need to develop a program with a complete tool, we recommend installing the executables or the UGBASIC-IDE.

Unless required by applicable law or agreed to in writing, this website is given on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.