3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post Reply
User avatar
0xC0DE
Posts: 1096
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by 0xC0DE »

Competition rules: max 10 lines of BASIC, max 72 characters on each line, abbreviations are allowed.


"Get rich, or die trying"
getrich.png
https://0xc0de.itch.io/get-rich-or-die-trying


"Money Grabber"
money-grabber.png
https://0xc0de.itch.io/money-grabber


"ASCII Invaders"
ascii-invaders.png
https://0xc0de.itch.io/ascii-invaders
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
BeebMaster
Posts: 4668
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by BeebMaster »

I've always been interested in these one-liner (or similar) game challenges. Has there ever been something similar for 6502 machine code, say write a game which assembles in under 256 bytes for instance? Maybe that's not much of a challenge given the very small amount of RAM the earliest 6502 boards would have had, perhaps 128 bytes? 64?
Image
User avatar
leenew
Posts: 4681
Joined: Wed Jul 04, 2012 4:27 pm
Location: Doncaster, Yorkshire
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by leenew »

Me too.
I love to see these tiny BASIC games.
I think 64 bytes sounds like an impossible challenge for a game!
Maybe 128 is impossible too?

*Note: I am useless at assembler...

Lee.
User avatar
Lardo Boffin
Posts: 2526
Joined: Thu Aug 06, 2015 7:47 am
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by Lardo Boffin »

Best I ever managed was around 600 bytes of Z80 on a ZX81 for a ‘driving game’.
Adventure Language on GitHub
Atom, issue 5, YARRB + video noise killer
Elk
A number of econetted (is that a word?) Beebs
BBC Master, Datacentre + HDD, pi co-proc, econet, NULA
User avatar
0xC0DE
Posts: 1096
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by 0xC0DE »

I don't know of any specific machine code challenge but I've been toying with the idea of starting one (for fun). 256 bytes is not much. Maybe have different categories? 256, 512, 1024 bytes.
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
lurkio
Posts: 3946
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by lurkio »

Nice work, 0xC0DE! Is it okay that I've uploaded your games to bbcmicro.co.uk?

Btw, is there a generic term for an entry in this kind of game jam where you're programming under a ten-line contraint? Something like "constraint-based game program"..?

:?:
Last edited by lurkio on Sun Jun 27, 2021 7:04 pm, edited 1 time in total.
User avatar
Lardo Boffin
Posts: 2526
Joined: Thu Aug 06, 2015 7:47 am
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by Lardo Boffin »

Code golf?
Adventure Language on GitHub
Atom, issue 5, YARRB + video noise killer
Elk
A number of econetted (is that a word?) Beebs
BBC Master, Datacentre + HDD, pi co-proc, econet, NULA
User avatar
0xC0DE
Posts: 1096
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by 0xC0DE »

Thanks lurkio, no problem if you put it on bbcmicro.co.uk.
I've heard the terms "code golf" or "10Liner", or "sizecoding" perhaps.
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
BigEd
Posts: 4511
Joined: Sun Jan 24, 2010 10:24 am
Location: West Country
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by BigEd »

BTW these are nice little games! Thanks for sharing.
0xC0DE wrote:
Sun Jun 27, 2021 5:37 pm
I don't know of any specific machine code challenge but I've been toying with the idea of starting one (for fun). 256 bytes is not much. Maybe have different categories? 256, 512, 1024 bytes.
There's a Conway's Life in 256 bytes for the C64...

... and Eben Upton's Copter was written for the Hackaday 1k challenge.

(2048 is about 4k, which is a shame. But it's not at all compressed.)
User avatar
0xC0DE
Posts: 1096
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by 0xC0DE »

@BigEd thanks!
@lurkio looking good :mrgreen:
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
scruss
Posts: 392
Joined: Sun Jul 01, 2018 4:12 pm
Location: Toronto
Contact:

Re: 3 new BBC BASIC ultra short 10Liners for Elk/Beeb

Post by scruss »

BigEd wrote:
Mon Jun 28, 2021 10:06 am
There's a Conway's Life in 256 bytes for the C64...
and Linus Åkesson's stunning “A Mind Is Born” demo, all in 256 bytes on the C64.

or even Adrian Cable's PC Emulator in 8086 nibbles (4043 bytes) of C.

N. Silver's old one-liners from Beebug were pretty neat. The 230 byte "Asterisk Tracker" is something I've played many times:

Code: Select all

1L=0:REP.L=L+3:MO.4:DR.1279,0:DR.1279,452:MOVE1279,572:DR.1279,1023:DR.0,1023:F.I=1TOL:V.31,RND(32)+5,RND(31),42,30:N.:P.(L-3)/3:X=0:Y=512:REP.PL.69,X,Y:X=X+4:Y=Y-(INKEY-74+.5)*8:U.PO.X,Y)=1ORX=1280:U.X<1280:V.7:REP.U.INKEY-99:RUN
Post Reply

Return to “miscellaneous new bbc and electron games”