Announcement
Collapse
No announcement yet.
Please don't take this too seriously.
Collapse
X
-
I haven't had one in 20 years, and never had many, or one that didn't have an atom bomb in it.
I'm different than other people.
Leave a comment:
-
It depends. I've got symptom management down to a science. I haven't had a nightmare since December.
Leave a comment:
-
Lori, don't listen to the Pothead. Moving to another country will just stress you out, and you know where that leads...
Leave a comment:
-
Okay, it's possible that I'm not very good at Connect Four, but I can now no longer beat the computer. I've created a monster!
Leave a comment:
-
And I think I fixed the boardValue method. I ended up debugging it by hand... because I'm bored at work but don't have access to the program. That was arduous. The method looks at the last test move made by the AI; finds every horizontal, vertical, and diagonal 4-slot space (on a 7x6 board) containing the most recent move; makes sure that space contains only blank slots or other tokens of the same player; finds a value for that move based on whether the space contains 1, 2, 3, or 4 tokens of the same player; and finally adds up all the values for every one of the 4-slot spaces and returns that sum to the miniMax method (which is a recursive method for finding the least bad move the AI can make).
And I went through and debugged that by hand with a test case board typed into notepad that looks like this:
-------
-------
-------
-------
x------
o--x---
Blarg. But before I pat myself on the back, I need to actually run the program with the new method and see what variety of ludicrous errors I've managed to spawn.
Leave a comment:
-
Good for you, man. It's very satisfying, solving a puzzle.
Leave a comment:
-
Heh. I mostly fixed the AI for my Connect Four program. The AI is very stupid for the first few moves, but if you don't trap it right then and there, it gets fairly smart. I think the problem is that it doesn't do a good job of evaluating a mostly empty board. So I have to work on the boardValue method...
Leave a comment:
Leave a comment: