Kwwiker

Game

Dec 13th, 2020
569
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class Game {
  4.  
  5.     public static Story story;
  6.  
  7.     public static void main(String[] args) {
  8.         Scanner in = new Scanner(System.in);
  9.         story = new Story();
  10.         while (true) {
  11.             System.out.println("=============" + story.current_situation.subject + "==============");
  12.             System.out.println(story.current_situation.text);
  13.             if (story.isEnd()) {
  14.                 return;
  15.             }
  16.             story.go(in.nextInt());
  17.         }
  18.  
  19.     }
  20.  
  21. }
RAW Paste Data