• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Othello/Reversi Game Play

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Found 1 bug: url should be
http://www10.brinkster.com/A1ien51/OTHELLO/
Other than that, it's working pretty well.
 
whippersnapper
Posts: 1843
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 867
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this game is good for chinese
Did you use your chicken feet siu?
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 867
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you use your chicken feet siu?
Of course~~
Moose feet
 
Michael Matola
whippersnapper
Posts: 1843
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Trailboss
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I played it and was suprised I won!
I'm triple suprised that you can have a game of this complexity in javascript!
Very nice!
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the look is awesome, i dont know how to play though
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic