@StackedCrooked That was my latest clone in Java. After that, I lost motivation, because I felt I had finished implementing everything I ever wanted to have in a Tetis clone.
The AI doesn't care about a neat game state, only the last one counts. If it has calculated 7 moves ahead then it may do some seemingly stupid moves in the beginning. But it knows that it will benefit in the end.
My AI can see infinite moves ahead. In my sample application the human player can currently only see 3 moves ahead. But the API doesn't impose a limit.
If you really want to. You can checkout my source code and modify one line of code and you'll have your non-cheating AI. You can improve it's results by maxing the search width and writing an "Evaluator" object that is better suited to this job.
Do you use chmod +x or chmod 755 to make a file executable?
@StackedCrooked There are only five possible answers: 0, 25%, 50%, 75%, and 100%. Clearly 100% is not the correct answer, because it's not there, and if the chances were 100%, all possibilities would have to be 100%. 75% can't be either, because it would require three possibilities to be 75%. 50% cannot be because there aren't two 50%s. And 25% can't be because there isn't exactly one 25%. That leaves 0%, which is true, because there's no 0% there.
@StackedCrooked Oh, Steve Yegge. I didn't know that guy still blogs. But apparently he does, once in a while, and just reading the first few lines of his latest three blog entries makes me giggle and mark it all up for later reading.
@StackedCrooked Yeah, but that Yegge's blog per year is worth just as much as a year's worth of blogging of some random blogger producing thre entries a week.
@StackedCrooked he used to boast that he writes his blog entries while drinking red wine.
I think recall I him mentioning in one of his posts that he found it hard to write a certain post and that it went better after cracking open a bottle of wine.
@sbi Ah. I had the impression from your previous comment that you didn't like his posts anymore.
His latest criticism on Google+ is required reading though.
@StackedCrooked I do it when something is interesting. I rarely ever have the time to read something right now. :( Right now, I need to go to bed. But I have about five more articles to read that I had marked earlier today...
@StackedCrooked I go to bed early when I need to get to school in the next morning that one kid of mine who just started school. On those days I have to get up before 6am, and that requires that I go to bed before midnight.
@StackedCrooked Don't worry, I wasn't offended. I am much older than most here, after all.
Ideally I have 7:30 hours of sleep. If I were in your situtation that would mean I have to go to bed around 22:30. Pretty close. Good, you are off the hook.
@StackedCrooked Then I don't know what to make of your statement. (I like the way you phrased your answer, BTW, because it's true that we never know for sure.)
@StackedCrooked I don't believe this. I met this old school buddy of mine a few years ago. When we were in school, he was with this girl from our class almost all the time. They would split for a few months, and then they'd be a couple again. For years. I had expected them to become a married couple. But they didn't, he had a child with another woman. He told me that, when that child was around 5, he fell in love with a guy. Totally unexpected. He's now married to that guy. Life is strange, sometimes.
I bet that method would have detected nothing with him 25 years ago.
@StackedCrooked Probably. I honestly don't know. Looking back, I'm not surprised. But back then, I would have sworn he's hetero. (We actually shared a tent, when they, you know, for the first time. :) I remember being quite annoyed and asking them to be quieter.)
At team event we had to share rooms with colleagues. Turned out each room has one two-person bed. Awkward, but ok, just go to sleep. Then I felt this repetitive trembling going on on the other side of the bed. Eeew.
@StackedCrooked There were five or six of us in that tent. The two of them were on one of the sides. I was right next to them, the other sleeping on my other side. We had drunk a bit too much alcohol and stayed up way too late. Most were snoring impressively. I was genuinely tired. I just wanted to sleep.
@StackedCrooked Urgh. A company I worked for once had that pre-Christmas event. We were to meet at the airport at a certain time in Sat morning, and didn't even know where the flight would go to. In the end it went to Munich, and spend an interesting 36hrs there. We had to share beds, too, and were pre-assigned by the girls in the office. But it was Ok.
@StackedCrooked From what I remember (I was drunk, I was tired, it's a considerable part of a century ago) they weren't all that repetitive, it being their first time, and all.
@StackedCrooked I remember that I saw Amélie with my daughter, when she was about eleven(?), and she loved the movie. We saw it again recently, and she was surprised about the sex scenes in the beginning, because she had no memory at all about htem. Children have this wonderful ability to blank out whatever they cannot deal with.
@sbi At young age I guess they sort of absorb it. Evaluation comes at a later age. (You're talking about the guessing of orgasm count at a certain moment right?)
Anyway, before we stray too far from the lions, here's an anecdote:
Before WWII (and maybe even before WWI, I forgot), the zoo in Leipzig was already well-known for its successful breeding of lions. It is said that the zoo director (I forgot his name, but let's call him Schneider, it's a good guess in Germany) would place a small ad in the local newspaper whenever a lioness was in heat: "Heute Löwen!" ("Lions today!") When that director later married, someone put an ad into the local newspaper: "Heute Schneider!" ("Schneider today!"). :)
@DeadMG I think not sleeping enough causes a headache like that for me. If I lay down and stay fairly still I am ok, but when I stand up i get throbbing for a few seconds, then just a dull ache