Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

il y a 5 ans
1234567891011121314151617181920212223242526
  1. #!/usr/bin/gawk -f
  2. # mawk does not work, it hangs due to the one-sided FIFO
  3. {
  4. if (n++ > 1234567) {
  5. print "quit";
  6. }
  7. }
  8. /bet\?/ {
  9. print "1"
  10. fflush()
  11. }
  12. /insurance\?/ {
  13. print "no"
  14. fflush()
  15. }
  16. /play\?/ {
  17. if ($2 < 12) {
  18. print "hit";
  19. } else {
  20. print "stand";
  21. }
  22. fflush()
  23. }
  24. /bye/ {
  25. exit;
  26. }