OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:46 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Extensible Connect-4 game
PostPosted: Fri Mar 04, 2022 4:03 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 1925
Location: Athens, GA, USA
I just finished the first more-or-less working version of a Connect-4 game which can take a board size and number of tokens for a win, as well as play with either two human players, or a human and a solver AI. The solver is pretty lousy, but it works after a fashion.

I need to add a bit to the README about how to use it, which I will do when I next get a chance. Also,the current front end is entirely console based.

I do want to improve the AI, and later I want to extend it with a GUI, so any advice or comments would be appreciated.

_________________
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.


Top
 Profile  
 
 Post subject: Re: Extensible Connect-4 game
PostPosted: Mon May 02, 2022 2:25 pm 
Offline
User avatar

Joined: Mon May 02, 2022 2:03 pm
Posts: 12
I had a brief look at the code. Something anyone would do, simple search with some pruning. One thing to do would be to replace array based board with a bit board representation, as this saves some memory when the depth is huge. I have been looking at nuklear lately, perhaps a choice for your GUI ?

_________________
~Voldemort~


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group