VCCC2023: Christmas Challenge

bbc micro/electron/atom/risc os coding queries and routines
User avatar
Diminished
Posts: 1235
Joined: Fri Dec 08, 2017 9:47 pm
Contact:

VCCC2023: Christmas Challenge

Post by Diminished »

VCCC2023compo.png
VCCC2023compo.png (6.3 KiB) Viewed 37514 times

Oh come, all ye faithful.

https://logiker.com/Vintage-Computing-C ... lenge-2023

"A small programming contest that will run from Monday, 4.12.2023 until Monday, 25.12.2023."

Last year saw the great Acorn choir in good voice, with many Acorn entries proving quite competitive, so it would be nice to duplicate or exceed that success this year.

Most coders submitting entries tend to focus on minimising code size, but feel free to set whatever personal goals you like for this challenge. You can submit an official entry to Logiker, but you don't have to.

BASIC users should measure code size for submission by typing PRINT TOP-PAGE at a BASIC prompt.

Please do not discuss details of techniques, reveal code sizes, or share any code etc., before the official judging is complete.

(For reference, last year's thread is here).
Last edited by Diminished on Sat Dec 09, 2023 3:46 pm, edited 2 times in total.
User avatar
BeebMaster
Posts: 7379
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: VCCC2023: Christmas Challenge

Post by BeebMaster »

Looking forward to this! Good luck everyone!
Image
User avatar
JohnH
Posts: 85
Joined: Thu Aug 11, 2016 10:59 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by JohnH »

Well I've had a little go at this and come up with a small basic program which works but I'm struggling to find simple ways to compress the data, it just doesn't seem very compressible without a complex decompression algorithm which then defeats the purpose of compressing it :roll:
User avatar
roland
Posts: 5148
Joined: Thu Aug 29, 2013 9:29 pm
Location: Born (NL)
Contact:

Re: VCCC2023: Christmas Challenge

Post by roland »

For the standard Atom this is a real challenge, we only have 16 lines on the screen :shock:
Of course, we can use software like VDU2440 or the 80 column boards….
FPGAtom: 512 KB RAM, Real Time Clock and 64 colours
MAN WOMAN :shock:
User avatar
BeebMaster
Posts: 7379
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: VCCC2023: Christmas Challenge

Post by BeebMaster »

I don't think it necessarily has to be done using text characters, it could perhaps be done using graphics instead.
Image
User avatar
roland
Posts: 5148
Joined: Thu Aug 29, 2013 9:29 pm
Location: Born (NL)
Contact:

Re: VCCC2023: Christmas Challenge

Post by roland »

That's s true, but it won't make the code shorter or more efficient compared to the other Acorn computers with at least 20 lines per screen. Still, I'm thinking about a short as possible routine to print this pattern.
FPGAtom: 512 KB RAM, Real Time Clock and 64 colours
MAN WOMAN :shock:
Phil_G
Posts: 6
Joined: Mon Jan 16, 2023 10:20 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by Phil_G »

deleted
Last edited by Phil_G on Fri Dec 08, 2023 5:01 pm, edited 1 time in total.
User avatar
BigEd
Posts: 6261
Joined: Sun Jan 24, 2010 10:24 am
Location: West Country
Contact:

Re: VCCC2023: Christmas Challenge

Post by BigEd »

Hmm, should you have published that so soon?
User avatar
BeebMaster
Posts: 7379
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: VCCC2023: Christmas Challenge

Post by BeebMaster »

I think not. I hereby Tut.
Image
Phil_G
Posts: 6
Joined: Mon Jan 16, 2023 10:20 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by Phil_G »

You only see the result, which is (or should be :) ) exactly the same for everyone who enters.
Source code and binary size are the crucial secrets! :D
User avatar
BigEd
Posts: 6261
Joined: Sun Jan 24, 2010 10:24 am
Location: West Country
Contact:

Re: VCCC2023: Christmas Challenge

Post by BigEd »

Ah right, maybe that's different then. Of course I didn't view it. Must avoid spoilers at all costs.
Simon
Posts: 329
Joined: Sun Apr 12, 2020 9:20 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by Simon »

I'm having quite a bit of fun with this one.
Electron (+1, +3, AP5)
Electron (RH +1, Pegasus)
BBC B 1770, boobip, Acorn Speech,Econet)
BBC B+ 128k (Acorn Speech)
Master 512 (ARA III, VideoNuLA, Econet)
PiTubeDirect, RGBtoHDMI, Pi1MHZ
Master Compact (Econet)
Econet: RiscPC 700 / A3020 / A3000
User avatar
Diminished
Posts: 1235
Joined: Fri Dec 08, 2017 9:47 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by Diminished »

I haven't looked at it yet. Too busy working on B-Em. :(
User avatar
regregex
Posts: 628
Joined: Sun Jan 02, 2005 9:51 pm
Location: London, UK
Contact:

Re: VCCC2023: Christmas Challenge

Post by regregex »

Submitted a couple of entries. I took a slightly different approach this year and didn't go all out for minimal code size; while still compact, one entry does a tiny amount of housekeeping while the other strives for economical beauty.

That said, it's nice to see the other competitors' entries and the systems they're submitted on. Best of luck to everyone taking part.

Greg
fuzzel
Posts: 1191
Joined: Sun Jan 02, 2005 1:16 pm
Location: Cullercoats, North Tyneside
Contact:

Re: VCCC2023: Christmas Challenge

Post by fuzzel »

That's me done. A few iterations and I really don't think I'll be able to make any further improvements. I do have a quandary though about a technique I've used - it may not be strictly legit. Btw, I've written mine in Basic and after a brief think about an assembly language version I doubt I could program a smaller version. Roll on Boxing Day!
User avatar
BigEd
Posts: 6261
Joined: Sun Jan 24, 2010 10:24 am
Location: West Country
Contact:

Re: VCCC2023: Christmas Challenge

Post by BigEd »

What are the odds that you'll suddenly realise you had just one more bright idea, some time in the next couple of days? That's how it went with me.
User avatar
BeebMaster
Posts: 7379
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: VCCC2023: Christmas Challenge

Post by BeebMaster »

That's why I haven't sent mine in yet, which I did at the beginning of the week and hasn't really advanced since then!
Image
User avatar
flaxcottage
Posts: 5717
Joined: Thu Dec 13, 2012 8:46 pm
Location: Derbyshire
Contact:

Re: VCCC2023: Christmas Challenge

Post by flaxcottage »

Just had a go and developed this formula to work out the minimum number of bytes in my program
.
.
Formula.jpg (3.72 KiB) Viewed 36996 times
nb is the number of bytes needed, n is the number of BASIC keywords used and x is the number of stars displayed.

I managed to shave off 4 bytes just by reducing n by 1.
- John

Check out the Educational Software Archive at www.flaxcottage.com
User avatar
BigEd
Posts: 6261
Joined: Sun Jan 24, 2010 10:24 am
Location: West Country
Contact:

Re: VCCC2023: Christmas Challenge

Post by BigEd »

I know how tempting it is to say something about how you tackled a problem like this, but the guidance is very clear - don't share, until the deadline. Even if it's a clever obfuscated or indirect spoiler, it's still a spoiler.
User avatar
flaxcottage
Posts: 5717
Joined: Thu Dec 13, 2012 8:46 pm
Location: Derbyshire
Contact:

Re: VCCC2023: Christmas Challenge

Post by flaxcottage »

Sorry, it was my sense of humour. :oops:

That equation is absolutely meaningless, algebra babble but looks impressive. Even the explanation does not make sense (I hope, else I have just discovered the formula for the meaning of life!)

I consider my wrist slapped.
- John

Check out the Educational Software Archive at www.flaxcottage.com
User avatar
JohnH
Posts: 85
Joined: Thu Aug 11, 2016 10:59 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by JohnH »

I tried a different approach to my initial, easy to code, easy to understand, program. But I can't quite get it to work. I need to do some proof of concept tests to see what part is going wrong. If I can't figure it out maybe someone can take a look at it after the deadline and see if I'm bonkers or just not a very good coder :)
fuzzel
Posts: 1191
Joined: Sun Jan 02, 2005 1:16 pm
Location: Cullercoats, North Tyneside
Contact:

Re: VCCC2023: Christmas Challenge

Post by fuzzel »

BigEd wrote: Fri Dec 08, 2023 8:45 pm What are the odds that you'll suddenly realise you had just one more bright idea, some time in the next couple of days? That's how it went with me.
100%. I had a lightbulb moment on a walk last night and managed to shave another ten bytes off.
User avatar
Diminished
Posts: 1235
Joined: Fri Dec 08, 2017 9:47 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by Diminished »

Well, I've made a start. I don't think I'll be winning any awards.

I've added a note to the first post that BASIC users should measure their code size as TOP - PAGE.
User avatar
JohnH
Posts: 85
Joined: Thu Aug 11, 2016 10:59 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by JohnH »

Managed to get my non-working code working :) It's about 2/3 the size of my first go and 14 bytes smaller than my best effort last year so I think I'm done, barring any flashes of inspiriation. But I'll give it a day or so before I submit just in case :lol:
User avatar
Rich Talbot-Watkins
Posts: 2054
Joined: Thu Jan 13, 2005 5:20 pm
Location: Palma, Mallorca
Contact:

Re: VCCC2023: Christmas Challenge

Post by Rich Talbot-Watkins »

Last year I managed to find an absurd way to plot the Christmas tree star using discrete cosine transform. Can't think of an equally absurd way to do this one so I'll probably stop now with the boring solution that I've got.
User avatar
JohnH
Posts: 85
Joined: Thu Aug 11, 2016 10:59 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by JohnH »

That reminds me of the creature from vision on or take hart made from signatures.
User avatar
regregex
Posts: 628
Joined: Sun Jan 02, 2005 9:51 pm
Location: London, UK
Contact:

Re: VCCC2023: Christmas Challenge

Post by regregex »

BigEd wrote: Fri Dec 08, 2023 8:45 pm What are the odds that you'll suddenly realise you had just one more bright idea, some time in the next couple of days? That's how it went with me.
I had one yesterday and, exhausted from Christmas shopping, coded it up to see what it weighed. It was a shade heavier.

Even if it hadn't been, I've resolved to stick with my submissions and not kick myself.
Phil_G
Posts: 6
Joined: Mon Jan 16, 2023 10:20 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by Phil_G »

How about a score multiplier based on the number of days before the 25th when the entry was submitted! :D
User avatar
JohnH
Posts: 85
Joined: Thu Aug 11, 2016 10:59 pm
Contact:

Re: VCCC2023: Christmas Challenge

Post by JohnH »

Found a new way to do it that shaves 3 bytes off my best previous effort but I am completely out of ideas now, but we'll see what a sleep can do :)
Post Reply

Return to “programming”