Search:

Type: Posts; User: njabulongcobo7

Search: Search took 0.16 seconds.

  1. Replies
    15
    Views
    1,372

    Re: Tic Tac Toe

    i appreciate all advices but i feel you guys should look at what the question wants

    it says...
    Create a Tic Tac Toe game. In this game, two players alternate placing Xs and Os
    into a grid until...
  2. Replies
    15
    Views
    1,372

    Re: Tic Tac Toe

    basiclly this method is placing Xs and Os in the gui...


    public void actionPerformed(ActionEvent a)
    {
    count++;

    /*Calculate Who's Turn It Is*/
    if(count == 2...
  3. Replies
    15
    Views
    1,372

    Re: Tic Tac Toe

    int ran = 1 + (int)(Math.random() * 9);

    if (ran==1)
    {
    button1.setText("O");
    button1.setEnabled(false);
    //letter = "X";
    }
    else
    if(ran==2)
  4. Replies
    15
    Views
    1,372

    Tic Tac Toe

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;

    public class Q implements ActionListener
    {
    /*Instance Variables*/
    private JFrame window = new JFrame("Tic-Tac-Toe");...
Results 1 to 4 of 4