Bunsen #1 Posted January 16, 2016 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 8 Quote Share this post Link to post Share on other sites
Savetz #2 Posted January 18, 2016 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 2 Quote Share this post Link to post Share on other sites
Savetz #3 Posted January 18, 2016 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 Quote Share this post Link to post Share on other sites
Rybags #4 Posted January 18, 2016 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. 1 Quote Share this post Link to post Share on other sites
flashjazzcat #5 Posted January 18, 2016 Use built-in constants (%0-%3) for 0-3. 1 Quote Share this post Link to post Share on other sites
pirx #6 Posted January 18, 2016 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 :] 1 Quote Share this post Link to post Share on other sites
+slx #7 Posted January 18, 2016 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 Quote Share this post Link to post Share on other sites
Savetz #8 Posted January 19, 2016 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 Quote Share this post Link to post Share on other sites
pirx #9 Posted January 19, 2016 (edited) 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 January 19, 2016 by pirx Quote Share this post Link to post Share on other sites
Bunsen #10 Posted January 23, 2016 I've received 6 Tenliners until now. 5 for C64 and only 1 for Atari... http://gkanold.wix.com/homeputerium#!games-list-2016/c1jdt Quote Share this post Link to post Share on other sites
snicklin #11 Posted January 24, 2016 Could it be that new ideas are becoming harder to come by? Quote Share this post Link to post Share on other sites
+therealbountybob #12 Posted January 24, 2016 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 3 Quote Share this post Link to post Share on other sites
Bunsen #13 Posted January 24, 2016 I've just sent in Gravity X a ten liner version of Gravity... Go ATARI Per snail mail? It hasn't reached me. Quote Share this post Link to post Share on other sites
+therealbountybob #14 Posted January 24, 2016 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! Quote Share this post Link to post Share on other sites
vitoco #15 Posted January 25, 2016 I've just sent "Fleas!", a small game for Atari XL/XE written in TurboBASIC XL as an entry for the PUR-120 category. 1 Quote Share this post Link to post Share on other sites
Bunsen #16 Posted January 25, 2016 oops - from Yahoo to software at abbuc . de - I've just forwarded it on to you! Instructions: press fire! Now I got it :-). The abbuc adress leads to Sascha. Quote Share this post Link to post Share on other sites
Savetz #17 Posted January 25, 2016 In previous years, people submitted their entries on this thread, now it seems less open, emailing them instead. C'mon people, show your entries! 1 Quote Share this post Link to post Share on other sites
+atari2600land #18 Posted January 25, 2016 I'm writing something but it may be done before by someone else. What are the links to previous competitions? 1 Quote Share this post Link to post Share on other sites
+therealbountybob #19 Posted January 25, 2016 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 Quote Share this post Link to post Share on other sites
+atari2600land #20 Posted January 25, 2016 Also, I forgot how to make a .atr rom. Can someone post directions on how to do that with Atari800WinPlus? Quote Share this post Link to post Share on other sites
Bunsen #21 Posted January 25, 2016 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? Take this atr from archive.org: https://archive.org/download/a8b_Turbo_Basic_XL_1.5_1985_Ostrowski_Frank_a2 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". Quote Share this post Link to post Share on other sites
+atari2600land #22 Posted January 25, 2016 I'm programming using Turbo Basic. Don't I have to save my program to the "computer" first? Quote Share this post Link to post Share on other sites
vitoco #23 Posted January 25, 2016 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? Quote Share this post Link to post Share on other sites
Savetz #24 Posted January 26, 2016 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. 2 Quote Share this post Link to post Share on other sites
devwebcl #25 Posted January 26, 2016 Yup. Posting the code is a good idea. Let's see if I code with enough spare time 1 Quote Share this post Link to post Share on other sites