Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Four-in-a-row (FlashPascal program)

  1. #1

    Four-in-a-row (FlashPascal program)

    Hello gentlemen !

    I would like to present my "Four-in-a-row" game, made with Flash Pascal 2. If someone doesn't know it, FlashPascal is an editor and compiler which produces Flash movies from Pascal language.

    You can only play "white", while computer always plays "black".

    Here is a link to my web site where you can play the game and download source files.

    Four


    quatre.png

    I have not yet had time to make an english version, but the game is very simple and easy to use.

    "A vous l'honneur !" means something like "Your move ?"
    Last edited by Roland Chastain; 28-12-2012 at 10:57 PM.

  2. #2
    very nice game, but the AI needs a bit more variation to make it more interesting.

  3. #3
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Nice job. Have you tried letting the computer AI play it's self? Fun experiments like that are great for exploring new game ideas and learning how to do the next cool thing in your games.

    Great first stepping stone. What are your next project ideas?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #4
    Nice to finally see a game made with FlashPascal. I hope to see more games made with it soon. If I am not mistaken, there is also an open source version of FlashPascal on SF.net.
    Best regards,
    Cybermonkey

  5. #5
    Thank you for the answers.

    FlashPascal has powerful graphical functions, so it is certainly possible to make a nicer interface.
    Regarding the algorithm, it's an interesting idea to introduce variations.
    I have not yet tested computer versus computer game. I will try it.

    @CyberMonkey

    Yes, that's right. The main difference is that FlashPascal 2 has an editor, while the first version uses command-line compilation.

    Here is another game made with FlashPascal :
    http://flashpascal.execute.re/FlashMine.php
    Last edited by Roland Chastain; 29-12-2012 at 10:31 AM.

  6. #6
    OK I see. I hoped to see a game with (animated) sprites or so...

    EDIT: Erm, maybe I found a bug, just look at the attached image. Always clicking on the same row gives a "draw" although blue wins...

    partieremise.png
    Last edited by Cybermonkey; 29-12-2012 at 04:23 PM. Reason: Added a bug report
    Best regards,
    Cybermonkey

  7. #7
    FlashPascal sounds interesting...after some fiddling around I managed to download it (http://flashpascal.execute.re/). I will have to try it after I finish my Java course

    Thanks for sharing Roland

    cheers,
    Paul
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

  8. #8
    @CyberMonkey

    Thank you for the bug report. It is corrected.

    Code:
    if cells[cx, 0].state <> 0 then exit;
    The file to download has been replaced.


    @paul_nicholls

    Thank you for your attention.
    Last edited by Roland Chastain; 30-12-2012 at 10:50 PM.

  9. #9
    Hello gentlemen !

    I have rewritten my Four-in-a-row. The internal functions are new. The interface is almost the same, except that there are checkboxes to select the game mode.

    If ever you wish to compile the source code, you have to dowload separately the small library I used for checkboxes.

    Best regards.

    Roland
    Attached Images Attached Images
    Last edited by Roland Chastain; 22-08-2013 at 08:15 PM.

  10. #10
    any way to increase the difficulty?=)

Page 1 of 3 123 LastLast

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
  •