Guest User

Untitled

a guest
Nov 24th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. package org.macquarie.oxo;
  2.  
  3. import java.util.Scanner;
  4.  
  5.  
  6.  
  7. public class TextInerface {
  8.  
  9. /**
  10. * @param args
  11. */
  12. public static void main(String[] args) {
  13. // TODO Auto-generated method stub
  14.  
  15. for (int i = 1; i < 7; i++) {
  16. System.out.print(i);
  17. System.out.print(" ");
  18. for (int j = 0; j < 7; j++){
  19. System.out.print(".");
  20. }
  21. System.out.println();
  22.  
  23. }
  24.  
  25.  
  26.  
  27. String m = "ABCDEFG";
  28. System.out.print(" " + m);
  29.  
  30. System.out.println();
  31. System.out.println();
  32. System.out.println("move# 1");
  33. System.out.println("player 0");
  34.  
  35.  
  36. System.out.println();
  37. Scanner vReader = new Scanner(System.in);
  38. System.out.print("Type your move <A-G, U, R, I or X>:");
  39. System.out.println();
  40. String vInput = "";
  41. vInput = vReader.nextLine();
  42. System.out.println("Your input is: " + vInput);
  43.  
  44.  
  45. if (vInput.equals("A") || vInput.equals("a")) {
  46.  
  47. System.out.println("A is on cock sucka");
  48. GameModel.play(0);
  49.  
  50. }
  51. if (vInput.equals("B") || vInput.equals("b")) {
  52.  
  53. System.out.println("B is on cock sucka");
  54.  
  55. }
  56. if (vInput.equals("C") || vInput.equals("c")) {
  57.  
  58. System.out.println("C is on cock sucka");
  59.  
  60. }
  61. if (vInput.equals("D") || vInput.equals("d")) {
  62.  
  63. System.out.println("D is on cock sucka");
  64.  
  65. }
  66. if (vInput.equals("E") || vInput.equals("e")) {
  67.  
  68. System.out.println("E is on cock sucka");
  69.  
  70. }
  71. if (vInput.equals("F") || vInput.equals("f")) {
  72.  
  73. System.out.println("F is on cock sucka");
  74.  
  75. }
  76. if (vInput.equals("G") || vInput.equals("g")) {
  77.  
  78. System.out.println("G is on cock sucka");
  79.  
  80. }
  81.  
  82.  
  83.  
  84. }
  85.  
  86. }
Add Comment
Please, Sign In to add comment