http://www10.brinkster.com/A1ien51/OTHELLO Thought I would show you what I have been working on for the past week or so and I need to get some more eyes looking at it beside mine. The game is totally written in JavaScript/HTML and contains different levels of play. Please play the game and see if you get any errors. The medium player is still being coded, but it should give a challange until you find it weaknesses in the defense. Comments on the look and feel of the game are welcomed too. Also what is your strategy when you play? Mine is listed in the tatics of the help page. Thanks Eric [ May 25, 2003: Message edited by: Eric Pascarello ]
Nicely done! Played about 20 games and beat the computer all but once. Best win was 58 to 6. Never managed to shut out the computer though. Generally played the standard strategy of keeping things within the center 4 x 4 region as long as sensibly possible and capturing as few pieces as sensibly possible in the first half of the game. Then just waited for the computer to make mistakes and exploited them.
Francis Siu
Ranch Hand
Joined: Jan 04, 2003
Posts: 867
posted
0
Eric I think this game is good for chinese Because most of the chinese know how to play But I do not think The Moose who knows how to play I want to ask one question Does the obstacle can predict my next step? I mean the logic operation including calculation of my next movement thanks
Francis Siu
SCJP, MCDBA
Michael Morris
Ranch Hand
Joined: Jan 30, 2002
Posts: 3451
posted
0
I think this game is good for chinese Did you use your chicken feet siu?
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
posted
0
My experience was virtually identical with Michael Matola's, including no shutouts, one loss, but mostly landslides in my favor. I don't remember exactly, but a couple times the computer was left with 5-10 pieces; the rest mine. My strategy is similar to MM's. For about 2/3 of the game I don't really pay any attention to how many pieces either side has - I just care about getting (and holding) the edges, and then the corners. The program does a decent job at the beginning - it stays in the center 16, avoiding the rows one in from the edge - and if you do move onto one of these rows, the program exploits the opportunity to seize the edge, as it should. The program's play starts to break down after this though. The most common mistake it makes is if you've already got a piece on the edge, it will happily put its own piece right next to you. Naturally, this new piece doesn't last long. Alternately, if the program succeeded in getting an edge first, I try to put a piece on the same edge at least one space away from my opponent. Here again - the program will merrily fill in the gap, and then it's easy for me to flip the whole group next move, getting exclusive control of the edge (and probably the corners, soon enough). More advice: If you have the opportunity to put the first piece on an edge, and you have a choice of three consecutive edge spaces that you could play on - choose the middle one. Otherwise your opponent will probably be able to put a piece on the same edge next turn, one space away from yours (which is a standoff). If you take the middle spot, your opponent can probably only play on either side, with no space - which means you can seize control of the edge again next turn. Avoid having two of your pieces on an edge with a space in between. If your opponent does this, play into the space, and then wait for an opportunity to grab the corner. (Or at end of game, everything up to an opposing piece.) Great job you've done so far, Eric. [ May 23, 2003: Message edited by: Jim Yingst ]
Francis Siu
Ranch Hand
Joined: Jan 04, 2003
Posts: 867
posted
0
Did you use your chicken feet siu? Of course~~ Moose feet
Michael Matola
whippersnapper
Ranch Hand
Joined: Mar 25, 2001
Posts: 1721
posted
0
Heh! First shutout. 61 - 0. In my favor. Computer played black. I played white. It gave up the top right corner early on and it was all downhill from there. BlkWht 3E3F 6D6C 4F6E 5C5F 3G4C 6F3D 3C2D 1C3H 2H1H <- bad move computer's side, which I 7E8F was able to exploit 8D2C 2F1G 1F2G 4B1E 2E4H 6B1D 1B1A __ 4G 5G3B 2A4A 3A6H 5H5B 7H8H 5A6G 2B7G __ 7F 8G7D 8E8C __ 7C __ 7B __ 6A [ May 24, 2003: Message edited by: Michael Matola ]
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
The code is buggy around the edges, I think my project for sun. night is to get it working better. The computer right now has no predictions, I plan on doing that, but I have been busy on some other games for people. Been coding a card game, pain in my rear! I showed the people in MO about my other games. http://www10.brinkster.com/A1ien51/battle/ReadyFourBattle.htm http://www10.brinkster.com/A1ien51/lights Eric
Like the others: really nice game. I've allways won (comp player is very stupid) 0 bugs. good desing. very open code. Have bookmarked your other dhtml stuff, too. thank you.
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
JavaScript can do alot of complex things, there is a RPG game that compares to that of the old Nitendo all done in JavaScrip/DHTML which blows my mind away, I do not have the link on me. The power of the games depends on the browsers. Netscaoe 4.X should be put to death since it does not fully support Css/DHTML/JavaScript so people can not benfit from it. I started and have not completed a TicTacToe game that learns from its mistakes. I am not thinking logical enough for the code to work, but one day I will have it up. I will have to hook that up with ASP to save the database file, but that is not hard. My goal is to get Reversi up to par on the medium level. I am going to rework the algorithm that I have. I have the feeling my ratings of placement are causing the misplacements. Once I get this done, then the next level of play will look to see what is going on. I am going to look at a C++ endgame solver to see if I can figure out any short cuts. I have the basic idea after reading a lot of online discussions on Othello. Most games use a database of games (150,000+), but I am never going to go that extreme! I made these games for my enjoyment, so as long as I like them, then I will code them. Eric
Randall Twede
Ranch Hand
Joined: Oct 21, 2000
Posts: 4095
1
posted
0
the look is awesome, i dont know how to play though
SCJP
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
You can read my help page, or here is some info on the game http://www.maths.nott.ac.uk/othello/beginners.html I been doing a lot of research on this, there are countless Applets and Win-based programs on Othello. Played a bunch of them....I have read stuff on programming Othello and I am amzed that there has been so much intreset in this. It is impossible to beat most of the computer programs out there that are linked to databases of moves. There are sites that compare it to the chess game where a human can beat it, but not here. I know I will never get to that level, but it would be fun to try. I am developing an end game solver, hoping it does not crash my browser too much, lol Eric