SCONNEX

Moderator: Forum moderators

Post Reply
os62
Posts: 12
Joined: Tue Jan 28, 2025 7:56 pm
Contact:

SCONNEX

Post by os62 »

Download:
https://github.com/orac81/miniapples/ra ... latest.zip

sconnex155screenshot.png
sconnex155screenshot.png (80.87 KiB) Viewed 155 times

(SDL version)

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 SDL app (screen shot above) or as a C99 terminal program. The compiled executable is only 10-20k, yet it can search 20+ moves ahead midgame in a few seconds on modern PCs. The board size can be changed from 4x4 upto 12x12, there is an edit board function to setup positions, and a two player mode to use the program for human games. The code uses the classic recursive AlphaBeta search algorithm, and is a useful example of its use. It is still a "work in progress", yet it is good enough to be a challenging game. My first version of this game was published as a listing in jan 1983 PCW magazine !

For more program details see file "sconnex.txt".

NOTE - You need to install the SDL2 library/dll before use. (ie: libsdl2-dev)

Edit: Added bookworm64 version "sconnex-linux64.elf".
I would like to make this a PET..

Post Reply

Return to “Games”