Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.45 KB | None | 0 0
  1. import 'dart:io';
  2. import 'dart:math' show Random;
  3.  
  4. void main() {
  5.  
  6.     int trycount = 0;
  7.  
  8.     Random r = new Random();
  9.  
  10.     int fucking_number = r.nextInt(15);
  11.  
  12.     while (trycount < 3) {
  13.  
  14.         if (stdin.readLineSync() != fucking_number) {
  15.  
  16.             trycount++;
  17.             print("not c:");
  18.  
  19.         }else {
  20.  
  21.             print("GOOD");
  22.             exit(0);
  23.  
  24.         }
  25.  
  26.     }
  27.  
  28.     print("game over c:\nIt's $fucking_number");
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement