(Jun 29, 2015 02:45 PM)Kroos Wrote: This looks pretty good, Haze. Watching the video that AI could do with being a little bit smarter, there are chances where it can win but does something different. As well as the menu: the picture loads to fast and looks out of place, it should roll in with the side bar. Other than that, good job!
The problem with the image was that for some odd reason, it doesn't load with the rest of the menu bar. I have no idea why it behaved like that and I just left it.
As for the AI mechanisms, I really wanted to make it smarter but there was a simple problem. I initially designed the first prototype of this application to allow the user to even use a custom grid size, therefore this meant that I had to code my application to be dynamic. Hence why the code I use to check the grid is dynamic and works regardless of the grid size. This works fine, but when checking a grid in a parallel motion, for example, 4x4, it was VERY VERY tricky to write code that was able to dynamically check it in this direction.
I found it a pain to get that to work , I got half of it to work, but by that time I realised that it took code that was just difficult to read and maintain and thus I scrapped it and resorted to checking it in a cheap way for a 4x4 grid.
I really wanted it to work but it pissed me off so much so I resorted to entering the coordinates manually which I didn't want to do. the code to the version I didn't use is still in the code,
https://github.com/PlusHaze/NoughtPlusPl...Logic.java
Go all the way to the bottom to see what I tried to implement.
So, if I were to make the AI smarter then it meant that I'd have to write a FUCK ton of code that works in all situations, also for the AI to be smarter it would produce an n factorial (n!) type solution. Because it would need to have tried every single possible solution. For a 3x3 grid it's (3 x 3) =9, 9 factorial is 362880. That's the many possibilities of moves that could be made. If a 3x3 is that much, I just thought fuck it, that's overkill for a simple game that no one will probably play.
Anyway thanks for taking interest in my thread. I appreciate it :D.... If you have any ideas on how I could improve this other that the Menu bar thing then I'd appreciate it.
(Jun 29, 2015 12:42 PM)clark.dll Wrote: I'm going to get download this as soon as I get home! It looks awesome Haze, good job.
Update:
Lol this is sick man, great work. Looks like a lot of time and effort went into this bad boy.
Thanks Clarky :D I appreciate it fam