Results 1 to 10 of 36

Thread: Grayout -Simple Linux freeware game

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Indeed AI sounds scary to a noob, but when you put it that way it may be worth exploring a bit. And your suggestions could no doubt be put to use somehow. At least some simplified non-optimized solution. I hoppe.

    Thanks a lot for the guiding offer but Sunday is not possible and actually I lack camera and microphone on my somewhat primitive equipment. I'm afraid text will have to do. But the time zone is right. I think I saw you at discord so I'll try some friendship/PM thingie over there.

  2. #2
    Quote Originally Posted by Jonax View Post
    Indeed AI sounds scary to a noob, but when you put it that way it may be worth exploring a bit.
    Many things sound scary to a noob. For instance when I was a noob I was terrified of making a derived class. In fact I even know few more expirienced programmers that are still scared by classes.
    But I got past that fear once a managed to learn some basics of how classes actually work. Now I have no fear of making a custom class myself. Even made some examples where I use classes in quite a unique way. For instance I have a prototype code for managing RPG based units and items which heavily rely on classes. I designed classes to allow me very good data reusability so I can create potentially create thousands of very detailed ingame units but do this with quite a small memory footprint.

    And your suggestions could no doubt be put to use somehow. At least some simplified non-optimized solution. I hoppe.

    Quote Originally Posted by Jonax View Post
    I lack camera and microphone on my somewhat primitive equipment. I'm afraid text will have to do. But the time zone is right.
    To be hones I would need to fire my old laptop for camera and mike. Or use my work smarthphone as mike somehow.I believe I could use Smartphone as mike in discord and computer for rest.

    Quote Originally Posted by Jonax View Post
    I think I saw you at discord so I'll try some friendship/PM thingie over there.
    Not very often but yeah. I have sent you a friend request.

  3. #3

    Cool

    Classes. I'm still not friend with these. Though I can see the use for them. I'm glad to hear you are doing well with the classes.

    Anyway. I'm working on the machine solution update for the grayout program. Nothing to show today, despite me saying this type of program is quick to finish. Hopefully sometime next week. The plan is to have on or two algorithmic naive solutions, at least as allowed number of moves, and the challenge for the player is to do better. We will see. And discord friendship request arrived and accepted.
    Last edited by Jonax; 13-03-2022 at 09:16 PM. Reason: Typo

  4. #4
    Quote Originally Posted by Jonax View Post
    Classes. I'm still not friend with these. Though I can see the use for them. I'm glad to hear you are doing well with the classes.
    If you have any question in this area don't be afraid to ask. Unlike many Stack Overflow users I won't just tell you to go and read some pascal beginner book. While that may be a perfectly valid suggestion for long time. Giving such answer to a newbie is just a motivational killer and thus makes more harm than good. I know this from experience since I revived this kind of answers on various forums many times. Well not here on PGD. Which is why I'm regularly visiting PGD almost every day for years now.

    Quote Originally Posted by Jonax View Post
    The plan is to have on or two algorithmic naive solutions, at least as allowed number of moves, and the challenge for the player is to do better.
    I'm looking forward of seeing your solutions.
    If you hit a snag don't be afraid to ask for help. If you ask nicely I may even be convinced to install Lazarus again on my computer so I could test your code directly if the need arises.

  5. #5
    Thanks for the offer to help SilverWarior. So far I'm still making progress, but nothing to show today. Hopefully later this week, or perhaps next week. I can mention already now that the two algorithms are not equally effective, on average, and they both can be beaten by a human intelligence. Not surprisingly. But one has to start somewhere.


    I'm not visiting StackOverflow often but occasionally search engines send me there when searching for solutions to some problem or some notation I've forgotten. Now when you mention it I do have a beginners pascal book. The one I got with Delphi 3. It's still on a shelf somewhere. Though I don't think there were much about classes there. I'll ask you instead if I ever start dipping my toes in the classes. I can't comment on other fora but I really like it here in PGD forum.

  6. #6
    Progress slowing down. Got problems with the algorightmic solution. Made a workaround fix. Showed the animated gif in the discord.

  7. #7
    After looking at animation I'm guessing you are not counting the blocks that could be freed up in next move incorrectly. To me it seems that you are counting the number of faces that will border with the grayed out area after each move. but this is incorrect because you can clear several blocks surrounding one single block exposing multiple of its faces. So for instance if you clear other blocs on Northern, Eastern and Western side of one block you expose three faces of this one block. You should count this block only once. So in other words you would need a mechanism that will track which blocks you have already counted so you don't count them multiple times.

    Again this is just my guess based on observing your Algorithm progress through the board.

Tags for this Thread

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
  •