All pastes #364176 Raw Edit

TicTacToe

public java v1 · immutable
#364176 ·published 2007-02-19 23:36 UTC
rendered paste body
/* * TicTacToe.java * * Author: Craige * * Created on February 19, 2007, 12:50 PM * * Comments: Chapter 3 - GPJ SE *           Exercise 5: Create a TicTacToe board application that displays a tic-tac-toe *                       board with an x in the center. */import java.io.*;public class TicTacToe {        /**     * @param args the command line arguments     */    public static void main(String[] args) {        dspBoard(9);    }        public static void dspBoard(int size)    {        int cellSize = size/3;        int fullSize = size + 2;                for (int i = 0; i < fullSize; i++)        {            if (i == cellSize)            {                for (int c = 0; c < fullSize; i++)                {                    System.out.print("-");                }                            }            // TODO finish method                    }                }    }