Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Game {
- public static Story story;
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- story = new Story();
- while (true) {
- System.out.println("=============" + story.current_situation.subject + "==============");
- System.out.println(story.current_situation.text);
- if (story.isEnd()) {
- return;
- }
- story.go(in.nextInt());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement