Java入门之tic-tac-toe

Written by Bruth_Lee in Southwest University of Science and Technology. 

本游戏仅为初学者练习Java所用,不具有游戏的真实性,如果想看该正版游戏,请戳点击打开链接

import java.util.Scanner;

public class Primer_Java{
	public static void main(String[] args) {
	 Scanner in = new Scanner(System.in);
	//int[] number = new int[10];
	//int a;
	int i,j;
	final int SIZE = 3;//the size of SIZE is three
	//tic-tac-toe
	int[][] board = new int[SIZE][SIZE];
	System.out.println("Gameplayer_1 input 1 and Gameplayer_2 input 0");
	for(i=0;i


你可能感兴趣的:(Java合集)