Dots Game

We used to play this game all the time in boring classes in high school. I had several notebooks filled with dots games. Heh… Here is a javascript version.

Let me explain the object of the game:

Click on any of the dots, then click on another to draw a line. You can only draw lines up, down, left and right – but not on diagonal. The opponent also draws a line. You take turns drawing lines until you connect 4 lines to make a box. Whoever completes the box claims it (it is filled with his color) and gets another free turn. You can have as many extra turns as you want, as long as you keep claiming boxes. Game ends when there are no more possible lines to draw and the player with more boxes wins.

Enjoy:

I lifted and slightly modified the code from monteux.no-ip.org so all the credit for the code should go to that dude.

Btw, can someone explain to me why the content of my iframe has extra spaces all around when rendered in Firefox but in IE it barely fits in the allocated space, and requires scrollbars?

[tags]dots, dots game, games, javascript, fun[/tags]

This entry was posted in video games. Bookmark the permalink.



9 Responses to Dots Game

  1. ZeWrestler UNITED STATES Mozilla Firefox Windows says:

    The originaly website needs to learn how to spell computer.

    Reply  |  Quote
  2. ZeWrestler UNITED STATES Mozilla Firefox Windows says:

    i need to learn how to spell too, thats a given.

    Reply  |  Quote
  3. Eli Burford AUSTRALIA Mozilla Firefox Windows says:

    Computer: 47
    Player: 2
    I’m surprised I got 2, I think I trapped the computer ;) Stupid thing heh heh :P

    Reply  |  Quote
  4. Luke UNITED STATES Mozilla Firefox Ubuntu Linux says:

    The secret of this game is to never be the one who makes the 3rd wall of a square unless you have to. If you play against a human on paper you can sometimes get away with it, but the script above will automatically take a square if you do this.

    So as long as you can, you need to put lines in semi-random places. Once you run out of free lines you will have to give away some points. The trick is to pick a spot on the board in which the opponent can only score 2-3 squares and then must stop.

    On the other hand if you see the opponent puts down a line in a way it allows you to score, you want to be very careful with your extra moves. You want to score as many points as you can, so place each scoring line in a way that will allow you to immidiately place another.

    You can easily race through half the board this way if the game goes on for long enough.

    Reply  |  Quote
  5. un4scene UNITED STATES Internet Explorer Windows says:

    Yay, I won 39 to 10! Bring on the toasters!

    Reply  |  Quote
  6. Luke UNITED STATES Mozilla Firefox Ubuntu Linux says:

    You are a dots pro now! :mrgreen:

    Reply  |  Quote
  7. Monteux UNITED STATES Mozilla Firefox Windows says:

    Wow, I’m suprised to see this here. I am the owner of the origional website monteux.no-ip.org, and I’m still expanding it. I’ve had it up only a little while, and I haven’t had time yet to clean up the bugs. I wish I could take credit for the code myself, but I found elsewhere, and had saved it to my comptuer a while before putting it up. Glad to see people actually make it to my site.

    Monteux.

    Reply  |  Quote
  8. Luke UNITED STATES Mozilla Firefox Windows says:

    I think I found you via Stumbleupon. I guess your site was up long enough to get into their index :)

    Reply  |  Quote
  9. Pingback: Terminally Incoherent » Blog Archive » Random Sunday Mix UNITED STATES WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *