Vic-20 Connect 4 Assembly Program

Basic and Machine Language

Moderator: Moderators

Post Reply
Centallica
Pinballer
Posts: 1090
Joined: Wed Feb 02, 2005 11:26 am

Vic-20 Connect 4 Assembly Program

Post by Centallica »

Has anyone seen or have this program? I remember having a Connect 4 program in the 80's for the Vic-20 and was wondering if this was the same one?

http://www.pomakis.com/~pomakis/c4/connect4.asm

If not here it is, if I only knew what to do with it :?

Brian
carlsson
Class of '6502
Posts: 5516
Joined: Wed Mar 10, 2004 1:41 am

Post by carlsson »

You take the source and run it through an assembler, "Buddy" seems to be the preferred one, but with some tweaking it probably will work with any 6502 assembler, native or cross developing one.

If you move one directory level higher (i.e. edit the URL), you can download a binary version for VIC-20:

http://www.pomakis.com/~pomakis/c4/connect4-vic20

On level 1, it is like playing with a toddler. On level 7, it displays a lot of garbage while thinking for an eternity. The presentation reminds me of a Basic program, although it is written in machine code. I don't know what the different levels refer to programmability wise.
Anders Carlsson

Image Image Image Image Image
pomakis
Vic 20 Newbie
Posts: 1
Joined: Wed Jan 14, 2015 8:11 am

Re: Vic-20 Connect 4 Assembly Program

Post by pomakis »

It's not the game from the 80s. I only wrote this in 1997.

Yeah, at level 1 the algorithm is pretty brain-dead. And the garbage you're seeing at level 7 (or anything at level 5 or above, IIRC) is the overflow of the lookahead calculations into screen memory. The fun thing is that it actually continues to work even though it's using screen memory for its calculations. The skill-level sweet spot is level 4 or 5. It's pretty hard to beat at those levels, and doesn't take an annoying amount of time to make a move.

(Sorry for taking almost ten years to reply to this; I just saw this post for the first time now!)
User avatar
beamrider
Vic 20 Scientist
Posts: 1447
Joined: Sun Oct 17, 2010 2:28 pm
Location: UK

Re: Vic-20 Connect 4 Assembly Program

Post by beamrider »

pomakis wrote:
(Sorry for taking almost ten years to reply to this; I just saw this post for the first time now!)
..better late than never :D
User avatar
Mayhem
High Bidder
Posts: 3026
Joined: Mon May 24, 2004 7:03 am
Website: http://www.mayhem64.co.uk
Location: London

Re: Vic-20 Connect 4 Assembly Program

Post by Mayhem »

Welcome :)

Now, anyone got a copy of the game so I can put it in GB20?

(I don't think I have it, but I will check)
Lie with passion and be forever damned...
User avatar
Kweepa
Vic 20 Scientist
Posts: 1314
Joined: Fri Jan 04, 2008 5:11 pm
Location: Austin, Texas
Occupation: Game maker

Re: Vic-20 Connect 4 Assembly Program

Post by Kweepa »

In case Keith takes another 10 years to reply, the website has been rearranged. You can get the prg from here:
http://www.pomakis.com/c4/
Centallica
Pinballer
Posts: 1090
Joined: Wed Feb 02, 2005 11:26 am

Re: Vic-20 Connect 4 Assembly Program

Post by Centallica »

Thanks Kweepa :D
User avatar
Mayhem
High Bidder
Posts: 3026
Joined: Mon May 24, 2004 7:03 am
Website: http://www.mayhem64.co.uk
Location: London

Re: Vic-20 Connect 4 Assembly Program

Post by Mayhem »

Had a check, looks like I had already added it :)
Lie with passion and be forever damned...
Post Reply