一、Public Beta是什么意思?
Public Beta
公開測試版
二、沒有電腦顯示卡能玩哪些單機(jī)游戲?
半條命1.。。CS1.5.....紅警98.....命令與征服1.....魔獸爭霸1.....還有一些GBA的游戲也可以玩玩??傊疀]有顯卡玩不了什么好游戲的。
三、java人機(jī)猜拳游戲initial方法
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Random; public class FingerGuessing { private String[] op = new String[] { 布, 剪刀, 石頭 }; Random r = new Random(); private int wj = 0; private int dn = 0; private int count = 0; private int go() { int k = r.nextInt(3); System.out.println(電腦: + op[k]); return k; } private void compare(int i) { count++; System.out.println(玩家: + op[i - 1]); int k = go(); if ( i - 1 == k) { System.out.println(打平); } else if ( i - 1 - k == 1 || i-1-k == -2) { System.out.println(玩家獲勝); wj++; } else { System.out.println(電腦獲勝); dn++; } } private void info() { System.out.println(共 + count + 盤); System.out.println(玩家獲勝 + wj + 盤); System.out.println(電腦獲勝 + dn + 盤); System.out.println(打平 + (count-wj-dn) + 盤); } public void start() { String xz = ; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); do { System.out.println(\n請選擇:\n1.布\n2.剪刀\n3.石頭\n結(jié)束請輸入exit); try { xz = br.readLine(); if (xz.equalsIgnoreCase(exit)) { info(); continue; } if (!xz.equals(1) && !xz.equals(2) && !xz.equals(3)) { System.out.println(選擇錯(cuò)誤,請重新選擇); continue; } compare(Integer.parseInt(xz)); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } while (!xz.equals(exit)); } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub new FingerGuessing().start(); } }
