• World of Warcraft Addons
  • World of Warcraft
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

Chess

  Download the Curse Client

Project Updated:
Files Updated: 12-25-2008
Supports Game Version: 3.0.3
Category: Minigames
Tags:

[Edit Tags]

Project Manager: smariot
Additional Authors: No additional authors
Current Version: 1.4
License: GNU General Public License version 3 (GPLv3)
Avg Daily DL (last 30 days): 34
Downloads Total: 5,460
Favorites: 17
Comments: 6
  • About Chess
  •  

A Chess program written in Lua for World of Warcraft. Why? Because I could.

Usage

Menu

Type '/chess' to display a menu for starting chess games.

VS Computer Black

Start a game with the computer playing black.

VS Computer White

Start a game with the computer playing white.

VS Target

Start a game with your selected target. Be sure to ask them first, as the whispers sent to them will probably get you ignored or reported for spamming.

Find Opponent

Find another player in your realm and faction that is also looking for an opponent, and start a game with them.

Past Games

Lists your previously played games. Clicking on an item will display that game, and let you review the history of that game.

Multiplayer

When playing against another player, moves will be whispered with them using algebraic chess notation. Technically, the other player doesn't need to have this AddOn and can manually whisper their moves back to you, but who would want to bother?

The position of white is first come, first serve. As soon as one player moves a white piece, the other player is forced to play black.

Playing

Click on the piece you want to move, and then click where you want to move it.

You can also drag the piece where you want it. The piece won't move unless you release the mouse button on a valid square.

Title

The title contains the names of the players, with white on the left, and black on the right.

The background of the title is the colour of the player who is to move next. It will be light or dark grey when the the game is over, or not displaying the most recent move.

If one player appears to be better than the other, the better player has their chance of winning displayed beside their name.

Move History

There are two arrow buttons at the bottom of the game window. Pressing them will go backwards or forwards through the game history.

You can't move pieces if you aren't viewing the most recent move.

If your opponent moves while you're viewing an older point in the game, the game will be advanced forward to the most recent move.

Castling

To castle, move the king to where it would be after castling. The rook will be moved for you automatically. Moving the rook will only move the rook, and not castle.

En Passant Captures

These are performed by capturing the square a pawn passed through with your own pawn. The enemy pawn will be moved back to that square and captured.

Promotions

When you try to move a pawn to the highest rank, a small window will appear under your cursor, allowing you to choose the what to promote that pawn to.

Resignation

If you click the resign button, you lose and the other player wins.

Closing the game window, reloading the user interface, or logging out have the same effect as clicking the resign button.

As a feature, if it is currently your turn and you're entitled to claim a draw, this will draw the game instead.

The computer will never resign.

Drawing

If it is your turn and either 50 moves have been made without a capture or a pawn move, or if the game has been in this same state (pieces in the same places, each with the exact same moves available) then you are entitled to claim a draw.

If it is your turn but those other conditions don't apply, then you can instead propose a draw. If the other player accepts, then the game ends. Note that the other player can't reject the proposal, they must either accept it or you must make a move for the game to continue.

The computer will never propose or claim a draw. It will however accept a proposed draw if 25 moves have been made without a capture or a pawn move.

Bugs

  • All computer games share the same memory pool. If you have more than one at the same time, then as the AI in one game discards unplayed game paths, the AI in the other games will snatch it for themselves, leaving the first with no memory to explore. It will still be able to play, but will do so very badly.
  • There needs to be a time limit for making moves, so that someone will eventually lose if they stop playing.

Incompatibilities

Versions before 1.3 are completely incompatible with later versions. Version 1.3 won't accept non-queen pawn promotions from versions 1.4 and later.

Credits

The large chess piece images were drawn by Maurizio Monge and released under the LGPL2 license. The original files from which they were created are in the Fantasy directory.

The small chess figure images were generated from the freeware font FigurineSymbol created by Armando Hernández Marroquín.

Everything else was created by myself, Tyson Brown, and is covered under the GPL3 license.

  • Downloads (4)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  Chess 1.4 Release 3.0.3 4,715 12/25/2008
  Chess 1.3 Release 3.0.3 238 12/18/2008
  Chess 1.1 Release 3.0.3 130 12/15/2008
  Chess 1.0 Release 3.0.3 375 12/13/2008
  • 1 page(s)
Advertisement
  • Screenshots (1)
  •  
  • Comments

Add Comment

Add

You need to or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • Amazing. Will try out this weekend. High on my list of things I'd like to see for this addon would be the ability to minimize the game while the opponent thinks, and a scale option for the chess UI.

    Fun idea that would probably take too long to implement: a way to have players in a game remain in the channel, and report that they are in a game when asked to play. Then users could see that "Bob is in a match with Joe" and could request one to view the status of the game. Bob/Joe would whisper all the algebraic moves made, and the user could then spectate!

    Reply Report Permalink
  • Zokinin said 

    Is there a way to make it smaller? Even something I could change in the code would be appreciated. :D

    Reply Report Permalink
  • smariot said 

    You can probably change line 540 of chess.lua

    Where it says board:SetScale(1), you can make it something smaller.

    Reply Report Permalink
  • smariot said 

    How finding an opponent works:

    1: You join the channel 'chess'.
    2a: If you see someone join the channel, you ask request a game with them. If they accept, you leave the channel.
    2b: If someone else was in the channel, they'll request a game with you. You auto-accept the request and leave the channel.

    The addon accepts AddonMessages with the prefix 'SChs'.

    Each message can contain multiple commands separated by '|' characters. Each command has its parameters delimited with ':'. Unknown parameters and commands are ignored.

    The commands are:

    j - Request a game. Displays a message if they weren't looking for an opponent.
    a - Accept a requested game. Ignored if a game with the sender wasn't requested.
    s:xxxx - Tell them our chess rank. Will only accept numbers between 0 and 3000. This is included in the same message requesting or accepting a game. 1500 is average.
    m:xxxx - A chess move, in algebraic chess notation. Can only be sent on your own turn.
    m:1-0 - Resign - Only black can send this.
    m:0-1 - Resign - Only white can send this.
    m:½-½ - Draw, or propose a draw if you aren't entitled to one, or accept a proposed draw. Can only be sent on your own turn, unless in response to a proposed draw.

    You can only have one game at a time with any one player (there is no way to tell which move goes with which game otherwise), but you can have multiple games with multiple people at the same time.

    There is no way to specify who is white and who is black. Both player start the game as white. After one player moves, the other becomes black.

    If you want to extend this protocol, the version should probably be first parameter of the 'j' and 'a' commands.

    Reply Report Permalink
  • do the other PLayer HAVE to have the same Add-on?

    Reply Report Permalink
  • smariot said 

    In 1.1 the other player would see a whisper containing your move in algebraic chess notation, and they could whisper back their own move, but I don't think anybody is going to want to do that.

    In the newer versions, whispering isn't an option, and I'm pretty sure no other AddOns use the same protocol, so yes, both players need the same AddOn.

    Reply Report Permalink
  • thats gotta be pretty hard to find a player with Chess... :\

    Reply Report Permalink
  • smariot said 

    Yeah, but at least it includes AI to play with.

    Reply Report Permalink
  • I don't know you but I love you already!

    Reply Report Permalink
  • coudl you add the wowchess layout?

    http://wowui.worldofwar.net/?p=mod&m=3018

    Reply Report Permalink
  • 1 page(s)
  • Similar Addons
  •  

Average downloads per day

  1. 1,896 Peggle Minigames
  2. 1,513 Bejeweled Minigames
  3. 216 WoW Texas Holdem Minigames, and Data Broker
  4. 75 Tetra Minigames
  5. 73 Guild Lottery Chat & Communication, Guild...