| Posted By
 orac81 on 2025-07-18 09:59:29
| SCONNEX 1.65 for the +4.
SCONNEX is a version of the famous 4-in-a-line game, written to work on almost any computer. It can compile to work as an SDL2 app (PC or Android etc), or a zx81, Spectrum, C64, C16, Vic20, Pet, app, or as a C99 terminal program. It is open source, released under GPL3 licence.
Download latest version from Github:
https://github.com/orac81/miniapples/raw/refs/heads/main/sconnex-latest.zip



COMMANDS
1-9,A-C: Make move N: New game X: Change board width Y: Change board height I: Change play level G: Make computer play T: Toggle 2-player mode H: Help screen Z: Auto-play, space stops V: Change gfx mode. Q: Quit
You can play any board size from 4x4 upto 12x12. You can use the program in two player mode for human v human games, or to set up a position for the computer to analyse.
Source, and scripts for building with VBCC (6502) and Z88DK (z80) included.
It is still a "Work in progress", I am still getting to grips with VBCC and z88dk. The search is a simple AlphaBeta tree I have published as a "sample" before, at some stage I will add sorting, iterative deepening, etc. As is its like the old chess programs where you choose search depth levels 1 to N. Even so it plays quite well, even on a 1mhz 6502.
(BTW My first attempt at this program was published as a type in in PCW magazine Jan 1983!)
NOTE: currently this version isnt running on the c16. I will fix this later..
Anyway, more later, enjoy!
|
|
Posted By
 Luca on 2025-07-18 11:19:48
 | Re: SCONNEX 1.65 for the +4.
You added a duplicate entry of Sdl-Connex, the best choice would have been to keep a new version in the same page. I'm far from a PC but hope that @Csabo can handle the whole thing.
|
|
Posted By
 orac81 on 2025-07-18 13:34:26
| Re: SCONNEX 1.65 for the +4.
Sorry, I couldnt really figure out how to add the download files to the entry anyway. I will also make a small change to the +4 entry, I located the chrset above $4000 for tests, it should run below that for the c16. This version is a true +4/c16 version, rather than the text version.
|
|
Posted By
 Csabo on 2025-07-18 14:14:36
| Re: SCONNEX 1.65 for the +4.
No worries, Adrian! It's super simple:
- go to the existing record (SDL-Connex) - click [ Upload PRG file or screenshot ] - enter 1.65 for version and upload
That's it If you're unsure about any issues like this, just PM me (or email... or post on the forum).
|
|
Posted By
 Luca on 2025-07-19 09:48:06
 | Re: SCONNEX 1.65 for the +4.
@orac81 beg your pardon if my post looked as wrongly tough, my intention wold have been to basically look straight and simple 
|
|
Posted By
 orac81 on 2025-07-19 14:44:01
| Re: SCONNEX 1.65 for the +4.
I have uploaded a new version SCONNEX 1.66 which should run on the c16 ok.
https://plus4world.powweb.com/software/SDL-Connex

I didnt update the source yet, its just 2 small changes:
UINT PTR_CHRSET = 0x3800; #define COL_EDGE 0x43
BTW I found the c16 hardware flash useful, you can flash the winning line just by setting the colour.
I did have thought, a toolbar (like the SDL ver) with a mouse/joystick pointer could be added, even in UDG mode. You could just keep 4 UDG chars reserved and use those to draw the pointer as it moves..
No problem luca! Thanks Csabo, I was trying to "edit" the game entry an add the new version there, rather than the previous screen.
|
|
| |
Copyright © Plus/4 World Team, 2001-2025. Support Plus/4 World on Patreon |