Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: [GAME] Dots and Boxes

  1. #1
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default [GAME] Dots and Boxes

    1) CODE TITLE:

    Dots and Boxes

    2) AUTHOR NAME/NOTES:

    techietim

    3) DESCRIPTION:

    The 2-player game of Dots and Boxes.

    4) URL TO CODE:
    http://toolbox.techietim.ca/dots_and_boxes/

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Nice! Works great in FF3 and IE7.
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Very cool.

    A couple UI suggestions:
    1. Instead of just stopping the game when a player has a majority of spaces filled, first actually fill in the rest of the space as blue/red, THEN stop it and say "blue wins", kinda like in chess when you knock the opponent's king over.

    2. To make it a bit easier to click, allow clicking in the middle of a square, when that square is going to be colored blue/red. Click on 3 lines, then for the fourth you can either click on the last line or you can click in the center of the square.

    3. Finally, to save even more clicking, it would be cool if, when you closed off a region, the entire region should fill in with the color-- so you don't have to work your way out. Generally, it is understood that if you seal off a region of many blocks and could potentially continue to fill them all it, that you then get them all, with just sealing off the outermost one.

    Aside from that, great version of the game!
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    One more UI suggestion:
    I think it would be nice if the lines would have be highlighted when being hovered. After playing for a few minutes, I noticed that when trying to click the lines I would quite often miss them. Of course you could also make them thicker or make a larger clickable area, but that might be to much, I think highlighting would help a lot.
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

  5. #5
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default

    @Snookerman:
    Added :hover on the lines.

    @djr:
    Since the player can't win if the other player has over >= 51 of the squares, I makes sense to stop the game. The games are usually long enough as is.

    Thanks for the suggestions!

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Stopping the game is fine, but it would be a really good visual clue if when it stopped the remaining squares all turned blue or red automatically also.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Make the hover a darker grey.
    Jeremy | jfein.net

  8. #8
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default

    Best game ever.

    http://img389.imageshack.us/img389/6797/lolfu8.png

    Don't judge me!

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hahahaha
    Stopping the game is fine, but it would be a really good visual clue if when it stopped the remaining squares all turned blue or red automatically also.
    Maybe, but the board would then not match the scores.

    There are quite a few issues with this code, most of which are described in my list of common coding mistakes.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,370
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    Just from the perspective of playing the game, I found it boring. Perhaps if you could get the computer to play one of the colors . . .

    Anyways, reminds me of battleship, which can be fun as long as you don't have to play both 'hands'.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •