[FUN] ChessCraft - Play Chess [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by desht, Jul 4, 2011.

  1. Offline

    desht

    ChessCraft - play chess

    ChessCraft is now on dev.bukkit.org. This thread will remain open for now for general discussion, but please use dev.bukkit.org for reporting problems and feature requests.

    All documentation is now maintained on dev.bukkit.org. Nothing below here will be updated from now on (8th September 2011).

    ChessCraft lets you play games of chess in the world of Minecraft. It has support for multiple chessboards and multiple concurrent games. You can play against other humans, or against the computer.

    Download ChessCraft.jar 2.0.1
    View source code on github
    Read the User Manual on dev.bukkit.org

    Thanks to BrandonHopkins for this review & tutorial:


    And to the WoopaGaming folks for this one:


    Changelog
     
  2. Offline

    MortesNoize

    Awesome! I love it :D
     
  3. Offline

    navbarry

    Does this use alot of ram?
     
  4. Offline

    desht

    Not especially (and v1.0+ is a lot lighter than earlier versions due to the use of reusable/immutable material objects). I haven't done any proper scientific measurements, but some casual VisualVM inspection shows the memory usage doesn't rise significantly as boards & games are created. I do code with efficiency in mind.
     
  5. Offline

    navbarry

    It is telling me the chessboard file is unreadable. What did I do wrong? I followed the instructions.
     
  6. Offline

    desht

    You need to create a ticket on the dev.bukkit.org page - I don't really use this forum for support anymore. Be sure to include a cut & paste of your error text.
     
  7. Offline

    Rossy

    Awesome, chess plugin.


    But 2.5m? lol, no thanks.
    That's more than McMMO, Essentials, Worldedit, Worldguard, and iConomy all combined.

    Other than that, it's a really good plugin, surprisingly stable.
    Does the plugin support castling?
     
  8. Offline

    desht

    I was wondering when someone would notice the JAR size :) Been that way for about 8 months now.

    Anyway, the only reason the JAR is 2.5MB is because it includes a 2.0MB data file (fr/free/jchecs/ai/jchecs.opn) which is the opening book for the AI engine. It doesn't really contribute to the memory used by the plugin. You can make the AI use it with /chess set ai.use_opening_book true

    Yes, it support castling, promotion, en passant... the complete chess rule set is implemented.
     
  9. Offline

    Rossy

    Can I simply delete the AI file and just use the plugin for player vs. player, then?
     
  10. Offline

    desht

    Shouldn't cause any problems. You even play vs the AI - if the code can't find the jchecs.opn file in the JAR, it will simply ignore it.

    But is 2MB disk space that much of a concern to you?
     
  11. Offline

    randeri221

    awsome plugin :)
     
    desht likes this.
  12. Offline

    Rossy

    Considering it doubles the amount of space I'm using and my server is hosted, yes.
     
  13. Offline

    desht

    Fair enough :) Anyway, I've tested & confirmed - removing fr/free/jchecs/ai/jchecs.opn from the JAR file will not cause any breakage - the AI just won't have the benefit of the opening book. This gets the JAR size down to about 0.5MB.
     
  14. Offline

    skittlezcraft

    every time i go to make a board it says "resourcen file 'plugings/chesscraft/board_styles/standerd.yml' is not readable"
    what do i do it fix this?
     
  15. Offline

    desht

    Create a ticket on the dev.bukkit.org site, and paste the EXACT error message (not a rough approximation) and I'll take a look. It sounds like you've deleted some resource files that it needs, although they should be re-extracted from the .jar file as necessary, so I'm really not sure why you're seeing that error.
     
  16. Offline

    desht

    New release:
    v1.1.0 (14 Jun 2012)

    http://dev.bukkit.org/server-mods/chesscraft/files/12-chess-craft-v1-1-0/
     
  17. Offline

    EvilJackCarver

  18. Offline

    desht

    Hmm, that's a weird one. No idea why the MessagePager class would not be found - there isn't anything unusual about it. Did you overwrite the JAR file?

    Anyway, 1.1.0 shouldn't have that problem (and should also fix your NPE with loading custom board styles).
     
  19. Offline

    EvilJackCarver

    I have updated to 1.1.0, and I really try to avoid messing with the .JARs as much as I can.

    Anyway, there's an error with the stakes on it, filling out a ticket now.
     
  20. Offline

    desht

  21. Offline

    EvilJackCarver

    I'll try it out and see if it works.

    Edit: Yeah, it works.
     
    desht likes this.
  22. Offline

    Rossy

    Great plugin, fantastic, I absolutely love it and so do my players. Just a question, though. Did you import a chess engine like Rybka or something? Or did you create your own chess AI? Roughly how strong is the AI, do you think? Do you have an estimate on the ELO?
     
  23. Offline

    desht

    Glad you're enjoying it. I'm using the jChecs engine - estimated ELO is probably around 1750-1800, depending on the AI you play against. So, strong enough to beat most casual players, but not a match for strong players.

    (Credit for integrating jChecs must go to jascotty2 , who contributed a fair bit of code to ChessCraft around the 0.3 - 0.4 time).

    Rybka is sadly closed-source and Windows-only, so no possibility of importing it directly, but one day I'll get round to implementing xboard and/or UCI interfaces and see about hooking up to some much stronger engines :)
     
  24. Offline

    Rossy

    How do I make it automatically go to a certain time control when a game starts and now allow them to change it? I added:

    Code:
      - label: Game in 15;minutes;(Standard)
        spec: G/15
    To the timecontrols.yml - How do I make it automatically set the time control to this when someone clicks create game? At the moment it goes to that but you have to scroll through the time controls on the sign to get there for it to actually work with this time control.
     
  25. Offline

    desht

    Rossy

    There isn't any way to do that right now, but that's a feature I can add. It will need a little design consideration though - I guess such a "locked time control" should be an attribute of the board?
     
  26. Offline

    EvilJackCarver

    Bug report: Attempted "/chess archive" without any additional arguments, on a board in which a game was running, without being a player in said game. Pastie's here.

    Also, is there a way to force the game to end? One of my players left a game running. =\
     
  27. Offline

    desht

    EvilJackCarver the archive bug has probably been there since 0.1 :). Should be an easy fix though.

    To get rid of a game, you can always use ''/chess del game <game-name>" assuming you have the right permission.
     
  28. Offline

    EvilJackCarver

    Good to know.
     
  29. Offline

    desht

    New release (I've not posted the last few here, time to bring it up to date!)

    Summary of major new features:
    • It's now possible to fly around chess boards without needing to be in creative mode
    • Added control panel button to cycle through a predefined list of time controls. Possible to define a default time control on a global and per-board basis. Also possible to lock the time control on a per-board basis (i.e. have a board enforcing a time control).
    • Similarly, it's possible to define default stakes on a per-board basis, and lock the stake on a per-board basis.
    • Simplified Chinese translation (/chess set locale zh_cn)
    • ...and lots of other minor additions and fixes - see http://dev.bukkit.org/server-mods/chesscraft/pages/changelog/ for full details
    Recent changes:

    v1.3.2 (5 Sep 2012)
    v1.3.1 (26 Aug 2012)

    v1.3.0 (24 Aug 2012)

    • Flight! Players can now fly when on (or sufficiently near - configurable) a chessboard, without needing to be in creative mode. Players get a message when they are close enough to a board to fly, and when they move too far away. See Getting Around the Board.
    • FIX: fixed ArrayIndexOutOfBoundsException thrown when a player not in a game clicks a Promotion control panel button. Player now gets a message stating they're not in the game.
    • FIX: now more tolerant about duration string format (e.g. for config settings such as "auto_delete.finished") - strings such as "30sec" (with no space between number and unit) are now accepted where previously an exception was logged.
    • Added option to "/chess list top" to exclude AI players from list: e.g. "/chess list top 10 ladder -ai" shows the top 10 human players on the ladder.
    • Added new Simplified Chinese translation ("/chess set locale zh_cn")
    • Brought German (de_de) translation up to date.
    http://dev.bukkit.org/server-mods/chesscraft/files/19-chess-craft-v1-3-2/
     
  30. Offline

    desht

    New release:
    v1.4.0 (12 Sep 2012)
    • Move undo: it's now possible to undo your last move with the new "Undo Last Move" control panel button or by typing/chess undo. Restrictions apply: in PvP, the undo request must be accepted by the other player, and in PvAI, undo is only allowed if you're not playing for a stake.
    • Control panel buttons have had a slight rearrangement: Game Info has been moved from top right to centre left (below the Board Info button), Teleport Out has been moved from centre left to bottom centre, and the new Undo Last Move button is now at top right.
    • Add new (Brazilian) Portugese translation: /chess set locale pt_br
    • FIX: the flying.allowed setting wasn't being respected when players logged in on a chessboard
    • FIX: PGN game data now has the right Black player name, and includes the server name in the PGN site field
    • FIX: surrounding terrain should now be correctly re-lit when a board is deleted
    • FIX: fixed bug where control panel signs would sometimes be dropped on the ground when a board is deleted
    • FIX: correctly report lack of permissions to player (who doesn't have chesscraft.basic) instead of logging exception
    http://dev.bukkit.org/server-mods/chesscraft/files/20-chess-craft-v1-4-0/
     
  31. Offline

    Kaitosho101

    Can you put skip turn?
     

Share This Page