[FUN] ConnectFour v0.3.2 - Now with tic-tac-toe [1060]

Discussion in 'Inactive/Unsupported Plugins' started by cholo71796, Aug 1, 2011.

  1. Offline

    cholo71796

    ConnectFour - Play Connect Four in Minecraft!
    Version: v0.3.2

    Please refer to the BukkitDev project!
    ConnectFour works by creating virtual chests- inventories that have no ties to real chests in Minecraft. During a game, a chest inventory is visible on both players' screens. They may click on any free space in the columns to drop their coins into the slots. It will automatically go the lowest available space, just like in real-life Connect Four.​

    Tic-tac-toe uses a similar interface. Try it out yourself!

    Player inventories may not be modified during this time to avoid problems.
    [​IMG]
    Features:
    • Allows players to play Connect Four and tic-tac-toe in Minecraft
    Download: JAR (source)

    Commands:
    Code:
    /connectfour, /cf, /c4
    
    /cf [player] - request a match. (Uses smart matching, no need to type the whole name.)
    /cf [player] [money] - request a match. The loser will pay the winner the money.
    /cf accept - accept a request.
    /cf reject - reject a request.
    /cf back - return to a game that you accidentally closed out of.
    
    Replace /cf with /tic (also /ttt, /t3 and /tictactoe) to play a game of tic-tac-toe.
    
    Permissions:
    Code:
    connectfour.play - accept and reject requests
    connectfour.start - send requests
    tictactoe.play - accept and reject requests
    tictactoe.start - send requests
    
    I should note that a player requires BOTH .start and .play nodes to initiate a game.
    .start by itself won't do anything.
    In BukkitPermissions, all players have these nodes by default.
    Todo (open)

    Put other stuff I've been meaning to put in config in config
    Add configurable range between players

    Changelog:
    Version 0.3.2
    • Updated to cb1060
    Version 0.3.1
    • Added tie detection.
    • Amendment: registered default permissions.
    Changelog (open)

    Version 0.3.0
    • Switched Permissions to built-in Bukkit permissions.
    • Added economy support through Register.
    • Added a configurable language file.
    • Added matches for stakes.
    Version 0.2.2
    • Added broadcasts. Soon to be configurable.
    Version 0.2.1
    • Large rewrite and reorganization of code.
    • Added ability to return to game if you accidentally close out.
    • Converted from BukkitContrib to Spout.
    Version 0.2
    • Added Permissions support.
    Version 0.1
    • Added tic-tac-toe.
    Version 0.0
    • Release

    FYI: This plugin automatically downloads Spout, as the plugin requires it server-side to function. No worries, players do not need to have the client mod version of Spout.
     
    shadrxninga likes this.
  2. Offline

    shadrxninga

    Pretty Cool :D

    Great Idea!
     
  3. Offline

    cholo71796

    Thanks! I was surprised to find nobody had done anything even remotely similar to this before me. I'm pretty satisfied with it.
     
  4. Offline

    Sh00ck

    i will try this :eek:
    The Screen etc. is really nice :O

    Edit//
    Permissions Support, iConomy Support [Winned Game]

    Edit2//
    When i click T or ESC then the "Chest" is closing!!
    and i can not go back in the Game ;)
    Please fix with :
    /cf back or so ;)
    That i can goback in the Game

    Edit3//
    Broadcast who won..
    Broadcast who started a game with
    Spectate function to show a game
     
  5. Offline

    4am

    Ha! That sounds pretty cool; a very creative way to manipulate the client! I'm gonna give this one a shot later tonight.

    Since workbenches give a 3x3, perhaps you can implement a tic-tac-toe as well? :)

    EDIT: Is this possible to do without BukkitContrib?
     
  6. Offline

    Sh00ck

    aaaaahhh!
    TIC TAC TOE :eek:
    That whoould be soo cool xD
     
  7. Offline

    superbomb17

    Dang! Amazing work! I'm more interested in hOw you gt this to work w/o client mods, also TicTacToe would be cool :) maybe I'll work on that :)
     
  8. Offline

    cholo71796

    Yeah, since it's one of the server side things I could just take the methods BukkitContrib uses and put them in my plugin, but this feels more organized.

    Tic-tac-toe would be pretty sweet. I think I'll have to do that one.

    It doesn't use client mods (if that's what you're asking)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  9. Offline

    Sh00ck

    Did you read my Things ;P ?
     
  10. Offline

    cholo71796

    Yeah, I'll get around to those. Permissions, broadcasts and economy support are definitely coming. I've thought about spectate before, but it's not a high priority for me. I'm not sure what I think of allowing people to return to the game.
     
  11. Offline

    Sh00ck

    for you ;)

    for me is this really a high priority ;)
    but a really really HIGH priority has for me the : TIC TAC TOE ;)
    Thats better than Connect four
     
  12. Offline

    superbomb17

    B
    no,
    I was wondering HOW you did it w/o client mods.
     
  13. Offline

    Grammar Troll

  14. Offline

    cholo71796

    Oh, okay, the "gt" in your post was a little ambiguous- "get" or "got."
    Actually, I don't see a way to use that for virtual chests (correct me if I'm wrong). I'm using this method. BukkitContrib was really just for inventory listeners.
     
  15. Offline

    Grammar Troll

    I don't think you're wrong, I assumed that you used BukkitContrib to create virtual chests. I've been actively watching BukkitContrib's github lately so I remembered this page saying something about inventories. Forgive my ignorance, I posted without having any knowledge about coding ;)
     
  16. Offline

    cholo71796

    Haha, that's okay. I'm working on tic-tac-toe right now, but I think I'm going to use the doublechest for it as well because manipulating virtual-other-interfaces is a pain in the ass. (Or I'm just too much of a noob to do it.)
     
  17. Offline

    Grammar Troll

    I'm looking forward to tic-tac-toe! Good luck!
     
  18. Offline

    Sh00ck

    Yeah ;D
    Your working on it
    That are good news :D


    Edit//
    Please add Support to Spout [New BukkitContribut or so xD]
    http://forums.bukkit.org/threads/de...-the-flow-of-endless-posibilities-1000.29259/

    Edit2//

    When are you finished ? :Ö
     
  19. Offline

    cholo71796

    I can do that, but I don't think I will until Spout appears more stable. Running it sends superfluous messages to console. BukkitContrib will do just fine for now.
    Precisely when I am finished. I mean right now.

    @Sh00ck @Grammar Troll @4am
    v0.1 adds tic-tac-toe. Play the game by using /tic [player], /tic accept and /tic reject. (Also, /tictactoe, /t3, /ttt).
     
  20. Offline

    Sh00ck

    Same thing at my Position with Spout i tried it and i become FLOOD Messages... Always the Same ;D

    &

    Thanks for TicTacToe i will try it

    Edit//
    Does not Work :
    First :
    You can MOVE all THINGS in there ... The Pistons and the Ladders
    i can't set anything etc. etc. ?
    Help ?

    and CF the Same...
     
  21. Offline

    cholo71796

    Do you have your own server? I'd love to come and try it on a real server, I'm just testing locally.
     
  22. Offline

    Sh00ck

    yes but this is a ONLY German Server ;)
    But you can test it when you want ..
    Have you Skype ? I dont want to Say all my IP..
    because then there only come some English Speakers ;P
    @cholo71796
     
  23. Offline

    cholo71796

    That makes sense, you can just send me a private message
     
  24. Offline

    cholo71796

    @Sh00ck
    Added the ability to return to the game in v0.2.1 as you suggested. I hope you like it!

    Added chat broadcasts when a player wins/loses a game. I'll add a permission node for this and a configuration file shortly. (configs are simple)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  25. Offline

    dbizzzle

    Would it be possible to use the dispenser GUI for tic tac toe?
     
  26. Offline

    cholo71796

    Yeah, but you can't customize the name of dispensers inventories. The double-chest is also more convenient to modify
     
  27. Offline

    dbizzzle

    why is it that you can customize chests but not dispenser?
     
  28. Offline

    cholo71796

    Don't ask me! Ask Notch
     
  29. Offline

    dbizzzle

    Hmm, thats odd :p
     
  30. Offline

    Plague

    Sorry for the delay in submission approvals, I've been away for a while.
     

Share This Page