Multiplayer online TicTacToe Game

I am familiar with Java, worked for almost 2 years, I would like to know what exactly I need, the programms on client side and the server side, how to code and all to develop a multiplayer online game, where user will ener the room using their nickName and see some tables and the users they can join any table or ceate new table or invite a user, how to doit? is it possible to do it using J2SE?
I have developed a networking game of tickTactoe using sockets, is that of any help?

It is deftaly posible to have java online games and the api for it comes with java. You deftaly should not have php involded in the mix unless there is somthing very hacky going on.
As for MySQL, hosting and hardware that all depends on what you are making and how you implement it.
Some info on networking in java: [http://tinyurl.com/yjt7mkf|http://tinyurl.com/yjt7mkf]
You deftaly want to look in to the sockets part.
If you're interested in java MMOs or any kind of online games for that matter, i would also recommend taking a look at [Project Darkstar|http://tinyurl.com/ylnlre6] . It provides all the infrastructure you need to implement networked games. You just have to implement the code. don't forget to read their faqs.
Regards.
Andy

Similar Messages

  • Regarding web service n multiplayer online board game

    I am using a custom web service package : wellconsidered. i
    am creating a chinese checkers online using FLash cs3. i used sql
    server as database.
    This is how it works:
    import be.wellconsidered.services.WebService;
    import be.wellconsidered.services.Operation;
    import be.wellconsidered.services.events.OperationEvent;
    var ws = new WebService("
    http://www.webservicex.net/WeatherForecast.asmx?wsdl");
    var op:Operation = new Operation(ws);
    op.addEventListener(OperationEvent.COMPLETE, onResult);
    op.addEventListener(OperationEvent.FAILED, onFault);
    op.GetWeatherByPlaceName("new york");
    function onResult(e:OperationEvent):void { trace(e.data); }
    function onFault(e:OperationEvent):void { trace(e.data);
    Can this webservice be used for creating the game? this is a
    passive pull technology. but is there a way to consistently detect
    and send data? the push technology replaced with Timers? Need guide
    on this.

    I am using a custom web service package : wellconsidered. i
    am creating a chinese checkers online using FLash cs3. i used sql
    server as database.
    This is how it works:
    import be.wellconsidered.services.WebService;
    import be.wellconsidered.services.Operation;
    import be.wellconsidered.services.events.OperationEvent;
    var ws = new WebService("
    http://www.webservicex.net/WeatherForecast.asmx?wsdl");
    var op:Operation = new Operation(ws);
    op.addEventListener(OperationEvent.COMPLETE, onResult);
    op.addEventListener(OperationEvent.FAILED, onFault);
    op.GetWeatherByPlaceName("new york");
    function onResult(e:OperationEvent):void { trace(e.data); }
    function onFault(e:OperationEvent):void { trace(e.data);
    Can this webservice be used for creating the game? this is a
    passive pull technology. but is there a way to consistently detect
    and send data? the push technology replaced with Timers? Need guide
    on this.

  • URGENT: Multiplayer Online Game

    What would be the best way to make a multiplayer online game? I know how to create a game using an applet. Do I need to use a servlet? I know nothing about comunicating across the internet using java. Thanks.

    no you dont need a servlet, nor an applet.. just write it. you choose servet vs. applet vs app when you ask 'how do i want them to get it?" then that helps you decide limitations of the game..
    do you mind them dl'ing a client manually?
    do you want it put into a web page for auto download?
    do you want it to be a web page? (sorta dull dont ya think? click right to go right, click left arrow to go left.. reminds me of wumpus hunting!)
    so, then you need to figure out how to communicate over a wire... advanced java networks is a good book for that.. gives a good smattering of rmi, corba, sockets, etc etc..
    so once you realize sockets is the answer then go look at java.io, java.net and what not.. follow the tutorials.. ask some questions along the way and walla.. you have a simpel client/server.. after that, start writing your game.
    enjoy.

  • Multiplayer online Game

    What I need to use to develop amultiplayer online game ..say a TicTacToe Game, 2 player can start one instance, another two play can start anathor game and so on..
    Is it possible with J2SE, or I need to use J2EE?

    jwenting wrote:
    Not even a servlet container. Could be a standalone tcp server running next to a regular webserver like Apache.
    The webserver serves the applet and static html it's displayed in, applet connects to the standalone server using a custom protocol (it does need to run on the same host to be accessible of course).Yep, even that. Although I'd posit that using a servlet container would probably be simpler, and alleviate some of the more bothersome low-level networking hassle. But yep, it's worth considering.

  • AppleScript (or Automator?): How to search through online сhеss games?

    Hello.
    I would like to search for specific online сhеss games. Each game has a single adress. We are talking about millions of games. Obviously, it's far too long to index all the games. So I will set a limit and use the script at night. Conditions should be something like this:
    For adress example.com/game=NumberA to example.com/game=NumberB
    Search every web page containing SpecificWord
    Store wanted web adresses somewhere (so I could see the games by myself during the day)
    As you can see, I know nothing about Applescript and I don't know how to start, nor how the script can pick up adresses. I think it's possible and not difficult to code, just time consuming for the program to search through thousands of games.
    Should I use AppleScript or Automator? Should the script open Safari (or Firefox if possible) or can it search without any browser? Is it possible to simultaneously search through multiple pages/adresses? Maybe I could write several scripts for different ranges of games? If so, how many pages can I open at once? For instance I could disable images in Firefox to load quicker. How much time does it need to search for one game? 1, 2, 3, 4, 5 seconds?
    Any easy tutorials, examples of similar codes, advices, hints or tips are appreciated.

    Thanks for answering. Sorry that I was so unclear. My main problem was how to get urls and games id as variables. But then I thought there already should be programs doing web crawling. I have found Scrapy which use Python language.
    (Maybe I should edit my question, add Scrapy and Python as tags instead of applescript and automator. Is it possible?)
    I have Mac OS 10.6.8, Python 2.6.1. Scrapy needs at least Python 2.7 so I have downloaded the last version of Python (3.3).  I think I can handle the programming in Scrapy thanks to their tutorial. The most difficult part should be... how to install Scrapy. Don't laugh at me.
    I have entered "sudo easy_install Scrapy" in the terminal. But the terminal still uses Python 2.6.1. Python 3.3 is installed but I don't know how to clean update Python. If anyone knows, feel free...
    When I write scrapy in the terminal, here is what I get:
    Traceback (most recent call last):
      File "/usr/local/bin/scrapy", line 4, in <module>
        import pkg_resources
      File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg _resources.py", line 2556, in <module>
        working_set.require(__requires__)
      File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg _resources.py", line 620, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg _resources.py", line 518, in resolve
        raise DistributionNotFound(req)  # XXX put more info here
    pkg_resources.DistributionNotFound: lxml
    It seems Scrapy also needs something called lxml. Right now I am trying to make Python 3.3 the default python version. Is there a web crawler GUI which already includes Python, Scrapy, lxml?
    By default I also have Python 2.4 and 2.5. Does the system need them? I prefer not to delete system files but together all Python versions weigh 500 MB.
    In regard to the real example URL: let's say instantchess.com. Here's a game URL: http://www.instantchess.com/?EXP=1&GPI=84094532
    84094532 is the game id. Let's say I want to search every Reti openings (thus the page must contain the word "Reti") from id 84000000 to 85000000 and store games id in my computer. If I have understood correctly, I need to search through the source code of the pages.
    Feel free to add any remarks, suggestions, ideas.

  • Online flash games

    Hi!
    I have some links to some really nice free online flash
    games, and I want to
    "spread the word" about them to big flash games web sites.
    I've found tons
    of games sites, but I would like to know which of them that
    are good and has
    many visitors. Anyone know?
    These I've found so far:
    Spain: www.minijuegos.com
    Germany: www.flashgames.de
    but I would like to have many more... Anyone knows the
    treasure in the
    jungle?
    ojorus

    http://www.addictinggames.com/
    http://www.flashaddictivegames.net/
    http://www.jollygoodgames.com/
    Just ******* google it!

  • Looking to get a data plan for the sole purpose of playing online video games

    Hi everyone,
    I live in the mountains of Pine Valley, CA and the seclusion is becoming intolerable.  I'm looking to get a data plan with Verizon to play online video games, namely Diablo 3 or failing that due to latency, then Civilization 5.  Can anyone give me pointers on if this would work and what plan I could get?  Currently, I have a plan with Boost Mobile which uses Sprint cell phone towers.  I tested my internet connection with speedtest.net and received a ping as low as 140 and as high as 1000, but I'm hoping the 1000 is just due to reception issues that can be fixed with a better antenna.    The 140 ping is a little high too but I'm hoping this will be better on the Verizon network since I think their cellphone towers are closer.  The closest landmark to me is the Golden Acorn Casino at 1800 Golden Acorn Way  Campo, CA 91906.  If anyone could tell me the distance from Verizon's cell tower to the casino and Sprint's and could estimate a ping value based on that, I would really appreciate it.
    I like Verizon's data plan for 10gb but I'm confused on device connectivity.  Is this the data plan plus whatever router device I hook it up to? I would also need some sort of antenna and a router, wireless or wired.  Can anyone give me pointers on how to find these?  An estimation on Ping and bandwith speed and also on peak hours in my area would be nice too.  Thanks to anyone that can help me with this!  Oh, and while I don't think my area has coverage for 4g, though I'm pretty sure there is 3g, would I possibly get 4g if I had a strong enough antenna?

    Homefusion comes with antenna that is mounted OUTSIDE of your dwelling. That why they send someone out to install it. It also comes with the router. You're thinking of Share Everything data only plans. Where you pay $20 for the mi-fi and then pay extra on the data pending how much you want.  Share Everything with a mi-fi and 10 GB would be $80 a month when you can get Homefusion for $60 for the same 10 GB. An considering the antenna is more power and outside you're a lot more likely to get reception with Homefusion. In either case it should be noted you'll need to pass a credit check and sign a two year contract.

  • How to play online ESL games simultaneously?

        Hello, I teach English to Spanish-speaking children  living in an orphanage. I use screen share with the students. How can we play online ESL games simultaneously? Let's say that I click on the + to screen share and go to any online ESL game. The students can see my screen where I am displaying ,for example, a word search puzzle with English vocabulary words. Is there an app or tool, so that they can click on the letters from their end when they find the word(s)?  I can click on the words in the puzzle on my end. Or let's say I find an multiple choice game/exercise where it asks to click on the right answer. When I screen share, I can click on the answer, but my students cannot? What do you suggest so that we can do online ESL games and exercises together and play simulataneously from either of our remote locations? I would appreciate your help, so that the children can have a fun time learning.
    ESOL_English

    Streaming is not supported in C2-06. You need to download these videos using an application or using a PC.
    Please mark the post as solution if it solves your problem.
    Current Device - Nokia Lumia 1020/920

  • Create a cross platform online Card Game

    How would I go about creating a cross platform online card game. An example of such an application is one I found where people can play the "Magic the Gathering" card game online and I was wondering how to go about creating a graphic interface where players could upload the images of cards and move them freely around the screen. There would not need to be any rules for the game. It would only need to be able to shuffle a deck and count how many cards are left in the deck and the discard pile.

    I agree just installing the application would be the best option however one of the requirements of this is that it can run from the CD as we are going to be distributing some promotional material in the form of a flash application and would like to have run on either windows or mac without needing to require the users to have to choose the version.

  • IMac 10.1, OS X 10.7.5, 4 GB RAM, 201 GB free on 999.35 GB HD, gets slower the longer I use the Internet; very noticeable with online browser game Forge of Empires.  Turning iMac off and restarting it brings it back to full speed for an hour or so.

    iMac 10.1, OS X 10.7.5
    4 GB RAM (2 of 4 slots used)
    201 GB free on 999.35 GB HD
    The iMac gets slower the longer I use the Internet - to the point that it takes several seconds for each typed character to appear.  This is very noticeable with the online browser game Forge of Empires.  But, it happens even if not logged on to that game.
    Turning the iMac off and restarting it brings it back to what seems like full speed for an hour or so.  Then, it starts to noticeably slow down again.

    1st thing : from my point of view upgrade your mac os to latest version.
                    (their is mac os x mavericks from apple its free for upgrade so download it and install it.)
                    (https://itunes.apple.com/in/app/os-x-mavericks/id675248567?mt=12)
    2nd thing : then upgrade your all browser plugins to latest version.
    3rd thing : and use ccleaner to keep clean your mac from junk data or other unuseable data that are created.
                                   (http://www.piriform.com/mac/ccleaner)
    4th thing : verify and repair your disk permissions with the use of disk utility or ccleaner
    i am sure your computer recover speed.

  • Online video games computing with windows

    If i have a mac and i wish to play an online computer game (Call of Duty) against a windows user, will it be compatible?

    Hi and welcome to Discussions,
    the compatibility of playing Mac Games online against Windows user depends on the manufacturer of these games.
    If they were wise enough to think about this, when they programmed the game.
    Have a look at the manufacturer sites for compatibility.
    Regards
    Stefan

  • RAM usage by Adobe Flash Player spikes when playing online flash games with 3D graphics

    Hi. I have recently noticed a spike in RAM usage by my flash player plug-in whenever I play online flash games that use a 3D graphics engine (for example, Farmville 2 and Chefville by Zynga). Apart from the numerous times I receive an error message that the plug-in has failed, my RAM usage goes above 70% from the regular 40% with the plug-in consuming more than 1Gb. I have experienced the problem with the updated version of Adobe Flash Player on the newest releases of Firefox, Chrome and RockMelt. This spike in usage usually leads to a crash of my GPU (ATI Mobility Rabeon 4650 - 2Gb) My specs are as follows:
    OS - Windows 7 Home Premium 64-bit
    Processor - Core i5
    Speed - 2.27 GHz
    RAM - 4.00Gb (3.86 Gb usable)
    HDD - 500 Gb (465 Gb usable)
    I should also note that the required specifications for the latest version of Flash Player (11.7.700.202) requires processing speeds of 2.33Ghz. Could that be the issue? I am still to attempt downgrading of my Flash version to see if that could help reduce the RAM usage. Are there any other suggestions out there?

    Hmmm... Win 7 will run faster than Mavericks with 8Gb. Even my Vm of 7 runs faster once I get it past all the startup processes.
    It may or may not be a connectivity problen since Windows uses a different protocol, even though it's on the same hardware. Usually though, what affects OS X will affect BootCamp too.
    What browser?

  • Online Flashplayer Game

    I'm playing an online flashplayer game and using taskmanager I can see my ram usage creeping up over time, eventually it reaches nearly max capacity and the game starts to mis-display, lag and generally grind to a halt.
    If I restart my browser my ram usage goes back to usual and the usage creep begins again.
    I'm not sure if it's a quirk of the game or a shortcoming with my system.
    I'm running windows xp 32 bit with explorer 8 on a biostar G31-M7-TE motherboard, with an intel Q8200 quad processor and 2Gb of ram, (another 2Gb is in the post to take it to max 4Gb)
    I've also fitted a evga nvidia GTX660 pci-express GPU which has 2Gb of dedicated graphics ram.
    my system at idle is using 400mb of ram, logged into the game 900mb of ram, at the point of requiring a restart it's reached 1.8Gb...  :O
    any boffins out there want to humiliate me with their superior geekery are welcome to respond 
    Matt

    Check if your Chrome is up-to-date(Tools->About Google Chrome), If not, update it and try downloading the game and check.
    If you still face the same issue, uninstall and re-install Google Chrome and check.
    Alternatively, you can try downlaoding the same using a different broswer.

  • Online Browser Games and Adobe Flash player 11

    I am Payneism i play online browsers games like adventure quest worlds fusionfall and etc. for fun and when the newest adobe flash player came out i didnt install it because i was fine with the one i got so out of nowhere i decided to download it just incase the internet was gonna decide i was gonna need adobe flash player 11 more often than 10 so when i installed it the next day i got on to play AQW(adventure quest worlds)and i couldnt get on because all of a sudden it said"google chrome could not find aq.com" and i have all browsers and it mainly works on opera but when it does work the screen doesnt show it just shows a white screen and if it does work all it shows is the loading screen and it doesnt load it just keeps going and going without end this never happened with adobe flash player 10 and i have a membership just wasting away that i paid for and i have gotten help from literally EVERYONE at the Artix Entertainment(the people who made AQW) and i try to play everyother AE(Artix Entertainment) related game and nothing works it does the same thing as AQW google chrome cant find it or it just shows the loading screen no browser can find it or play it and i have un-installed and re-installed adobe flash player 11 more than 20 times and nothing has worked and i havent gotten anything from you guys so please tell me what to do

    To assist us in quickly understanding your problem, please follow these guidelines when posting:
    Specify your operating system (including 32bit or 64bit edition) 
    Specify your web browser and version (including 32bit or 64bit edition) 
    Specify your Flash Player version
    Google embeds Flash Player into Chrome, updates for the embedded Flash Player are done through the Google updater.  If Chrome is not finding a site, talk to Google about it.

  • TicTacToe game in java

    Thanks alot for offering change to ask u people about problem we face it in java .. iam student in java course and i have project which i find difficulty to solve the problem.. this project is need to implement the Java Applet . it is the game of TicTacToe game ..two class need to be created.one of them has n-by -n(4 bye 4). the constructor inlialize the empty table to all zeros . the TicTacToe game require two players. Whereever the first player selcts a cell of the table , assigne 1 as a number to the selected cell. assing 2 wherever the second player selects a cell The value of the cell connot to be changed. it keeps its value after the first assignation . your player are allowed to select the cells they are interseted in.To this end. the enter the number of rwo and number to column that defind the postion of a cell.The program keeps askind the player n-by-n times . Finaly the progam display the state of the table...
    i hope some one answet to me soon .. i will be thanksfull for who could help me ..
    thanks alot .. wating for the answer ..

    heres a 3x3 one :)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.Calendar;
    public class TicTacToe extends JPanel
         private JButton b[][];
         private JButton newGame;
         private JPanel innerPanel;
         private JPanel gamePanel;
         private JTextArea statistics;
         private String symbol = "x";
         private int x;
         private int o;
         private boolean myturn;
         private JLabel lab;
         private int day, year, month;
         public TicTacToe()
              super();
              Calendar cal = Calendar.getInstance();
              day = cal.get(Calendar.DATE);
              year = cal.get(Calendar.YEAR);
              month = (cal.get(Calendar.MONTH) + 1);
              lab = new JLabel("" + day + "/" + month + "/" + year );
              innerPanel = new JPanel();
              innerPanel.setLayout(new GridLayout(1,2));
              gamePanel = new JPanel();
              b = new     JButton[3][3];
              x=o=0;
              setLayout(new BorderLayout());
              gamePanel.setLayout(new GridLayout(3,3));
              initialize(true);
              add(lab, BorderLayout.NORTH);
              statistics = new JTextArea();
              statistics.setEnabled(false);
              innerPanel.add(gamePanel);
              innerPanel.add(statistics);
              add(innerPanel,BorderLayout.CENTER);
              printStatistics();
         private ActionListener createActionListener(JButton button)
              final JButton b = button;
              ActionListener a =
                        new ActionListener()
                             public void actionPerformed(ActionEvent ae)
                                  doPlay(b);
              return a;
         private void doPlay(JButton b)
              if (b.getText().equals(""))
                   b.setText(symbol);
                   if (winCondition(symbol))
                        enableGame(false);
                        if (symbol.equals("x"))
                             x++;
                        else
                             o++;
                        printStatistics();
                   if (symbol.equals("x"))
                        symbol = "o";
                   else
                        symbol = "x";
         private boolean winCondition(String s)
              boolean condition = true;
              for (int i=0 ;i<3 ;i++ )
                   condition = true;
                   for (int j=0; j<3 ;j++ )
                        condition = (condition && b[i][j].getText().equals(s));
                   if (condition)
                        return true;
              for (int i=0 ;i<3 ;i++ )
                   condition = true;
                   for (int j=0; j<3 ;j++ )
                        condition = (condition && b[j].getText().equals(s));
                   if (condition)
                        return true;
              condition = true;
              for (int i=0; i<3 ; i++ )
                   condition = (condition && b[i][i].getText().equals(s));
              if (condition)
                   return true;
              condition = true;
              for (int i=0;i<3 ;i++ )
                   condition = (condition && b[i][2-i].getText().equals(s));
              if (condition)
                   return true;
              return false;
         private void enableGame(boolean flag)
              for (int i=0;i<3;i++)
                   for (int j=0;j<3;j++)
                        b[i][j].setEnabled(flag);
         private void printStatistics()
              String print = "Player\tWins" +
                             "\nPlayer X\t" + x +
                             "\nPlayer O\t" +o;
              statistics.setText(print);
         public void initialize(boolean recreate)
              for (int i=0; i<3; i++)
                   for (int j=0; j<3; j++)
                        if (recreate)
                             b[i][j]= new JButton();
                        b[i][j].addActionListener(createActionListener(b[i][j]));
                        if (recreate)
                             gamePanel.add(b[i][j]);
              if (recreate)
                   newGame = new JButton("New Game");
              newGame.addActionListener
                   new ActionListener()
                        public void actionPerformed(ActionEvent ae)
                             for (int i=0; i<3; i++)
                                  for (int j=0; j<3; j++)
                                       setButtonCaption("",i,j);
                             enableGame(true);
              if (recreate)
                   add(newGame,BorderLayout.SOUTH);
         public void setButtonCaption(String s,int row, int column)
              b[row][column].setText(s);
         public static void main(String[] args)
              //SplashScreen splash = new SplashScreen(1200, 1200,1);
              //splash.show();
              //dia sp = new dia(12);
              //sp.show();
              JFrame f = new JFrame("TicTacToe");
              Container c = f.getContentPane();
              TicTacToe t = new TicTacToe();
              f.addWindowListener
                   new WindowAdapter()
                        public void windowClosing(WindowEvent we)
                             System.exit(0);
              c.add(t,BorderLayout.CENTER);
              f.setSize(300,200);
              f.show();

Maybe you are looking for

  • Lenovo yoga 2 13 downgrade to win7 drivers

    Hi everyone, I bought this notebook for my father, but he really can't deal with win8.1 so, I thought about downgrade it to win7. Unfortunately I can't find the drivers for this laptop that are compatible with win7, I only found the ones compatible w

  • WEBUTIL FILE_SAVE_DIALOG BUG

    This is more untested code than a bug. I am using WEBUTIL_FILE.FILE_SAVE_DIALOG in my form to download a file from the database onto client machine. When the file dialog comes up and the user clicks on a directory to save to, the File Name field gets

  • Simple JSP gives Error Message

    The following is a simple welcome.jsp file that I am trying to run on a local J2EE sever. As you can see it tries to import classes one being the FaqCategories.class which is located in the folder Ch03 of the WEB-INF directory. When I call the page u

  • Custom signature for TOR Application

    Hi, I want to create custom signature to produce alert whenever any machine lunches TOR application, i have searched and found that there already two signatures cretaed 5816/0 5816/1, i have enabled them and tested it did not fire. I have ips in prom

  • Advantages of BPEL over Oracle Workflow?

    I am considering using SOA as an interface technology in an Oracle EBS deployment. What would be the benefits of using Oracle SOA Suite over simply using Oracle Workflow w/ Oracle XML Gateway and customizing calls from certain E-Business Suite pages?