Lucario621 wrote:
Hardmath123 wrote:
My code uses a true game tree — for the given position, I play all completions to the end, and select a move which leads to me winning in the end. http://wiki.scratch.mit.edu/wiki/Game_Tree
That's interesting! I forgot we had a wiki article about that. I guess that involves recursion, right?
Yup! Recursion rocks.
Offline
veggieman001 wrote:
Lucario621 wrote:
nathanprocks wrote:
This does not work in Internet Explorer (Chrome is broken).
Hmm, I don't know how to help you with that. I can't get it to work with my IE9 browser either, but I don't really know why.
Because Microsoft sucks at web standards??
+1 Look at the console in IE9 and it says there is an error in line 32, char 2 or something like that.
Offline
I beat expert
Offline
Cool, Luc! I didn't know you know JS.
I know it pretty well. The first game i ever made in JavaScript was a silly little thing i called Catch!
I was able to beat easy and medium on my own, but hard was a bit too difficult. I eventually used kayybee's advice quoted below to beat expert.
kayybee wrote:
How to beat expert:
1. Center
2. If gone on side, restart. (it may be possible to beat it like this, but I don't have time yet to figure it out). If in corner, go in direct opposite corner.
3. If made 2 in a row, block. If not, go to the place to make a fork.
4. Win.
Does this work?
Yes!
Offline
scimonster wrote:
Cool, Luc! I didn't know you know JS.
I know it pretty well. The first game i ever made in JavaScript was a silly little thing i called Catch!
Cool game scimonster!
Offline
Lucario621 wrote:
scimonster wrote:
Cool, Luc! I didn't know you know JS.
I know it pretty well. The first game i ever made in JavaScript was a silly little thing i called Catch!Cool game scimonster!
Thanks.
Offline
MrFlash67 wrote:
On Easy, when you win with all the squares filled, it pops up with the win, then the draw.
Hmm, I never noticed that. I should probably add a feature so when you click on a square after winning/losing the game, then it won't allow you to put an X.
Offline
scimonster wrote:
Cool, Luc! I didn't know you know JS.
I know it pretty well. The first game i ever made in JavaScript was a silly little thing i called Catch!
the time does not reset after you are done playing.
I got 28 seconds, then it said 50, then it said 75.
but really, the times were 28, ~22, and ~25.
Offline
Mokat wrote:
I want to learn Javascript but I don't really have the time because of school. I might try to learn some over Christmas/Winter break.
My dad may teach me JavaScript, and I want to.
Offline
Nice, Lucario. That was quite enjoyable. :3
Offline