Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. (defrule wybor1z4
  2. (wybor)
  3. =>
  4. (printout t "`-----------------------------------------'" crlf)
  5. (printout t "Ktora z ponizszych odpowiedzi jest prawidlowa?"crlf)
  6. (printout t "`-----------------------------------------'" crlf)
  7. (printout t "Odpowiedz 1"crlf)
  8. (printout t "Odpowiedz 2"crlf)
  9. (printout t "Odpowiedz 3"crlf)
  10. (printout t "Odpowiedz 4"crlf)
  11. (printout t "Wybierz: "crlf)
  12. (bind ?wybor2 (readline))
  13. (switch ?wybor2
  14. (case "1" then
  15. (bind ?wybuch boom)
  16. (printout t "Boom"crlf)
  17. )
  18. (case "2" then
  19. (bind ?wybuch boom)
  20. (printout t "Boom"crlf)
  21. )
  22. (case "3" then
  23. (bind ?wybuch boom)
  24. (printout t "Boom"crlf)
  25. )
  26. (case "4" then
  27. (printout t "Odpowiedz ok"crlf)
  28. )
  29. )
  30. (assert (wybor2 ?wybor2))
  31. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement