Results 1 to 8 of 8

Thread: Four-in-a-row for Lazarus

  1. #1

    Four-in-a-row for Lazarus

    Hello!

    I would like to present my Four-in-a-row for Lazarus. It uses BGRABitmap (to draw the circles). The AI is a stand-alone executable, which is called each time the computer has to move.

    You can change the language and the color of the interface by editing the options.ini file.

    Code:
    [interface]
    language=en
    palette=gray
    Hope you will like it.

    Best regards.

    Roland
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Roland Chastain; 15-08-2014 at 07:22 AM. Reason: updated attachment

  2. #2
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,232
    Blog Entries
    2
    Hi Roland,

    I downloaded this and had a couple of games, not bad

    I like the interface, no clutter, simple and clean.

    I do have a question for you... why is the AI in another EXE? I'm not criticising, I'm just interested in the decisions/reasons behind it.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  3. #3
    Quote Originally Posted by AthenaOfDelphi View Post
    Hi Roland,

    I downloaded this and had a couple of games, not bad

    I like the interface, no clutter, simple and clean.
    Hi! Thanks for trying my game.

    Quote Originally Posted by AthenaOfDelphi View Post
    I do have a question for you... why is the AI in another EXE? I'm not criticising, I'm just interested in the decisions/reasons behind it.
    As I am interested in chess programming, I am curious to learn pipes and inter process communication.

    Besides, it has some advantages : I can work on another engine, even write it in a different language, and try it at once from my GUI. I just have to edit the options.ini file.

    The GUI runs the engine and sends as parameter the history of the current position, a string of characters from '1' to '7'. The engine computes his move, returns it (one character) and closes.
    Last edited by Roland Chastain; 15-04-2014 at 04:48 AM.

  4. #4
    Quote Originally Posted by Roland Chastain View Post
    As I am interested in chess programming, I am curious to learn pipes and inter process communication.

    Besides, it has some advantages : I can work on another engine, even write it in a different language, and try it at once from my GUI. I just have to edit the options.ini file.

    The GUI runs the engine and sends as parameter the history of the current position, a string of characters from '1' to '7'. The engine computes his move, returns it (one character) and closes.
    I think you could benefit from a dynamic library instead. Your actual method is cheating prone.

  5. #5
    Quote Originally Posted by pitfiend View Post
    I think you could benefit from a dynamic library instead. Your actual method is cheating prone.
    Yes, thank you for the advice. Maybe in the next version ?

  6. #6
    Here is a new version, using a DLL.
    Last edited by Roland Chastain; 15-08-2014 at 07:16 AM. Reason: moved zip file to first post

  7. #7
    Just tested it, pretty cool
    Current (and lifetime) project: FAR Colony
    https://www.farcolony.com/

  8. #8
    Quote Originally Posted by farcodev View Post
    Just tested it, pretty cool
    Thank you!

    Here is a new version (please see the first post of the discussion).

    quatre-lazarus.png

    Thanks to circular for his piece of code.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Comodo SSL