Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(pcTurn==true){
- pcx=rand.nextInt(3);
- pcy=rand.nextInt(3);
- System.out.println(pcy+" "+pcx);
- if(board[pcy][pcx]!='X'){
- board[pcy][pcx]='O';
- pcTurn=false;
- }
- }
- boardSelection("1",board);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement