Page 1 of 2

[finished] Cento (simple board game)

Posted: Mon Feb 18, 2013 10:09 am
by pallas
Hello!

I finally made my first game and program for the vic-20 after almost 30 years!
It's all basic and petscii for the unexpanded vic.

Image
Image

I'd really appreciate any programming advice you can give: there are probably many optimizations which can be done on my basic listing.

prg here: http://www.opbyte.it/vic20/cento.prg

Thanks for having a look :-)

EDIT: I started a vic-20 page here: http://www.opbyte.it/vic20/, hoping to have time to write some other programs soon!

Posted: Tue Feb 19, 2013 3:04 pm
by vicist
Nice game. A bit like Knight's Move. I love these simple puzzlers.

With such a small amount of code I wouldn't bother trying to optimise anything. The game works as it should so why worry? :wink:

Posted: Wed Feb 20, 2013 3:03 am
by pallas
Thanks!
There is a good thing about programming on the VIC. It's that the programs get finished :-)
On todays environments, there is always something new to be fixed!

Posted: Wed Feb 20, 2013 7:05 am
by orion70
Congratulations on this Pallas, nice game :) . Also, I see from your website you are a programmer, so we expect more games from you!

Posted: Wed Feb 20, 2013 7:13 am
by pallas
Thanks and yes, the plan is to make some more in the future: I really enjoyed making "cento" so it will be fun making other games or little programs like that. If time permits, of course :-)

As many said before, the limited resources makes you concentrate on playability instead of appearance. And it's nice to finish a program instead of keeping it "under development" forever ;-)

BTW one of my ideas was to write a "chain reaction" game, I think it would be fun.

Posted: Thu Feb 21, 2013 6:06 am
by pallas
I wasn't satisfied with the time it took to do the "game over" check, so I did a bit of optimization and uploaded the new .prg file.
Now it feels quicker when doing fast moves.
Every single instruction and FOR cycle matters! ;-)

Posted: Thu Feb 21, 2013 7:12 am
by Ghislain
pallas wrote:Thanks!
There is a good thing about programming on the VIC. It's that the programs get finished :-)
On todays environments, there is always something new to be fixed!
I generally prefer working on a canvas of 3.5K -- it forces me to be efficient with code and not delve into too much feature creep.

But, I'm constantly adjusting and modifying my old stuff to make improvements. At least for me, a VIC-20 game is never really finished.

Posted: Fri Feb 22, 2013 12:08 am
by Jeff-20
Ghislain wrote:I generally prefer working on a canvas of 3.5K -- it forces me to be efficient with code and not delve into too much feature creep.
yes

Posted: Wed Mar 06, 2013 2:47 am
by pallas
Just wanted to add some info on the solving strategies (without losing all the fun!).

By playing "normally", i.e. jumping around without a specific pattern, I was able to reach 99, but never fill the full board.

There is a known pattern which gets to 100, and is based on "divide et impera". But it assumes the starting point is at the top-left, that's why I've set the initial point randomly (also to add some variation to the game).

There are probably multiple patterns like this one and it probably works with other initial positions as well, but I dind't have time or wish to prove it :-)

Posted: Wed Mar 06, 2013 3:01 am
by matsondawson

Posted: Wed Mar 06, 2013 3:55 am
by pallas
matsondawson wrote:Obligatory emulator link :)
http://www.mdawson.net/vic20chrome/vic2 ... neType=pal
Thanks! Can I put this link in my vic-20 page?

Posted: Wed Mar 06, 2013 2:52 pm
by matsondawson
pallas wrote:
matsondawson wrote:Obligatory emulator link :)
http://www.mdawson.net/vic20chrome/vic2 ... neType=pal
Thanks! Can I put this link in my vic-20 page?
Sure, anyone can put those links on thier pages as the source of the .prg is your original URL.

Posted: Tue Mar 12, 2013 2:33 pm
by KingTrode
Just had a quick play on this whilst testing GB20.

Nice little puzzle game you have put together here, great job for your first VIC game.


KingTrode / Jim

Posted: Wed Mar 13, 2013 4:43 am
by pallas
KingTrode wrote:Just had a quick play on this whilst testing GB20.

Nice little puzzle game you have put together here, great job for your first VIC game.


KingTrode / Jim
Thanks :-)

On a side note, I'd like to know if anybody get it to 100 :)

Re:

Posted: Fri Apr 07, 2017 12:27 am
by Dodges
pallas wrote:
KingTrode wrote:Just had to get Surfshark VPN asap a quick play on this whilst testing GB20.

Nice little puzzle game you have put together here, great job for your first VIC game.

KingTrode / Jim
Thanks :-)

On a side note, I'd like to know if anybody get it to 100 :)
Fun little game and my max is 77 lol.