IGNORED

# BASIC Tenliners Contest 2016

## Recommended Posts

Guys, it's time for "the most wonderful time of the year" (Kevin Savetz in ANTIC) again!

This year's BASIC Tenliners Contest is starting now!

The rules changed slightly: now every 8 bit computer platform is allowed and every basic dialect is also allowed (but the authors may help us running their programs on an emulator). For details please look at the contest site: http://gkanold.wix.com/homeputerium#!basic-tenliners-2016/c450

##### Share on other sites

Cabbage - A Text Adventure In 10 Lines Of Turbo BASIC XL By Kevin Savetz
Get all items north across the river in your boat, which only fits 1 item at a time.
Commands are: INVENTORY, NORTH, SOUTH, GET <ITEM>, DROP <ITEM>

CABBAGE.atr

##### Share on other sites

Also, I found a bug in TBXL 1.5: certain long program lines crash it (lock up, or fill the listing with junk)

Just entering any one of these lines guarantees a crash for me. Any hints on avoiding this?

15 RN(1,0)=1:RN(1,1)=10:RN(2,0)=11:RN(2,1)=20:IN\$="WolfGoatCabbage":IN(1,1)=1:IN(1,2)=4:IN(2,1)=5:IN(2,2)=8:IN(3,1)=9
15 RN(1,0)=1:RN(1,1)=10:RN(2,0)=11:RN(2,1)=20:IN\$="WolfGoatCabbage":IN(1,1)=1:IN(1,2)=4:IN(2,1)=5:IN(2,2)=8
10DIMA\$(20),B\$(1),RN\$(20),RN(2,2),IN\$(100),IN(3,2),IL(3),EX(2,4):EX(1,1)=2:EX(2,2)=1:H=3:IN(2,2)=8:IN(3,1)=9:RN(1,0)=1
##### Share on other sites

Maybe define a variable for 0. e.g. 15 Z=0 : RN(1,Z)=1 ...

I'm not aware of a bug list for TBXL, might be worth a look around for one. The old Atari Basic move bug would manifest during program entry as well. A workaround is to change the order a bit or make the line different so as to not use the same amount of memory.

##### Share on other sites

Use built-in constants (%0-%3) for 0-3.

##### Share on other sites

Hi Savetz,

This is quite annoying indeed. I suppose the tokenizer goes awry with too many bytes in line. Using %0 -- %3 in place of 0 - 3 helps a lot. For higher integers you can try using hex (10 A=\$4), it takes more bytes though. The reason why it works better is "%1" takes much less bytes than "1" in a tokenized line.

Too bad it takes more characters than just "1", so it is not good for "PUR" categories.

This exact problem was my reason to scribble TBXL tokenizer. But mine is nothing in comparison to dmsc http://atariage.com/forums/topic/243394-basic-parsing-and-transformation-tool-new-version/?hl=%2Btbxl&do=findComment&comment=3352277. Go for it and destroy the contest this year :]

##### Share on other sites

Unfortunately length is limited by characters entered rather than tokenized lines so the %1 saving doesn't help but means an extra character.

Gesendet von meinem iPhone mit Tapatalk

##### Share on other sites

I did a little write-up about CABBAGE, explaining the code line by line (not that it's that complicated.)

http://atariaction.tumblr.com/post/137586191122/cabbage

##### Share on other sites

Unfortunately length is limited by characters entered rather than tokenized lines so the %1 saving doesn't help but means an extra character.

Yes, but it helps when TBXL generates broken lines - this is obviously a bug in TBXL.

Anyway, dmsc tool is the answer to this problem.

Edited by pirx
##### Share on other sites

Could it be that new ideas are becoming harder to come by?

##### Share on other sites

I've just sent in Gravity X a ten liner version of Gravity... Go ATARI

p.s. Just completed Cabbge, first time I dropped everything on the north shore, big mistake! Nice example of some of Turbo BASIC's string handling

##### Share on other sites

I've just sent in Gravity X a ten liner version of Gravity... Go ATARI

Per snail mail?

It hasn't reached me.

##### Share on other sites

Per snail mail?

It hasn't reached me.

oops - from Yahoo to software at abbuc . de - I've just forwarded it on to you!

Instructions: press fire!

##### Share on other sites

I've just sent "Fleas!", a small game for Atari XL/XE written in TurboBASIC XL as an entry for the PUR-120 category.

##### Share on other sites

oops - from Yahoo to software at abbuc . de - I've just forwarded it on to you!

Instructions: press fire!

##### Share on other sites

In previous years, people submitted their entries on this thread, now it seems less open, emailing them instead. C'mon people, show your entries!

##### Share on other sites

I'm writing something but it may be done before by someone else. What are the links to previous competitions?

##### Share on other sites

In previous years, people submitted their entries on this thread, now it seems less open, emailing them instead. C'mon people, show your entries!

I think it's nice that the people going to the event get to see them first - might encourage more to go

##### Share on other sites

Also, I forgot how to make a .atr rom. Can someone post directions on how to do that with Atari800WinPlus?

##### Share on other sites

Also, I forgot how to make a .atr rom. Can someone post directions on how to do that with Atari800WinPlus?

Do you want to program in Turbo BASIC XL or in ATARI BASIC?

You can also use it if you want to program in ATARI BASIC. Then you only have to mount it and make a cold boot (Cold Reset).

If you want to use Turbo, you have to go to DOS with typing in "DOS" in the editor and then pressing "L" and entering "TURBOBAS.COM".

##### Share on other sites

I'm programming using Turbo Basic. Don't I have to save my program to the "computer" first?

##### Share on other sites

I'm programming using Turbo Basic. Don't I have to save my program to the "computer" first?

If you are using TurboBASIC XL, you are already using an ATR image in the emulator. You can SAVE (or LIST) your program to that disk, or you can do it over a new disk. In ATARI80WinPLus you can "create" a new disk using the the Drive Selection popup. Activate it using Alt-D, then create a Single Density disk, naming it as the ATR you want. Then you have to mount it as drive D2: and format it using DOS from the same disk you've already booted.

Hope this helps...

I think it's nice that the people going to the event get to see them first - might encourage more to go

I agree... The screenshots already published by Bunsen is enougth to give an idea of them. The rest should be a surprise!!!

.... or not?

##### Share on other sites

I disagree — I think positing code now can inspire and/or teach others before the end of the contest, encouraging other programmers to do more and better entries. You do what you want; I'm going to publicly post my programs and programming notes as I submit them.

##### Share on other sites

Yup. Posting the code is a good idea.

Let's see if I code with enough spare time

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.