Jump to content
  • entries
    53
  • comments
    536
  • views
    68,404

4-In-A-Row DOS demo


Guest

516 views

I worked out the AI for Vertical Four-In-A-Row and put together a DOS program with a text interface that plays a pretty good game. The next step will be to implement the AI in 6502 assembly. Then it's on to finishing the kernel (see previous entry) and making an interface.You take turns with the computer dropping pieces into an upright board, and object of the game is to be the first to get four of your pieces in a row horizontally, vertically, or diagonally. As far as I know, this might become the first 2600 homebrew two-player board game with AI. The tentative title is Four-Play. :)Oct 14, 2005:Added a new version of the DOS demo with faster and stronger AI. :post-4626-1081814627_thumb.jpg

1 Comment


Recommended Comments

I've attached a new version of the A.I. demo which uses alpha-beta pruning. In layman's terms, that means the computer can look ahead more moves in less time. It is less vulnerable to the "ramp" strategy that Cybergoth used to defeat my first demo.

 

The DOS demo is written in C, with the benefit of recursion. The tricky part now will be to port the routine to assembly. I'll have to manage the local variables in the stack myself.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...